Many state-related ISPs managed to block OpenVPN via packet inspection. One of ways to bypass OpenVPN blocking is to run it over an SSH tunnel, so, these tools are intended to glue ssh and vpn.
On your server side
- VDS/VPS running linux
- OpenVPN server working over TCP, as example dockovpn-tcp
On your client side
- SSH access to your server
- OpenVPN client software installed
- Root (sudo) priveleges
git clone https://github.com/roflganker/openvpn-tools.git
cd openvpn-tools
chmod +x *.sh
Just place client.ovpn
under ./clients/<host>.ovpn
.
Also consider this:
- UDP clients will not work, don't even try
- As we connect over tunnel, remote address should be
remote localhost 1194
- SSH client should connect over a common gateway.
route <vds_id> 255.255.255.255 net_gateway
./up.sh username@host
# Now test connectivity
sleep 5;
./test.sh
ping 1.1.1.1
ping <anything>
./down.sh
Soon.