iptables -t nat -A PREROUTING -d 20.87.1.5 -p udp --dport 40000:50000 -j DNAT --to-destination 192.168.12.2
将发到20.87.1.5的40000——50000的udp数据包转发到本地192.168.12.2 这个IP。
iptables -t nat -A PREROUTING -d 20.87.1.5 -p udp --dport 40000:50000 -j DNAT --to-destination 192.168.12.2
将发到20.87.1.5的40000——50000的udp数据包转发到本地192.168.12.2 这个IP。