Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bug #3883 / snmpd listen interface

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sseidel
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • D Offline
        David_W
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • P Offline
          phil.davis
          last edited by

          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.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.