diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-28 20:30:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-28 20:30:52 +0000 |
commit | 2d57f3b754fff812af2734edbd439079b93ac1f2 (patch) | |
tree | e9b3e5fb3e60175e31b039dae6ab3d9cad20eea5 /packages/miniupnpd/miniupnpd.inc | |
parent | 06404599187fdc19b4757a884973b7577c0a7d8d (diff) | |
download | pfsense-packages-2d57f3b754fff812af2734edbd439079b93ac1f2.tar.gz pfsense-packages-2d57f3b754fff812af2734edbd439079b93ac1f2.tar.bz2 pfsense-packages-2d57f3b754fff812af2734edbd439079b93ac1f2.zip |
Add -o support
Diffstat (limited to 'packages/miniupnpd/miniupnpd.inc')
-rw-r--r-- | packages/miniupnpd/miniupnpd.inc | 4 |
1 files changed, 4 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"; |