Iptables - как удалить или очистить все правила: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
(Новая страница: « === Iptables - как удалить или очистить все правила === для CentOS 6: # iptables -P INPUT ACCEPT # iptables -P FORWARD AC…»)
 
(нет различий)

Текущая версия на 09:13, 12 сентября 2019


Iptables - как удалить или очистить все правила

для CentOS 6:

# iptables -P INPUT ACCEPT
# iptables -P FORWARD ACCEPT
# iptables -P OUTPUT ACCEPT
# iptables -t nat -F
# iptables -t mangle -F
# iptables -F
# iptables -X
# service iptables save

или одной командой:

 # iptables -P INPUT ACCEPT && iptables -P FORWARD ACCEPT && iptables -P OUTPUT ACCEPT && iptables -t nat -F && iptables -t mangle -F && iptables -F && iptables -X && service iptables save