aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-28 20:30:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-28 20:30:52 +0000
commit2d57f3b754fff812af2734edbd439079b93ac1f2 (patch)
treee9b3e5fb3e60175e31b039dae6ab3d9cad20eea5 /packages/miniupnpd
parent06404599187fdc19b4757a884973b7577c0a7d8d (diff)
downloadpfsense-packages-2d57f3b754fff812af2734edbd439079b93ac1f2.tar.gz
pfsense-packages-2d57f3b754fff812af2734edbd439079b93ac1f2.tar.bz2
pfsense-packages-2d57f3b754fff812af2734edbd439079b93ac1f2.zip
Add -o support
Diffstat (limited to 'packages/miniupnpd')
-rw-r--r--packages/miniupnpd/miniupnpd.inc4
-rw-r--r--packages/miniupnpd/miniupnpd.xml6
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index e4d02402..933e58cb 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -28,6 +28,10 @@
$start .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n";
$start .= "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
+ /* override wan ip address, common for carp, etc */
+ if($_POST['overridewanip'])
+ $start .= " -o {$overridewanip}";
+
$stop .= "/usr/bin/killall miniupnpd \n";
$stop .= "# Clear existing rules and rdr entries \n";
$stop .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n";
diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml
index d63aac9d..dcbcb3da 100644
--- a/packages/miniupnpd/miniupnpd.xml
+++ b/packages/miniupnpd/miniupnpd.xml
@@ -58,6 +58,12 @@
<size>3</size>
<type>interfaces_selection</type>
</field>
+ <field>
+ <fielddescr>Override WAN address</fielddescr>
+ <fieldname>overridewanip</fieldname>
+ <type>input</type>
+ </field>
+
</fields>
<custom_php_install_command>
$ints = `ifconfig -l`;