Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

OpenVPN has the option to connect through a socks proxy.

Tor, as you may know, provides a SOCKS proxy (listening on localhost) to anonymize the apps/traffic using it.

I would like to connect my OpenVPN client through Tor's SOCKS proxy.

socks-proxy ... socks-proxy-retry ...

Do not work out of the box. I suspect this is because I need to fiddle with iptables or route to make sure Tor is left alone by OpenVPN and will not be routed through OpenVPN (because in reality OpenVPN has to go through Tor). How can it be done? These guys' product works (so it's doable): https://airvpn.org/tor/

share|improve this question

1 Answer 1

You might use virtual machine, e.g. some virtual container, like jail or lxc.

Thereafter, setup virtual interface on the host, bind Tor's socks5 port to this interface.

In the vm, start openvpn daemon with host's virtual interface socks-proxy address, and socks5 port.

Now your vpn goes through Tor.

share|improve this answer
    
Robert Graham wrote a how to explaing this technique and why it is important: blog.erratasec.com/2014/03/airgapping-tor_8.html –  Charles Stewart Mar 10 at 14:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.