iptables端口转发

阅读更多
https://www.v2ex.com/t/213227
http://www.361way.com/iptables-udp-nat/2947.html
http://www.latelee.org/using-gnu-linux/iptables-notes-tcp-udp-forward.html



iptables -t nat -A PREROUTING -p udp --dport -j DNAT --to-destination
iptables -t nat -A POSTROUTING -p udp -d --dport -j SNAT --to-source
iptables -A FORWARD -d -p udp --dport -j ACCEPT

你可能感兴趣的:(iptables端口转发)