
如何路由udp
與iptables
下列模式相符的傳入封包:
53 41 4D 50 5B 79 95 DB 61 1E 69
從公共介面(vmbr0
)和連接埠7777
到192.168.0.1:7777
?
答案1
您可以使用 iptables u32 模組來實現此目的。看:http://www.stearns.org/doc/iptables-u32.current.html和基於TCP序列的TCP包過濾
如何路由udp
與iptables
下列模式相符的傳入封包:
53 41 4D 50 5B 79 95 DB 61 1E 69
從公共介面(vmbr0
)和連接埠7777
到192.168.0.1:7777
?
您可以使用 iptables u32 模組來實現此目的。看:http://www.stearns.org/doc/iptables-u32.current.html和基於TCP序列的TCP包過濾