瀏覽代碼

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
 }