...
Action | Command |
---|---|
Create TAP interface. | # ip tuntap add dev tap0 mod tap |
Enable TAP interface. | # ip link set tap0 up |
Create bridge. | # ip link add name br_vpn0 type bridge |
Enable bridge interface. | # ip link set br_vpn0 up |
Define IP address for bridge. | # ip addr add 192.168.0.1/24 dev br_vpn0 |
Add TAP interface to bridge. | # ip link set tap0 master br_vpn0 |
Start the SSH tunnel. autossh is a program to start a copy of ssh and monitor it, restarting it Once started, you can move the program to the background. |
-i denotes the path to the private key matching the public key copied to the host system. |
...