site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
2020
Share Topic
Posting?
Post a:
Post a:
Links: ·WISP Forum FAQ ·WISP Directory ·Radio Mobile
AuthorAll Replies


Killa200
Premium
join:2005-12-02
Southeast TN
Reviews:
·Charter

Setting up SNMP on routeros

Perhaps today i am just stupid (it feels like Monday still... ughhh), but i am having no luck getting the snmp server on either of my RB433's to talk to my cacti box. Here is the current setup:

/snmp> print
         enabled: yes
         contact: "XXX"
        location: "EagleLanding(AP2)"
       engine-id: ""
    engine-boots: 3
     time-window: 15
       trap-sink: 0.0.0.0
  trap-community: (unknown)
    trap-version: 1
 

/snmp community> print
 # NAME                               ADDRESS            SECURITY   READ-ACCESS
 0 SPWI                               68.XXX.XXX.222/32  none       yes        
 1 public                             0.0.0.0/0          none       no         
 

At this point shouldn't the box at 68.XXX.XXX.222 have no issues grabbing at least a response from the snmp server on the boards? Because at this moment all i am getting is an snmp error in cacti, :(

Nitroxide

join:2009-06-05

1 edit

If you run snmpwalk manually from the cacti console do you get a result?

Edit: You should also be using version 2 for snmp and assign it a community string.



Killa200
Premium
join:2005-12-02
Southeast TN

nope, all i get is "SNMP Walk Results for......" and no data



Killa200
Premium
join:2005-12-02
Southeast TN
Reviews:
·Charter

Just for giggles a little bit ago i also setup a vpn into this network and tried connecting up to snmp server with a local address, which also failed,

Starting to wonder if snmp is really running even though it says it is. Or if there is some sort of firewall rule i am missing.


Nitroxide

join:2009-06-05

1 edit

Are you blocking port 161 / 162 UDP?

Have you tried version 2 of snmp?

Can you ping the device?



Killa200
Premium
join:2005-12-02
Southeast TN
Reviews:
·Charter

1 edit

Tried versions 1 and 2 in cacti and both pull in an snmp error (assuming because it is having issues connecting).

I can ping the device, both its public ip address, and the local address through the vpn, and i can also get the its services through the public like telnet / ssh and web box.

Here is my firewall and nat rules, i don't see anything that could be causing an issue:

/ip firewall filter> print
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=input action=drop src-address=61.129.64.137 
 
 1   ;;; drop ssh brute forcers
     chain=input action=drop protocol=tcp src-address-list=ssh_blacklist 
     dst-port=22 
 
 2   chain=input action=add-src-to-address-list connection-state=new 
     protocol=tcp src-address-list=ssh_stage3 address-list=ssh_blacklist 
     address-list-timeout=1w3d dst-port=22 
 
 3   chain=input action=add-src-to-address-list connection-state=new 
     protocol=tcp src-address-list=ssh_stage2 address-list=ssh_stage3 
     address-list-timeout=1m dst-port=22 
 
 4   chain=input action=add-src-to-address-list connection-state=new 
     protocol=tcp src-address-list=ssh_stage1 address-list=ssh_stage2 
     address-list-timeout=1m dst-port=22 
 
 5   chain=input action=add-src-to-address-list connection-state=new 
     protocol=tcp address-list=ssh_stage1 address-list-timeout=1m 
     dst-port=22 
 
 6   chain=input action=drop src-address=202.117.56.29 
 
 7   chain=input action=drop src-address=207.218.247.7 
 

/ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic 
 0   ;;; masq AP
     chain=srcnat action=masquerade src-address=10.10.0.0/16 
     out-interface=WAN 
 
 1   chain=dstnat action=dst-nat to-addresses=10.10.11.2 
     dst-address=12.XXX.XXX.243 
 
 2   chain=srcnat action=src-nat to-addresses=12.XXX.XXX.243 
     src-address=10.10.11.2 
 


Rhaas
Premium
join:2005-12-19
Bernie, MO

1 edit

Edit: NVM..



viperm
Carpe Diem
Premium
join:2002-07-09
Winchester, CA

1 edit

reply to Killa200

--
ComTrain Certified Tower Climber. American Tower Certified approved contractor. Wireless consultants.



Killa200
Premium
join:2005-12-02
Southeast TN

reply to Killa200
Guys am i missing something that simple?



Rhaas
Premium
join:2005-12-19
Bernie, MO

Try setting engine-boots to 0. I just looked at 3 of my routers and they are all at 0 and I can't seem to find any documentation on that particular setting..



Killa200
Premium
join:2005-12-02
Southeast TN

set engine boots to 0, still no response in cacti or with a manual snmpwalk



Gerard780
Premium
join:2002-01-25
Simpsonville, KY
kudos:1

/snmp
set contact="" enabled=yes engine-boots=117 engine-id="" location="" time-window=15 trap-sink=0.0.0.0 \
trap-version=1
/snmp community
set public address=10.0.0.0/8 authentication-password="" authentication-protocol=MD5 encryption-password="" \
encryption-protocol=DES name=public read-access=yes security=none write-access=no

[root@localhost ~]# snmpwalk -v1 -cpublic 10.1.1.1
SNMPv2-MIB::sysDescr.0 = STRING: router
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.14988.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42564700) 4 days, 22:14:07.00



Killa200
Premium
join:2005-12-02
Southeast TN
Reviews:
·Charter

reply to Killa200
awesome! that got it working locally... but my only issue now is i can't get it working on the public address. I have a community rule in place that allows the server at the other location to access the snmp server, but its still not getting through. Any suggestions as to that?



Gerard780
Premium
join:2002-01-25
Simpsonville, KY
kudos:1

/snmp community
add address=0.0.0.0/0 authentication-password="" authentication-protocol=MD5 encryption-password="" \
encryption-protocol=DES name=community read-access=yes security=none write-access=no

This will let anyone connect using the "community" community.

Gerard
--
www.quicklinkwireless.com
Certified Mikrotik Trainer



Killa200
Premium
join:2005-12-02
Southeast TN

no such luck. After adding that and swapping to "community" i still can't snmpwalk that public address of that box, i just get a request timed out error.



Rhaas
Premium
join:2005-12-19
Bernie, MO

reply to Killa200
My suggestion is to capture the traffic at each end. Make sur eyou are seeing the request at the remote end and make sure you're seeing the reply - even if it is request denied, at the originating end.



Killa200
Premium
join:2005-12-02
Southeast TN
Reviews:
·Charter

reply to Killa200
Gerard780 logged in (thank you again btw) and determined what i was suspecting. The snmp connection is getting blocked somewhere on that end, and atm the only that that could be doing it is the ATT owned cisco router for the T1 down in the basement.

This ought to be a fun adventure getting them to fix this....


Sunday, 19-May 01:29:36 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics