ISRC-CAS/tarsier-oerv

iptables `comment':No such file or directory

jiangxiaobin96 opened this issue · 1 comments

iptables中的comment是用来给规则添加注释的
用相同一个例子做测试:添加一条允许ssh流量通过的规则,并且给这条规则添加注释

# 在ARM树莓派上
$ iptables -A INPUT -p tcp -m tcp --dport 22 -m comment --comment "allow SSH to this host from anywhere" -j ACCEPT
# 在D1-openEuler上
$ iptables -A INPUT -p tcp -m tcp --dport 22 -m comment --comment "allow SSH to this host from anywhere" -j ACCEPT
iptables v1.8.1 (legacy): Couldn't load match `comment':No such file or directory

目前定位的问题在实验室提供的oe镜像的内核模块中config没有开启comment选项