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

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 09:13, 12 сентября 2019; Admin iph (обсуждение | вклад) (Новая страница: « === Iptables - как удалить или очистить все правила === для CentOS 6: # iptables -P INPUT ACCEPT # iptables -P FORWARD AC…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск


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