Skip to content

javierckr/Vpn-over-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vpn-over-ssh

Bash script for tunneling all traffic over ssh

Requirements

Only tested on Linux, you may need root.

This script will transform your ssh server into a gateway, but all changes it makes are restored at reboot.

The script uses ip tables and iproute2, usually installed by default.

Dependencies

Client packages: bash iproute2 systemd openssh bind9-host

Server packages: bash iproute2 iptables openssh sudo

Use instructions

  1. Download vpn.sh
  2. Change permisions so you can execute chmod +x vpn.sh
  3. Run # ./vpn.sh

Install

# cp vpn.sh /usr/local/sbin/vpn

About

Bash script for tunneling all traffic over ssh

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages