Ubuntu – How to route vpn through proxy

networkingPROXYservertorvpn

I have an ISP (public hospital) who is blocking everything through a program called Fortiguard. It's very annoying. Its blocking my public library as a terrorist organization, my work email saying its considered social media, my computer support and coding sites under the category of "Hacking".

However Crackle, Netflix, Youtube, Facebook, and Pandora seem to work well. I'm surprised these website are even working. VPN's don't work. Changing the DNS server doesn't work. HTTPS doesn't even keep me safe. The only thing which does work is Tor. I would like to route all my system connections through a trusted exit node in Tor.

I figured the best way to do this was to create a VPN server with a hidden service address (vps is limited in bandwidth) in on my VPS (if they haven't blocked ssh). To do this I need to route everything through the Tor proxy and then to the hidden service address via the vpn protocol. I'm staying here for three more days and I would really love to give this hospital IT a piece of my mind but to avoid confrontation I would much rather just cut the crap and bypass all this.

Long story short: Is there a way to route vpn through proxy? So the Internet access will work like this:

PC –> Proxy –> VPN –> Internet

Best Answer

Read the official manual.

You can launch openvpn in the next manner:

# openvpn --config config.file --http-proxy 127.0.0.1 3128

However, http-proxy doesn't support UDP, probably, you can do this only with TCP vpn.

But there is --socks-proxy option for openvpn, you can use socks5 instead of http-proxy, socks5 do both UDP and TCP.

Related Question