(local and remote) port forward with iptables

packets sent to 5680 will be forwarded to 80

enable port FW for external communication

iptables -A PREROUTING -t nat -p tcp —dport 5680 -j REDIRECT —to-port 80

enable port FW for internal communication

iptables -t nat -A OUTPUT -p tcp  —src 0/0 —dst 127.0.0.1 —dport 5680 -j REDIRECT —to-ports 80