aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd/miniupnpd.inc
diff options
context:
space:
mode:
authorRyan Wagoner <rsw686@pfsense.org>2006-10-30 00:50:48 +0000
committerRyan Wagoner <rsw686@pfsense.org>2006-10-30 00:50:48 +0000
commit600f0a341c008e4145d8638a5a3c5a89cdfb052a (patch)
tree27e70522b48100dab0362ca1627c9a48a4fd25cb /packages/miniupnpd/miniupnpd.inc
parentb2b7799c42a700ff99c21117b2f325590e290e4e (diff)
downloadpfsense-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.inc6
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";