iptables -t nat -I PREROUTING -p tcp --dport 81 -j DNAT --to 192.168.1.2:80 iptables -I FORWARD -p tcp -d 192.168.1.2 --dport 80 -j ACCEPT The down side with this is that it's not as obvious as the other methods but you can use a program called Firewall Builder to make this simpler.

Dec 05, 2008 Port Forwarding - DD-WRT Wiki iptables -t nat -I PREROUTING -p tcp --dport 81 -j DNAT --to 192.168.1.2:80 iptables -I FORWARD -p tcp -d 192.168.1.2 --dport 80 -j ACCEPT The down side with this is that it's not as obvious as the other methods but you can use a program called Firewall Builder to make this simpler. Forward a TCP port to another IP or port using NAT with

How to forward port using iptables in Linux - Kernel Talks

Setup IPTables. Now we need to deploy IPTables on Host machine so that we could connect Docker container Apache from outside world. First we should check port 80 on Docker Host machine. #nc -w 5 -v 192.168.43.47 80 nc: connect to 192.168.43.47 port 80 (tcp) failed: No route to host Let’s deploy IPTables for Docker Container IP Address: 172.17.0.3 Iptables Essentials: Common Firewall Rules and Commands Aug 10, 2015

Forwarding Traffic with IPTables on CentOS 6 - Vultr.com

25 Useful IPtable Firewall Rules Every Linux Administrator