1
1
I'm currently visiting China, so I have some options for VPNs set up. However, my VPN servers have a habit of suddenly disappearing from the network after I've used them for a while.
I thought it might be an option to use an SSH tunnel to another server, and to connect the VPN through that, to prevent the VPN traffic from being detected. That way, presumbly, the traffic just reads as an SSH connection to the provider.
So, I connect to a server like this:
ssh peter@some-server -L 4444:vpn-server:1194 -N
And then add this to my openvpn client configuration:
remote localhost 1194
Sadly, this doesn't work. The connection authenticates, but afterwards, I can't connect to either the inside of the VPN (ping 10.8.0.1) or the outside (ping 8.8.8.8). Should this work, or am I misunderstanding something?
Is there some iptables nat rule I should add? The only nat rule I've added so far is:
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
1The VPN´s servers disappear because the Chinese Government's servers identify that you're using a VPN. The question is, do you REALLY need this VPN? In spite of the technical challenges, is there a sufficient reason for doing something that can be illegal? If they track your VPN usage and get to you, they can arrest you for using a VPN. China is not the kind of foreign country where you would like to be arrested. They can jail you for months for almost nothing. Would it be worth? – mguima – 2019-02-18T18:38:04.853
@mguima I think you've seen too many movies. – Peter – 2019-02-19T09:59:10.493
Maybe. Remember, they're not Westerns. It's link another kind of world. – mguima – 2019-02-20T01:58:09.150