graylog-labs / graylog-plugin-snmp

Graylog plugin to receive SNMP traps
Other
27 stars 7 forks source link

Plugin fails when changing port to 162 ? #12

Closed irom77 closed 8 years ago

irom77 commented 8 years ago

I prefer plugin to listen on port 162 but when I change it fails . Is it possible plugin to listen on port 162 instead of 1620 ?

joschi commented 8 years ago

@irom77 Port 162 is a so-called privileged port which only the superuser (i. e. "root") is allowed to bind to.

There are various ways to work around this without running Graylog as root user (which is strongly discouraged), please see https://debian-administration.org/article/386/Running_network_services_as_a_non-root_user. for some suggestions.

For Graylog, using authbind would be the most simple way to allow binding to privileged ports (see https://github.com/Graylog2/fpm-recipes/blob/2.0/recipes/graylog-server/files/environment#L10-L12).

irom77 commented 8 years ago

Great, thnx !