SNMPD opening service at random port

Just installed SNMPD in Debian 7 and checked that default installation opens a random port > 1024

root@SRVKARNAK:/etc/apache2# netstat -putan| grep snm

udp 0 0 0.0.0.0:39517                    0.0.0.0:* 9198/snmpd
udp 0 0 127.0.0.1:161                    0.0.0.0:* 9198/snmpd
udp 0 0 192.168.3.222:161           0.0.0.0:* 9198/snmpd

 

“udp 0 0 0.0.0.0:39517 ” a little concerned about security I wanted to remove this “unknown” trap.

Edit the snmpd.conf and remove the “trapsink” stuff from file, and restart the service

 

Now everything sounds good

root@SRVKARNAK:/etc/apache2# /etc/init.d/snmpd stop
Stopping network management services: snmpd snmptrapd.
root@SRVKARNAK:/etc/apache2# /etc/init.d/snmpd start
Starting network management services: snmpd.

root@SRVKARNAK:/etc/apache2# netstat -putan| grep snm

udp 0 0 127.0.0.1:161                       0.0.0.0:* 9214/snmpd
udp 0 0 192.168.3.222:161             0.0.0.0:* 9214/snmpd

 

 

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: