自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

linux下清空所有iptables規(guī)則

運(yùn)維 系統(tǒng)運(yùn)維
iptables 是與最新的 2.6.x 版本Linux 內(nèi)核集成的 IP 信息包過濾系統(tǒng)。我們?cè)谑褂胕ptables時(shí),有許多iptables垃圾規(guī)則不想要,如何清空iptables規(guī)則呢,答案就在正文中!

linux清空iptables規(guī)則具體方法如下:

 

  1.   iptables -t nat -F  
  2.  
  3.   iptables -t nat -X  
  4.  
  5.   iptables -t nat -P PREROUTING ACCEPT  
  6.  
  7.   iptables -t nat -P POSTROUTING ACCEPT  
  8.  
  9.   iptables -t nat -P OUTPUT ACCEPT  
  10.  
  11.   iptables -t mangle -F  
  12.  
  13.   iptables -t mangle -X  
  14.  
  15.   iptables -t mangle -P PREROUTING ACCEPT  
  16.  
  17.   iptables -t mangle -P INPUT ACCEPT  
  18.  
  19.   iptables -t mangle -P FORWARD ACCEPT  
  20.  
  21.   iptables -t mangle -P OUTPUT ACCEPT  
  22.  
  23.   iptables -t mangle -P POSTROUTING ACCEPT  
  24.  
  25.   iptables -F  
  26.  
  27.   iptables -X  
  28.  
  29.   iptables -P FORWARD ACCEPT  
  30.  
  31.   iptables -P INPUT ACCEPT  
  32.  
  33.   iptables -P OUTPUT ACCEPT  
  34.  
  35.   iptables -t raw -F  
  36.  
  37.   iptables -t raw -X  
  38.  
  39.   iptables -t raw -P PREROUTING ACCEPT  
  40.  
  41.   iptables -t raw -P OUTPUT ACCEPT  
  42.  

 

通過上本文的代碼,我們可以清楚的知道了linux下清空所有iptables規(guī)則的方法,希望對(duì)大家有所幫助!

【編輯推薦】

  1. 如何清空其中一條iptables規(guī)則
  2. 如何清空iptables規(guī)則
  3. 如何保存iptables配置
  4. 保存iptables的防火墻規(guī)則的方法
  5. iptables日志通過MySQL來保存
  6. 關(guān)掉Iptables防火墻的相關(guān)的命令
  7. 教你如何關(guān)閉iptables網(wǎng)絡(luò)端口
責(zé)任編輯:趙鵬 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2011-03-16 16:41:57

清空iptables

2011-03-16 16:48:32

iptables 清空

2017-09-11 20:16:58

2011-03-17 17:45:45

iptables規(guī)則

2009-11-30 09:56:16

2011-03-14 16:46:40

Linuxiptables上網(wǎng)

2011-03-18 09:26:13

Iptables規(guī)則

2011-03-16 09:30:47

iptables過濾

2011-03-16 10:59:57

2011-03-16 16:59:46

iptables 映射

2011-03-16 09:05:33

2011-04-21 09:54:14

Linuxiptables

2011-03-18 10:16:13

LinuxiptablesIP

2011-03-16 10:12:27

LinuxIptables端口轉(zhuǎn)發(fā)

2011-03-15 15:47:26

LinuxIptables防火墻

2011-03-14 15:46:35

Iptables語(yǔ)法

2012-10-10 17:45:49

JavaScriptJavaScript規(guī)JavaScript控

2011-03-15 17:12:11

2011-03-15 15:47:34

netfilteriptables

2011-03-17 12:25:55

iptables ft
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)