Преглед изворни кода

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
 }