diff options
author | Ryan Wagoner <rsw686@pfsense.org> | 2006-10-30 00:50:48 +0000 |
---|---|---|
committer | Ryan Wagoner <rsw686@pfsense.org> | 2006-10-30 00:50:48 +0000 |
commit | 600f0a341c008e4145d8638a5a3c5a89cdfb052a (patch) | |
tree | 27e70522b48100dab0362ca1627c9a48a4fd25cb /packages/miniupnpd/miniupnpd.inc | |
parent | b2b7799c42a700ff99c21117b2f325590e290e4e (diff) | |
download | pfsense-packages-600f0a341c008e4145d8638a5a3c5a89cdfb052a.tar.gz pfsense-packages-600f0a341c008e4145d8638a5a3c5a89cdfb052a.tar.bz2 pfsense-packages-600f0a341c008e4145d8638a5a3c5a89cdfb052a.zip |
miniupnpd version bump - logging of packets is now selectable
Diffstat (limited to 'packages/miniupnpd/miniupnpd.inc')
-rw-r--r-- | packages/miniupnpd/miniupnpd.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc index d4f746e5..7eebefd4 100644 --- a/packages/miniupnpd/miniupnpd.inc +++ b/packages/miniupnpd/miniupnpd.inc @@ -20,6 +20,8 @@ /* since config is written before this file invoked we don't need to read post data */ if($config['installedpackages']['miniupnpd']['config'][0]['overridewanip']) $overridewanip = $config['installedpackages']['miniupnpd']['config'][0]['overridewanip']; + if($config['installedpackages']['miniupnpd']['config'][0]['logpackets']) + $logpackets = $config['installedpackages']['miniupnpd']['config'][0]['logpackets']; if($config['installedpackages']['miniupnpd']['config'][0]['iface_array']) $iface_array = explode(",",$config['installedpackages']['miniupnpd']['config'][0]['iface_array']); @@ -57,6 +59,10 @@ /* override wan ip address, common for carp, etc */ if($overridewanip) $start .= " -o {$overridewanip}"; + + /* enable logging of packets handled by miniupnpd rules */ + if($logpackets) + $start .= " -L"; $stop = "/usr/bin/killall miniupnpd \n"; $stop .= "# Clear existing rules and rdr entries \n"; |