I’m trying to forward some ports of the NUC Balena is running on to other devices using
iptables. However I’m not able to make it successful. (I’m just using the local IP of the device so nothing has to go via the internet).
What I used to do before we were running Balena was:
iptables -t nat -A PREROUTING -p tcp --dport 1011 -j DNAT --to-destination 10.39.46.11:22 iptables -t nat -A POSTROUTING -j MASQUERADE # Enable port forwarding
10.39.46.0/24 is a LAN where all the devices are connected to (e.g. sensors, NUC, PLC). This rule would allow me to ssh into a sensor using the (W)LAN IP of the NUC and port 1011. Are the rules Balena sets by default in the
iptables conflicting with these rules? Is there something else I should take into account?