Skip to content

🛠 Tools for setting up OpenVPN client over SSH tunnel

Notifications You must be signed in to change notification settings

roflganker/openvpn-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenVPN tools

Motivation

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.

Requirements

On your server side

  1. VDS/VPS running linux
  2. OpenVPN server working over TCP, as example dockovpn-tcp

On your client side

  1. SSH access to your server
  2. OpenVPN client software installed
  3. Root (sudo) priveleges

Getting started

Obtaining scripts

git clone https://github.com/roflganker/openvpn-tools.git
cd openvpn-tools
chmod +x *.sh

Obtainign OpenVPN client configration

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

Statring the tunnel

./up.sh username@host
# Now test connectivity
sleep 5;
./test.sh
ping 1.1.1.1
ping <anything>

Stopping the tunnel

./down.sh

Chaining multiple tunnels

Soon.

Releases

No releases published

Packages

No packages published

Languages