您的位置:首页 > 其它

iptables 基本命令

2008-10-31 17:15 155 查看
清除规则

#清除预设表 filter 中,所有规则链中的规则
iptables -F
# 清除预设表 filter 中,使用者自定义链中的规则
iptables -X

# 清除mangle表中,所有规则链中的规则
iptables -F -t mangle
# 清除mangle表中,使用者自定义链中的规则
iptables -t mangle -X

# 清除nat表中,所有规则链中的规则
iptables -F -t nat
# 清除nat表中,使用者自定义链中的规则
iptables -t nat -X

本文出自 “起航工作室” 博客,请务必保留此出处http://liubin.blog.51cto.com/282313/109434
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: