{{Header}} {{Title| title=Connecting to Tor before a Proxy using Proxyfier Method }} {{#seo: |description=Instructions on how to connect to Tor before a proxy (User → Tor → Proxy → Internet) using Proxyfier Method }} {{proxy_methods}} = Configure Applications to use Proxyfier Method = After understanding {{project_name_long}} default stream isolation configuration, there is no difference from using a proxyfier in an ordinary way, other than that it is running inside {{project_name_workstation_long}}. There is a [[Stream_Isolation#List|list]] of applications that come pre-configured with {{project_name_long}} for [[Stream Isolation]]. If you plan on changing the proxy settings of any of those, you must read the notes below. If the proxifier is leak free or in worst case leaks through Tor alone (thanks to {{project_name_short}}), is another question and not in {{project_name_short}} power, see [https://gitlab.torproject.org/legacy/trac/-/wikis/doc/TorifyHOWTO TorifyHOWTO]. {{Prevent_Bypassing_the_Tunnel-Link_Warning_Box}} = Important Application Specific Notes = == Tor Browser Notes == {{Tor_Browser_Change_Proxy_Settings_Why_Difficult}} {{mbox | image = [[File:Ambox_warning_pn.svg.png|40px]] | text = [[Undocumented]]. Documentation is incomplete. There is currently no tested, known to work solution for using [[Tor Browser]] with the Proxyfier Method. This issue is [[unspecific|unspecific to {{project_name_short}}]]. This is not a {{project_name_short}} issue but rather an issue with proxyfier / socksifier software and Tor Browser. This would also happen if {{project_name_short}} was not involved. (For a basic architectural explanation, see [[Self_Support_First_Policy|Self Support First Policy]].) Researching this is up to you. Please [[contribute|contribute]]. Without contributions, this situation should be expected to remain the same forever. Alternatively consider other methods which however might also have issue and might also be difficult. See the mini navigation at the very top of this wiki page. }} '''1.''' Check applicability of these instructions. Does the user need to follow these instructions? Only if the user intents to use Tor Browser with an extra tunnel-link. For example, if the user only intents to use a different application such as curl with an extra tunnel-link, then the instructions in this very wiki chapter can be skipped. In that case, see the other wiki chapters on this page. '''2.''' Remove default proxy settings by Tor Browser.
TransPort
.TransPort
, you could use the following command.
{{CodeSelect2|code=
wget https://check.torproject.org
}}
== proxychains ==
=== Warnings ===
* It is unknown how well proxychains works. For example torsocks has a IPv6 leak bug
https://gitlab.torproject.org/legacy/trac/-/wikis/doc/torsocks#WorkaroundforIPv6leakbug. It is unknown if proxychains forces everything through the proxies. No research / leak testing has been performed by anyone to the knowledge of the author of this wiki page. {{project_name_short}} only ensures, should their be leaks, they go only through Tor.
* There are at least three different versions of proxychains. The old/original/unmaintained version on sourceforge.net and two forks on github. The project status of any of them is unknown. The two different proxychains authors have different opinions. However, any leaks not going through the proxy(chain) will go through Tor.
* '''Mandatory prerequisite knowledge: [[#Configure Applications to use Proxyfier Method|Configure Applications to use Proxyfier Method]]'''
=== Setup ===
Install proxychains.
{{CodeSelect2|code=
sudo apt install proxychains
}}
Open proxychains configuration file.
{{Open with root rights|filename=
/etc/proxychains.conf
}}
Go to the bottom of the settings file. Comment out "{{Code2|socks4 127.0.0.1 9050}}" and add for example "{{Code2|socks5 10.152.152.10 9152}}" (for Tor stream isolation) or "{{Code2|socks5 ip port}}" with an IP and port of your choice to set the proxy settings.
[ProxyList] ## add proxy here ... ## meanwhile ## defaults set to "tor" #socks4 127.0.0.1 9050 socks5 10.152.152.10 9152 # socks5 x.x.x.x xxxxAdvanced. Recommendation: Why not use Tor stream isolation for the proxychains connection?
[ProxyList] ## add proxy here ... ## meanwhile ## defaults set to "tor" #socks4 127.0.0.1 9050 socks5 10.152.152.10 9152 socks5 x.x.x.x xxxxSave the configuration file. Test afterwards. === example uwt wrapped application === {{CodeSelect2|code= proxychains /usr/bin/wget.anondist-orig https://check.torproject.org }} For testing, you could compare the IP shown by the above command with the next one. If you didn't disable the wget uwt wrapper, the following command will most likely fetch another IP, because still using Stream Isolation. Using Tor's
TransPort
.
(/usr/bin/wget.anondist-orig original non-uwt-wrapped version)
{{CodeSelect2|code=
wget.anondist-orig https://check.torproject.org
}}
=== example regular application ===
Requires [[Stream_Isolation#Deactivate_uwt_Stream_Isolation_Wrapper|deactivated]] wget uwt wrapper!
{{CodeSelect2|code=
proxychains /usr/bin/wget https://check.torproject.org
}}
=== Tor Browser example ===
Broken: The combination of proxychains and Tor Browser '''does currently not work'''. This issue is caused by proxychains and [[unspecific|unspecific to {{project_name_short}}]].
Someone needs to [[Contribute]] by figuring this out. Otherwise this will probably never be possible. [https://forums.whonix.org/t/proxychains-tor-help-needed See forum discussion].
{{project_name_workstation_vm}}
).
'''1.''' Remove proxy settings.
First, you must remove Tor Browser proxy settings before you can combine it with a proxifier. This is documented above.
'''2.''' Run proxychains.
Then try this command.
{{CodeSelect2|code=
proxychains ~/.tb/tor-browser/start-tor-browser
}}
'''3.''' Done.