Ssh VPN

Aus xinux.net
Zur Navigation springen Zur Suche springen

Client

  • SERVER=example.com
  • ssh -w 0:0 root@$SERVER -fN
  • ip link set tun0 up
  • ssh root@$SERVER ip link set tun0 up
  • ip addr add 10.2.2.1/30 dev tun0
  • ssh root@$SERVER ip addr add 10.2.2.2/30 dev tun0

Server

Vorraussetzung
  • cat /etc/ssh/sshd_config
PermitTunnel yes