Debian - как очистить правила iptables

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 09:07, 17 июня 2016; Admin iph (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск


Debian - как очистить правила iptables

# vi stop_iptables_debian.sh
#!/bin/bash
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT


# chmod a+x stop_iptables_debian.sh
# sh stop_iptables_debian.sh


stop_iptables_debian