Bug#443056: openssh: ssh -w tunnel example
Package: openssh
Version: 4.3p2-9.1
Severity: wishlist
ssh(1) includes some documentation for ad-hoc ipsec vpn with ssh -w,
but refers to a script /etc/netstart.sh. Apparently this is a
bsdism [0]; I think Debian's docs should include instead an example
that works for under its own OS.
For reference, I used the following command:
sudo env SSH_AUTH_SOCK=$SSH_AUTH_SOCK ssh -f -F `pwd`/.ssh/config -vw
0 root@xyz ifconfig tun0 10.0.50.1 pointopoint 10.0.50.2 ; sudo
ifconfig tun0 10.0.50.2 pointopoint 10.0.50.1
The "env" and "pwd" bits are due to changing environment/home. -w 0
might not be right (should be 0:0 or such). Note the unfortunate
spelling of "pointopoint".
References
[0] http://www.openbsd.org./cgi-bin/man.cgi?query=netstart&sektion=8&manpath=OpenBSD+3.9
Reply to: