diff options
Diffstat (limited to 'packages/miniupnpd')
-rw-r--r-- | packages/miniupnpd/miniupnpd.inc | 4 | ||||
-rw-r--r-- | packages/miniupnpd/miniupnpd.xml | 6 |
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`; |