Community discussions

MikroTik App
 
sdrenner
Member Candidate
Member Candidate
Topic Author
Posts: 138
Joined: Wed Mar 02, 2005 10:03 pm
Contact:

Port Forward SNMP

Tue Oct 20, 2015 12:04 am

I need to create a port forward to get to a device i need to pull SNMP from on the local side.
I took and created this, but it didn't work:
chain=dstnat action=dst-nat to-addresses=192.168.x.x to-ports=161 protocol=udp
dst-address=xxx.xxx.xxx.xxx dst-port=161
 
User avatar
bjorncmtec
Frequent Visitor
Frequent Visitor
Posts: 98
Joined: Thu Apr 19, 2012 1:10 pm

Re: Port Forward SNMP

Tue Oct 20, 2015 5:56 pm

That rule is right, make sure the PC or device you are sending to is accepting UDP 161 (Check its Firewall)
 
sdrenner
Member Candidate
Member Candidate
Topic Author
Posts: 138
Joined: Wed Mar 02, 2005 10:03 pm
Contact:

Re: Port Forward SNMP

Wed Oct 21, 2015 5:04 pm

Plugged in locally i can do an SNMP walk and it works.
When trying to do so from the outside the SNMP walk timesout.
Any other thoughts?
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Port Forward SNMP

Wed Oct 21, 2015 5:07 pm

what do you mean with "outside"? from another PC in your LAN? Try from another PC in your LAN, if it doesn't snmpwalk check your SNMP config as it maybe set up to only answer to requests from localhost (very common default config)
 
sdrenner
Member Candidate
Member Candidate
Topic Author
Posts: 138
Joined: Wed Mar 02, 2005 10:03 pm
Contact:

Re: Port Forward SNMP

Wed Oct 21, 2015 5:12 pm

From the outside means: not local, from a remote connection.
The device we are tying to pull snmp info from is not set to only request from x.x.x.x networks it is open.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Port Forward SNMP

Thu Oct 22, 2015 11:31 am

Plugged in locally i can do an SNMP walk and it works.
Does this mean the snmpwalk from another host in the same LAN, same network segment, works?

If so, are you 100% sure the snmp config doesn't prevent hosts from a different network address connect to the snmp daemon?

If so, does the snmp host have a default gateway, or proper routing to reach the querying host?
 
zied
just joined
Posts: 7
Joined: Wed Feb 27, 2019 12:48 pm

Re: Port Forward SNMP

Wed Feb 23, 2022 12:21 pm

Hi, Any update for this matter?

Who is online

Users browsing this forum: mada3k and 19 guests