Преглед на файлове

Modification of stop / clear behaviour

Laurent HUBERT преди 10 месеца
родител
ревизия
cee66cdcf5
променени са 1 файла, в които са добавени 0 реда и са изтрити 10 реда
  1. 0 10
      scripts/lfirewall

+ 0 - 10
scripts/lfirewall

@@ -389,11 +389,6 @@ fw_restore_user(){
 
 fw_stop () {
 	do_this $IP_TABLES -F
-	do_this $IP_TABLES -t nat -F
-	do_this $IP_TABLES -t mangle -F
-	do_this $IP_TABLES -P $IT_INPUT DROP
-	do_this $IP_TABLES -P FORWARD DROP
-	do_this $IP_TABLES -P $IT_OUTPUT ACCEPT
 }
 
 ##########################
@@ -402,11 +397,6 @@ fw_stop () {
 
 fw_clear () {
 	do_this $IP_TABLES -F
-	do_this $IP_TABLES -t nat -F
-	do_this $IP_TABLES -t mangle -F
-	do_this $IP_TABLES -P $IT_INPUT ACCEPT
-	do_this $IP_TABLES -P FORWARD ACCEPT
-	do_this $IP_TABLES -P $IT_OUTPUT ACCEPT
 	do_this $IP_TABLES -X
 }