码迷,mamicode.com
首页 > 其他好文 > 详细

iptables

时间:2015-09-29 16:55:00      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT

--append   -A chain        Append to chain
--delete    -D chain        Delete matching rule from chain
--delete    -D chain rulenum    Delete rule rulenum (1 = first) from chain
--insert    -I chain [rulenum]   Insert in chain as rulenum (default 1=first)
--replace   -R chain rulenum      Replace rule rulenum (1 = first) in chain
--list        -L [chain [rulenum]]  List the rules in a chain or all chains
--list-rules -S [chain [rulenum]]  Print the rules in a chain or all chains
--flush     -F [chain]        Delete all rules in  chain or all chains
--zero      -Z [chain [rulenum]]  Zero counters in chain or all chains
--new       -N chain        Create a new user-defined chain
--delete-chain    -X [chain]        Delete a user-defined chain
--policy  -P chain target             Change policy on chain to target
--rename-chain  -E old-chain new-chain Change chain name, (moving any references)

 

iptables

标签:

原文地址:http://www.cnblogs.com/yaoweilei/p/4846466.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!