Bug #3883 / snmpd listen interface



  • Hi,

    I wanted to comment on https://redmine.pfsense.org/issues/3883 but it seems it's not in a state to be commented upon. The issue described there is still present in 2.2.4. The problem is that if the (I assume legacy) configuration option "bindlan" is set in the snmpd section. The relevant code in inc/services.inc reads:

    
                    if (isset($config['snmpd']['bindlan'])) {
                            $config['snmpd']['bindip'] = 'lan';
                            unset($config['snmpd']['bindlan']);
                    }
    
    

    but somehow, unsetting $config['snmpd']['bindlan'] doesn't seem to remove it from the config.xml. So essentially, this part will always be called, resetting the bind interface to LAN instead of the chosen interface. Since there is no UI option for "bindlan" anymore, the chosen interface never actually gets used. Hope it can be fixed.

    Stefan



  • It could be that your account on Redmine lacks a necessary permission. I've just pressed Update on that bug and posted a link to this thread for you.



  • https://github.com/pfsense/pfsense/pull/2000
    That gets the run-time use of the old "bindlan" out of services.inc
    It provides some upgrade code, in case there are still configs out there that use the old "bindlan" setting to indicate to bind SNMP to LAN IP. If the config has an old "bindlan" set, but also already has "bindip" specified, then "bindlan" is just unset, so it will forever be gone.


Log in to reply