From 7cbad42249b75f023b7bd68d7523d5cb51d31a0d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 27 Dec 2005 19:44:25 +0000 Subject: Query SNMP over VPN fix Ticket #743 --- etc/inc/services.inc | 14 ++++++++++++-- usr/local/www/services_snmp.php | 14 +++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index a2fa3e3..6ac21b7 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -651,9 +651,15 @@ begemotSnmpdCommunityDisable = 1 EOD; + if(isset($config['snmpd']['bindlan'])) { + $bind_to_ip = $config['interfaces']['lan']['ipaddr']; + } else { + $bind_to_ip = "0.0.0.0"; + } + if(is_port( $config['snmpd']['pollport'] )) { $snmpdconf .= << @@ -371,7 +376,14 @@ function enable_change(whichone) { >PF - + + + + > Bind to LAN interface only +
+ This option can be useful when trying to access the SNMP agent + by the LAN interface's IP address through a VPN tunnel terminated on the WAN interface. +   -- cgit v1.1