created: 20180907160514426 creator: user modified: 20180907161924988 modifier: user tags: title: PortForwarding type: text/vnd.tiddlywiki iptables -------- echo "1" > /proc/sys/net/ipv4/ip_forward iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 2.2.2.2:4443 iptables -t nat -A POSTROUTING -j MASQUERADE 443 is local to machine running iptables 4443 is destination machine port