How to Open SNMP through iptables?

How to Open SNMP through iptables?



[root@example ~]# iptables -I INPUT -p udp -m udp --dport 161 -j ACCEPT
[root@example ~]# iptables -I INPUT -p udp -m udp --dport 162 -j ACCEPT
[root@example ~]#  iptables-save > /etc/sysconfig/iptables

0 Comments