Connecting from other Computers
This page describes how to set up the computer hosting Virtual Skynode such that other devices in the network can connect to Virtual Skynode
Overview and Assumptions:
TCP Packet forwarding via iptables
# Rule for forwarding packets that arrive on port 5790 via TCP to Virtual Skynode:
iptables -I FORWARD -d 10.41.200.2 -m comment --comment "Accept to forward mavlink traffic" -m tcp -p tcp --dport 5790 -j ACCEPT
iptables -t nat -I PREROUTING -m tcp -p tcp --dport 5790 -j DNAT --to-destination 10.41.200.2:5790
# Forward packets coming back from the Virtual Skynode
iptables -I FORWARD -s 10.41.200.2 -m tcp -p tcp --sport 5790 -j ACCEPT
# Setup NAT
iptables -t nat -I POSTROUTING -d 10.41.200.2 -o eth0 -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPTLast updated