Total Pageviews

Thursday 27 December 2012

一条转发流量的iptables NAT 命令

Route all networks traffic to 89.175.0.254:21 to local ip 192.168.0.2:21
iptables -t nat -A PREROUTING -d 89.175.0.254 -p tcp -m tcp –dport 21 -j DNAT –to-destination 192.168.0.2:21