Bug#443056: openssh: ssh -w tunnel example
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 ; 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".