这是一个几经转载的文章,因为马上可能会用到这个,所以先放博客中,为了以后好查找。
# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:16716 to:192.168.1.10:16716
DNAT udp -- anywhere anywhere udp dpt:16716 to:192.168.1.10:16716
DNAT tcp -- anywhere anywhere tcp dpt:10601 to:192.168.1.10:10601
DNAT udp -- anywhere anywhere udp dpt:10601 to:192.168.1.10:10601
DNAT tcp -- anywhere anywhere tcp dpt:12746 to:192.168.1.10:12746
DNAT udp -- anywhere anywhere udp dpt:12746 to:192.168.1.10:12746
DNAT tcp -- anywhere anywhere tcp dpt:20545 to:192.168.1.10:20545
DNAT