From 2d57f3b754fff812af2734edbd439079b93ac1f2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 28 Sep 2006 20:30:52 +0000 Subject: Add -o support --- packages/miniupnpd/miniupnpd.inc | 4 ++++ packages/miniupnpd/miniupnpd.xml | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'packages') 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 @@ 3 interfaces_selection + + Override WAN address + overridewanip + input + + $ints = `ifconfig -l`; -- cgit v1.2.3