Send all OpenVPN traffic through proxy or TOR proxy?
For this, I'm assuming that you have installed tor using apt-get install tor
and not using the TOR browser bundle.
Add this line to the
/etc/tor/torrc
file to tunnel VPN traffic:SocksPort 9150 PreferSOCKSNoAuth
Then you will need to tell OpenVPN to use a proxy. Add this to your VPN config file:
socks-proxy localhost 9150 socks-proxy-retry
Restart tor:
sudo service tor restart
Now you should be able to run OpenVPN AFTER tor has established a connection to the TOR network.
sudo openvpn --config path/to/vpn/config/file
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
I have an OpenVPN server and I want to be able to route all requests that are made to that OpenVPN server through a proxy, so that the requests will look like they are made be the internet address of the proxy. For example, a normal request looks like this:
request -> openvpn -> send data back to user with the IP of the machine
When I want it to go through TOR or a proxy:
request -> openvpn -> tor or proxy -> send data back to user with the IP of the proxy
Is this possible? If so, how can I do it?
-
donkey almost 8 yearsThis doesn't work for me, I'm portsharing 443 (on 4433) with nginx and when I add those two lines to the OVPN config everything fails. Any ideas appreciated.
-
Axl over 7 yearsAre you supposed to put the socks-proxy lines in the server side or client side config file?