Antidote icon indicating copy to clipboard operation
Antidote copied to clipboard

Run Antidote over Tor

Open bucky0970 opened this issue 7 years ago • 5 comments

I already run up a Tor proxy in app, how to use the proxy make a call?

bucky0970 avatar Mar 23 '17 08:03 bucky0970

I'm not sure how Tox proxy works on iOS, I need to investigate that.

Currently in Antidote there is no configuration for proxy settings.

dvor avatar Mar 23 '17 10:03 dvor

@bucky0970 can you please share a link to Tor proxy app so I can check and test it?

dvor avatar Mar 23 '17 10:03 dvor

Thanks for your reply~ I use CPAProxy , after proxy start up, you can get a socks5 proxy ip and port. And I found in (Project Navigator)Antidote/Pods/Pods/toxcore/tox_api.m line:67

void tox_options_default(struct Tox_Options *options)
{
    if (options) {
        struct Tox_Options default_options = { 0 };
        *options = default_options;
        tox_options_set_ipv6_enabled(options, true);
        tox_options_set_udp_enabled(options, true);
        tox_options_set_proxy_type(options, TOX_PROXY_TYPE_NONE );
        tox_options_set_hole_punching_enabled(options, true);
        tox_options_set_local_discovery_enabled(options, true);
    }
}

It seems to be able set proxy, It has 3 options. TOX_PROXY_TYPE_NONE, TOX_PROXY_TYPE_SOCKS5 and TOX_PROXY_TYPE_HTTP, but I have no idea where to config proxy ip and port. I saw Tox wiki, in command line, Tox can communicate over Tor.(wiki link).

After I install CPAProxy into Antidote, It says "Module 'CocoaAsyncSocket' not found". After Google, they say I have to add "use_frameworks!" in pod file ... But when I add "use_frameworks!", Antidote will build fail, It become a weird situation...so far I can't run CPAProxy in Antidote.

bucky0970 avatar Mar 24 '17 01:03 bucky0970

Yes, it would be nice to investigate on including CPAProxy (or any other) to Antidote.

dvor avatar Mar 27 '17 13:03 dvor

For my use pattern it would be enough to add support for SOCKS 5. As I understand from previous post, there is already SOCKS 5 support, just GUI is missing for its configuration.

hsn10 avatar Oct 21 '18 20:10 hsn10