设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 2104|回复: 0

Linux下清空ip6tables防火墙规则

[复制链接]
 成长值: 60

签到天数: 4513 天

[LV.Master]伴坛终老

发表于 2018/8/23 15:40 | 显示全部楼层 |阅读模式 |Google Chrome 68.0.3440.106|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
将所有ip6tables以序号标记显示,执行:
  1. ip6tables -L -n --line-numbers
复制代码


清空命令
  1. ip6tables -t mangle -F
  2. ip6tables -t mangle -X
  3. ip6tables -t mangle -P PREROUTING ACCEPT
  4. ip6tables -t mangle -P INPUT ACCEPT
  5. ip6tables -t mangle -P FORWARD ACCEPT
  6. ip6tables -t mangle -P OUTPUT ACCEPT
  7. ip6tables -t mangle -P POSTROUTING ACCEPT
  8. ip6tables -F
  9. ip6tables -X
  10. ip6tables -P FORWARD ACCEPT
  11. ip6tables -P INPUT ACCEPT
  12. ip6tables -P OUTPUT ACCEPT
  13. ip6tables -t raw -F
  14. ip6tables -t raw -X
  15. ip6tables -t raw -P PREROUTING ACCEPT
  16. ip6tables -t raw -P OUTPUT ACCEPT
  17. service ip6tables save
复制代码


[发帖际遇]: 小樱 在网吧通宵,花了 5 樱币. 幸运榜 / 衰神榜
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/5/14 01:07 , Processed in 0.380341 second(s), 20 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表