Im graphing with mrtg some routers and some CPE, a couple of days ago, snmp stopped working on 3 routers, so i tought it was a routing issue since i was changing some stuff, but both devices, the mrtg server and the router are able to ssh, ping, etc.. just snmp does not work, even if i try connected directly to the router and i nmap udp port 161, it says, open/filtered.
I dont have any firewall filter rules on either, i created 2 rules on the router in filter with action accept on UDP port 161 but one in chain input and the other on output. its seams to be getting info but not responding. Any ideas?
admin@ClientRouter /ip firewall filter> export # jan/20/1970 23:10:07 by RouterOS 6.42.7 # software id = # # model = SXT 5nD r2 # serial number = /ip firewall filter add action=accept chain=input dst-port=161 protocol=udp add action=accept chain=output dst-port=161 protocol=udp [admin@ClientRouter] /ip firewall filter>
Here is what nmap outputs:
/snmp community add addresses=x.x.x.x/22 name=public add addresses=x.x.x.x/22 name=mycommunity /snmp set contact=CLIENT enabled=yes location=CLIENT-CPE
Thanks all in advance...
sudo nmap -sU -p 161 10.107.1.13 Starting Nmap 7.60 ( https://nmap.org ) at 2018-09-09 21:30 -05 Nmap scan report for 10.107.1.13 Host is up (0.012s latency). PORT STATE SERVICE 161/udp open|filtered snmp Nmap done: 1 IP address (1 host up) scanned in 0.60 seconds