Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] kindness mode: serving much more clients than a browser extension. Intentional? #1105

Open
WofWca opened this issue Mar 10, 2024 · 3 comments
Labels

Comments

@WofWca
Copy link
Contributor

WofWca commented Mar 10, 2024

Describe Your Question
I have been using both the Snowflake extension and Orbot's "Kindness mode". I notice that Orbot is getting a lot more clients per week. It's in the ballpark 50, whereas the extension is getting like one per day or less. And they are on the same network (WiFi), running 24 / 7 (except when I take the phone outside, but I doubt this is the main factor).
I know this is most likely mostly determined by the polling interval of standalone Snowflake and browser extension Snowflake. See https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake-webext/-/issues/43#note_2820375
I.e. standalone Snowflake is coded to get much more clients per unit of time that the extension. But I think it shouldn't be the case for mobile phones.

The question is: is this something that has been considered? If so, why has it been decided to give mobile devices more clients than to PC browsers?

Is Your Question Related?
No

Additional Context

WofWca added a commit to WofWca/IPtProxy that referenced this issue Aug 22, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Aug 24, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Sep 3, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
@tladesignz
Copy link
Collaborator

No, this is not intentional, but accidental. I guess we should tune down the poll interval at least when the device is running on battery.

@WofWca
Copy link
Contributor Author

WofWca commented Sep 9, 2024

I made an MR for this, but the required Snowflake version is not released yet
tladesignz/IPtProxy#58

syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Sep 14, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Sep 14, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Sep 27, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Oct 21, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Oct 23, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Oct 23, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Oct 31, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Nov 11, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
syphyr pushed a commit to syphyr/IPtProxy that referenced this issue Nov 16, 2024
...to be comparable to browser-based proxies.
Otherwise the proxy polls every 5 seconds, which is 12x as frequent
as browser-based proxies do.
See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
- guardianproject/orbot#1105
@WofWca
Copy link
Contributor Author

WofWca commented Dec 9, 2024

As was said in tladesignz/IPtProxy#58 (comment), this should be addressed in this repo.

I guess this is the relevant code:

mSnowflakeProxy = new SnowflakeProxy();
mSnowflakeProxy.setBrokerUrl(brokerUrl);
mSnowflakeProxy.setCapacity(capacity);
mSnowflakeProxy.setRelayUrl(relayUrl);
mSnowflakeProxy.setStunServer(stunUrl);
mSnowflakeProxy.setNatProbeUrl(natProbeUrl);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants