Просмотр исходного кода

Modification of stop / clear behaviour

Laurent HUBERT 10 месяцев назад
Родитель
Сommit
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
 }