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
Next revision
Previous revision
Next revision Both sides next revision
vpn-ssh-tap [2020/07/25 01:34]
robm
vpn-ssh-tap [2020/07/25 12:28]
robm [VPN via SSH TAP interfaces]
Line 3: Line 3:
 Useful to run the following on both local and remote, to get a sense of what's happening: Useful to run the following on both local and remote, to get a sense of what's happening:
  
-<code> +  * ''bridge monitor'' 
-bridge monitor +  * ''watch ip --brief address'' 
-</code>+  * ''watch ip --brief link'' 
 +  * ''watch bridge link'' 
  
 VM, where eth1 is connected to the network I want to make my RPi appear in: VM, where eth1 is connected to the network I want to make my RPi appear in:
Line 19: Line 21:
  
 <code> <code>
 +VM_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 ssh \ sudo ssh \
   -o PermitLocalCommand=yes \   -o PermitLocalCommand=yes \
Line 26: Line 30:
   -w 5:5 \   -w 5:5 \
   -t \   -t \
-  root@192.168.167.237 \+  root@${VM_HOST} \
   "ip link set tap5 up master br0"   "ip link set tap5 up master br0"
 </code> </code>
 +
 +===== Debugging =====
 +
 +I found [[https://www.wireshark.org/docs/man-pages/tshark.html| tshark - Dump and analyze network traffic]] useful, as it can capture ethernet frames to a file (such as ''/vagrant/tshark'') which you can then load into the Wireshark GUI after the fact.
vpn-ssh-tap.txt · Last modified: 2020/08/06 11:48 by robm