Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

block incoming snmp traps from ip

Status
Not open for further replies.

malpa

Technical User
Feb 8, 2004
122
CO
Hi there

I am trying to block snmp incomming traffic from ip "xx.xx.xx.xx", using iptables but i dont understand why it is not done by the operating system REL.

trying with this

iptables -A INPUT -s 10.250.2.235 -p udp --destination-port 162 -j DROP
iptables -A INPUT -s 10.250.2.235 -j DROP


any comments

Thanks a lot
Best Regards
Malpa
 

Hi there

Question
It could be that the comment shadowed in red color, is the issue ??

systemctl status iptables.service
● iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
[highlight #EF2929]Active: inactive (dead)[/highlight]

Must I run "service iptables restart"?



Thanks a lot
Malpa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top