This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
vpn-ssh-tap [2020/07/25 12:52] robm [VPN via SSH TAP interfaces] |
vpn-ssh-tap [2020/08/06 11:48] (current) robm [VPN via SSH TAP interfaces] |
||
|---|---|---|---|
| Line 70: | Line 70: | ||
| Run the following on this VM: | Run the following on this VM: | ||
| - | | + | |
| sudo ip link add br0 up type bridge | sudo ip link add br0 up type bridge | ||
| - | sudo ip address add ${VM_HOST} dev br0 # Copy the address and netmask of eth1 | + | sudo ip address add ${ETH1_IP} dev br0 # Copy the address and netmask of eth1 |
| sudo ip address flush dev eth1 # Remove eth1's addresses completely | sudo ip address flush dev eth1 # Remove eth1's addresses completely | ||
| sudo ip link set eth1 master br0 # Attach eth1 to the bridge | sudo ip link set eth1 master br0 # Attach eth1 to the bridge | ||
| Line 78: | Line 78: | ||
| Run the following on the GadgetPi: | Run the following on the GadgetPi: | ||
| | | ||
| - | | + | |
| sudo ip link add br0 up type bridge | sudo ip link add br0 up type bridge | ||
| sudo ip link set eth0 up master br0 | sudo ip link set eth0 up master br0 | ||
| Line 87: | Line 87: | ||
| -w 5:5 \\ | -w 5:5 \\ | ||
| -t \\ | -t \\ | ||
| - | root@${VM_HOST} \\ | + | root@${REMOTE_HOST} \\ |
| "ip link set tap5 up master br0" | "ip link set tap5 up master br0" | ||
| EOF | EOF | ||