...
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. |
-M defines the monitoring port autossh uses to monitor the connection |
Possible additional steps:
- Enable IP forwarding on the remote Linux system if it is to act as a router between the tunnel connection and
other systems in the customer network:# /sbin/sysctl -w net.ipv4.ip_forward=1
(to make permanent: add the setting to /etc/sysctl.conf) - Add static or dynamic routes to distribute the tunnel subnet to other systems in the customer network that need to communicate with the Solaris guest system across the VPN..
- Adapt the firewall on the remote Linux system as required to allow the VPN traffic to pass.
Steps on the Solaris Guest System
...