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 | |
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')
-rw-r--r-- | packages/miniupnpd/miniupnpd.inc | 6 | ||||
-rw-r--r-- | packages/miniupnpd/miniupnpd.xml | 7 | ||||
-rwxr-xr-x | packages/miniupnpd/sbin/miniupnpd | bin | 47974 -> 48497 bytes |
3 files changed, 12 insertions, 1 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"; diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml index 000317cf..dd0e6b4a 100644 --- a/packages/miniupnpd/miniupnpd.xml +++ b/packages/miniupnpd/miniupnpd.xml @@ -2,7 +2,7 @@ <packagegui> <title>Services: Miniupnpd</title> <name>miniupnpd</name> - <version>20061028</version> + <version>20061029</version> <savetext>Change</savetext> <include_file>/usr/local/pkg/miniupnpd.inc</include_file> <aftersaveredirect>status_upnp.php</aftersaveredirect> @@ -57,6 +57,11 @@ <fieldname>overridewanip</fieldname> <type>input</type> </field> + <field> + <fielddescr>Log packets handled by miniupnpd rules?</fielddescr> + <fieldname>logpackets</fieldname> + <type>checkbox</type> + </field> </fields> <custom_php_resync_config_command> sync_package_miniupnpd(); diff --git a/packages/miniupnpd/sbin/miniupnpd b/packages/miniupnpd/sbin/miniupnpd Binary files differindex 5db7d397..9bd4590f 100755 --- a/packages/miniupnpd/sbin/miniupnpd +++ b/packages/miniupnpd/sbin/miniupnpd |