Changing SNMP Bind Interface does not change actual bind interface of SNMP service.
built on Fri Jun 20 12:59:50 EDT 2014
Intel(R) Xeon(TM) CPU 3.00GHz
4 CPUs: 2 package(s) x 1 core(s) x 2 HTT threads
I've been trying to change the bind interface of the SNMP service. However, using the web interface and selecting any interface including "all" does not appear to affect the SNMP service. It will only listen and respond on the LAN interface address.
Also tried stopping the service, editing /var/etc/snmpd.conf, and restarting the service. The begemotSnmpdPortStatus IP address is restored to the LAN interface address.
Updated by Jim Pingle almost 7 years ago
- Status changed from New to Rejected
I can't reproduce this on 2.1.5, please post on the forum for assistance/diagnosis. If a bug can be confirmed, this may be reopened.
Bound to All:
: sockstat | grep 'bsnmp.*161' root bsnmpd 5278 5 udp4 *:161 *:* : grep dPortStatus /var/etc/snmpd.conf begemotSnmpdPortStatus.0.0.0.0.161 = 1
Bind to LAN:
: sockstat | grep 'bsnmp.*161' root bsnmpd 71167 5 udp4 192.168.28.1:161 *:* : grep dPortStatus /var/etc/snmpd.conf begemotSnmpdPortStatus.192.168.28.1.161 = 1
Moved back to Any:
: sockstat | grep 'bsnmp.*161' root bsnmpd 33527 5 udp4 *:161 *:* : grep dPortStatus /var/etc/snmpd.conf begemotSnmpdPortStatus.0.0.0.0.161 = 1
Updated by J B almost 7 years ago
There are six interfaces on this system. This is the output for binding to interface All, LAN, two other interfaces, and localhost
[2.1.4-RELEASE][admin@x]/root(12): sockstat | grep 'bsnmp.*161'
root bsnmpd 217 10 udp4 192.168.5.252:161 *:*
[2.1.4-RELEASE][admin@x]/root(13): grep dPortStatus /var/etc/snmpd.conf
begemotSnmpdPortStatus.192.168.5.252.161 = 1
Interface "Any" is not an option.
Updated by Phillip Davis almost 6 years ago
I am guessing that the OP has (had) the old "snmp" "bindlan" set in config.xml
With the code in 2.2.4 or before, that would have overridden whatever new selection of "bindip" that was made.
Could this be "unrejected" and target version set to 2.2.5?