linux下清空所有iptables规则
创始人
2024-07-23 08:30:51
0

linux清空iptables规则具体方法如下:

 

  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规则的方法,希望对大家有所帮助!

【编辑推荐】

  1. 如何清空其中一条iptables规则
  2. 如何清空iptables规则
  3. 如何保存iptables配置
  4. 保存iptables的防火墙规则的方法
  5. iptables日志通过MySQL来保存
  6. 关掉Iptables防火墙的相关的命令
  7. 教你如何关闭iptables网络端口

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
各种千兆交换机的数据接口类型详... 千兆交换机有很多值得学习的地方,这里我们主要介绍各种千兆交换机的数据接口类型,作为局域网的主要连接设...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
规避非法攻击 用好路由器远程管... 单位在市区不同位置设立了科技服务点,每一个服务点的员工都通过宽带路由器进行共享上网,和单位网络保持联...
范例解读VB.NET获取环境变... VB.NET编程语言的使用范围非常广泛,可以帮助开发人员处理各种程序中的需求,而且还能对移动设备进行...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...