Full Tunel sobre SSH en Debian

Preparar Interface en un extremo (En servidor)

allow-hotplug tun1
iface tun1 inet static
address 172.16.0.1
netmask 255.255.255.0
pointopoint 172.16.0.2 # Client tunnel address

En el cliente

allow-hotplug tun1
iface tun1 inet static
pre-up ssh -S /var/run/ssh-vpn-tunnel-control -M -f -w 1:1 [IP SERVER] true
#pre-up autossh -f -w 1:1 [IP SERVER] true
pre-up sleep 5

address 172.16.0.2
pointopoint 172.16.0.1
netmask 255.255.255.0

post-down ssh -S /var/run/ssh-vpn-tunnel-control -O exit [email protected][IP SERVER]

Ingeniero, enfocado en la familia y el cliente, emprendiendo y capitalizando lo aprendido por años.

Leave Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.