欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


快速扫除windows注册表垃圾的方案
CentOS Linux解决网卡启动时候报Device eth0 does not seem to
解决安装Nginx时报错一例
如何在Windows Server 2012中使用NIC Teaming
linux下uniq和sort命令用法详解
linux下uniq和sort命令用法
ESX5 SSH开启后服务器出现黄色感叹号
关于IIS 对temp目录权限问题的解决
提供服务的进程在与 World Wide Web Publishing 服务通信时遇到致命错误
I/O设备错误无法运行此项请求的解决
Linux如何清空所有iptables规则
【 来源:网络 】【 点击:1 】 【 发布时间:2017_03_03 08:59:59 】

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

  iptables -t nat -F

  iptables -t nat -X

  iptables -t nat -P PREROUTING ACCEPT

  iptables -t nat -P POSTROUTING ACCEPT

  iptables -t nat -P OUTPUT ACCEPT

  iptables -t mangle -F

  iptables -t mangle -X

  iptables -t mangle -P PREROUTING ACCEPT

  iptables -t mangle -P INPUT ACCEPT

  iptables -t mangle -P FORWARD ACCEPT

  iptables -t mangle -P OUTPUT ACCEPT

  iptables -t mangle -P POSTROUTING ACCEPT

  iptables -F

  iptables -X

  iptables -P FORWARD ACCEPT

  iptables -P INPUT ACCEPT

  iptables -P OUTPUT ACCEPT

  iptables -t raw -F

  iptables -t raw -X

  iptables -t raw -P PREROUTING ACCEPT

  iptables -t raw -P OUTPUT ACCEPT

  通过上本文的代码,我们可以清楚的知道了linux下清空所有iptables规则的方法,希望对大家有所帮助!

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站