无法向iptables添加规则

时间:2018-03-11 22:15:27

标签: iptables

我的iptables有问题,我无法添加这些规则

From main thread
From main thread
From main thread
server sent data to client: Thread2
server sent data to client: Thread1
server sent data to client: Thread2
server sent data to client: Thread1

当我使用sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 22 -j REDIRECT --to-ports 22 sudo iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53 sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040 时,什么都没有保存......

iptables -L给出1.6.0

1 个答案:

答案 0 :(得分:0)

您编辑了NAT表。使用iptables -L -t nat -v

查看结果