diff options
-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 | |||
-rw-r--r-- | pkg_config.xml | 2 |
4 files changed, 13 insertions, 2 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 diff --git a/pkg_config.xml b/pkg_config.xml index d01c5d77..5211c0f0 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -121,7 +121,7 @@ <website>http://miniupnp.free.fr/</website> <category>Network Management</category> <maintainer>seth.mos@xs4all.nl ryan@wgnrs.dynu.com</maintainer> - <version>20061028</version> + <version>20061029</version> <required_version>1.0</required_version> <status>BETA</status> <config_file>http://www.pfsense.com/packages/config/miniupnpd/miniupnpd.xml</config_file> |