{OLD} Network Setup

Showing how I got routing working via a NAT (we are using bridging now for the VOXL2, so this is obsolete)

Network Setup

Will be done on setup script. Here for documentationSteps to reproduce (Linux/Windows based system):

  • On host computer: add route sudo ip route add 192.168.144.0/24 via 192.168.168.100

  • Ensure firewall rules allow traffic between microhard and voxl2 + camera

  1. On VOXL2: Assure no existing iptables rules exist: iptables -t nat -nL

voxl2:/$ iptables -t nat -nLChain PREROUTING (policy ACCEPT)target prot opt source destination​Chain INPUT (policy ACCEPT)target prot opt source destination​Chain OUTPUT (policy ACCEPT)target prot opt source destination​Chain POSTROUTING (policy ACCEPT)target prot opt source destinationMASQUERADE all -- 0.0.0.0/0 0.0.0.0/0

  1. On VOXL2: Add iptables rule: sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

This will only allow communication INITAIATED from the host computer to camera. Will NOT allow communication to be initatiated from the camera to the host computer.In future, if we need communication to be initiated from the camera, then we'll have to add a route from camera to host computer subnet.

Last updated