User Tools

Site Tools


vpn-ssh-tap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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]
robm [VPN via SSH TAP interfaces]
Line 70: Line 70:
       Run the following on this VM:       Run the following on this VM:
  
-        VM_HOST=192.168.167.100/24+        ETH1_IP=192.168.167.100/24
         sudo ip link add br0 up type bridge     # Create a bridge         sudo ip link add br0 up type bridge     # Create a 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:
              
-        VM_HOST=192.168.167.237+        REMOTE_HOST=192.168.167.237
         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
vpn-ssh-tap.txt · Last modified: 2020/08/06 11:48 by robm