From 969c2980913d0057450d6c57805ba57b5d5a4461 Mon Sep 17 00:00:00 2001 From: harti Date: Tue, 31 Oct 2006 10:23:28 +0000 Subject: Bind to INADDR_ANY in the default configuration. This makes bsnmpd(1) automatically work on multi-homed hosts and without explicite specification of the hostname in the config file. Submitted by: jmg --- etc/snmpd.config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/snmpd.config b/etc/snmpd.config index eba575b..60fad34 100644 --- a/etc/snmpd.config +++ b/etc/snmpd.config @@ -6,7 +6,6 @@ # # Set some common variables # -host := foobar location := "Room 200" contact := "sysmeister@example.com" system := 1 # FreeBSD @@ -43,8 +42,7 @@ begemotSnmpdCommunityString.0.1 = $(read) begemotSnmpdCommunityDisable = 1 # open standard SNMP ports -begemotSnmpdPortStatus.[$(host)].161 = 1 -begemotSnmpdPortStatus.127.0.0.1.161 = 1 +begemotSnmpdPortStatus.0.0.0.0.161 = 1 # open a unix domain socket begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1 -- cgit v1.1