Подтвердить что ты не робот

Iptables: как удалить правило postrouting?

Я хотел бы удалить правило POSTROUTING ниже,

[[email protected] ~]# service iptables status
Table: nat
Chain PREROUTING (policy ACCEPT)
num  target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
num  target     prot opt source               destination         
1    MASQUERADE  all  --  192.168.1.0/24       0.0.0.0/0           

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

затем я напечатал ниже,

[[email protected] ~]# iptables -D POSTROUTING 1
iptables: No chain/target/match by that name

Есть ли что-то не так?

4b9b3361

Ответ 1

Попробуйте добавить имя таблицы явно:

iptables -t nat -D POSTROUTING 1