Cacti监控Centos抓包unreachable - admin prohibited

09:10:41.023399 IP 192.168.1.80 > 192.168.2.182: ICMP host 192.168.1.80 unreachable - admin prohibited, length 79

抓包发现老是有这个出现,并且是跟在GetRequest后面。tcp

打开iptables配置:spa

最开始网上找的配置语句是这个,code

-A INPUT -p udp -m udp --sport 161 -j ACCEPT

后面觉得还须要开放tcp,又加了一条,blog

-A INPUT -p tcp -m state --state NEW -m tcp --dport 161 -j ACCEPT 
-A INPUT -p udp -m udp --sport 161 -j ACCEPT

最后发现udp那条是错误的,因而,ip

-A INPUT -p udp -m state --state NEW -m udp --dport 161 -j ACCEPT

再抓包,就看见每一个GetRequest后面都是GetResponse了。it

顺便记下此次抓包的命令table

tcpdump -nn -X 'host 192.168.2.182' -c 10
相关文章
相关标签/搜索