作者归档:aigol

关于aigol

Hi boby

iptables-comment加注释

iptables 可以加载comment模块,对规则加以解释,方便管理!

# iptables -m comment -help
iptables v1.4.10
.
.
.
comment match options:
--comment COMMENT Attach a comment to a rule

示例:

# iptables -t filter -I INPUT -p tcp --dport 21 -j ACCEPT -m comment --comment "remark"
# iptables -t filter -I INPUT -m comment --comment "remark" -p tcp --dport 21 -j ACCEPT

# iptables -t filter -nL INPUT
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:21 /* remark */ 
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           /* remark */ tcp dpt:21



# iptables -t filter -I INPUT -m comment --comment "remark1" -p tcp --dport 21 -j ACCEPT -m comment --comment "remark2"

# iptables -t filter -nL INPUT
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           /* remark1 */ tcp dpt:21 /* remark2 */

参考:

http://spamcleaner.org/en/misc/iptables-comment.html

 

十年高考两茫茫

十年高考两茫茫,不思量,自难忘!

十年前的今天,考场中——有你,有我,还有他/她!

十年时间,我们奔三了……时间这把杀猪刀,虽仍是少年,却以是白发少年!

下一个十年,应该有些人的baby是否坐在考场中ing……

十年,又会有几个呢……

hi boy, 让青春再烧十年!

hi girl,让美丽再炫十年!

继续阅读 →