Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

SNMPD config (I have this config working on a different server):

com2sec readonly  default         public
group MyROGroup v1         readonly
group MyROGroup v2c        readonly
group MyROGroup usm        readonly
view all    included  .1                               80
access MyROGroup ""      any       noauth    exact  all    none   none
syslocation <LOCATION>
syscontact <CONTACT>

When I check the port from remote machine:

» nc -zvu xx.xx.xx.xx 161                                                                                                                                                                              
Connection to xx.xx.xx.xx 161 port [udp/snmp] succeeded!

This also works locally (I get all the right stats):

snmpwalk -v 2c -c public localhost

Yet when I try same command locally or remotely with external IP:

Timeout: No Response from xx.xx.xx.xx

IPTables are disabled on both machines.

/etc/sysconfig/snmpd looks like this:

OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid" -a

/etc/default/snmpd is empty.

Running netstat -tulpn:

udp        0      0 0.0.0.0:161                 0.0.0.0:*                               29475/snmpd 
share|improve this question
    
Are you able to connect on any other port to verify external traffic is getting to your host? e.g. telnet <your_public_ip> 80 –  GeoSword Oct 17 '13 at 16:48
    
Yeah, web server works fine. I get html back from telnet. –  Kirill Gordeenko Oct 18 '13 at 7:52
    
So is there a firewall between you and the internet? If so, then it sounds like the problem with the firewall configuration –  GeoSword Oct 18 '13 at 15:26

1 Answer 1

Your netcat specifies UDP. As long as you can send it is successful regardless of the receiving ends ability to listen.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.