diff options
author | Bill Marquette <billm@pfsense.org> | 2005-08-06 19:12:54 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-08-06 19:12:54 +0000 |
commit | 68a5dcd8c5fcb7dad04ccb8b47ff22fe1a5621c7 (patch) | |
tree | 014d40861e15bdc41151d1436f1e1e561fdac267 /usr/local/www/firewall_virtual_ip_edit.php | |
parent | 276ba5212754507be2c8a72a06249c19de34cbc0 (diff) | |
download | pfsense-68a5dcd8c5fcb7dad04ccb8b47ff22fe1a5621c7.zip pfsense-68a5dcd8c5fcb7dad04ccb8b47ff22fe1a5621c7.tar.gz |
Allow for an "other" virtual IP which is neither ProxyARP or CARP
Useful if the IP is already routed to you (PPPOE for example) and
you just want to use it for NAT
XXX: Need a icon_other hoba ;)
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 4a80b9c..d06a811 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -213,6 +213,13 @@ function enable_change(enable_over) { note.appendChild(proxyarpnote); } } + if (get_radio_value(document.iform.mode) == "other") { + document.iform.type.disabled = 1; + if (note.firstChild != null) { + note.removeChild(note.firstChild); + } + } + } function typesel_change() { switch (document.iform.type.selectedIndex) { @@ -250,6 +257,8 @@ function typesel_change() { <?php if ($pconfig['mode'] == "proxyarp" || $pconfig['type'] != "carp") echo "checked";?>> Proxy ARP <input name="mode" type="radio" onclick="enable_change(false)" value="carp" <?php if ($pconfig['mode'] == "carp") echo "checked";?>> CARP + <input name="mode" type="radio" onclick="enable_change(false)" value="other" + <?php if ($pconfig['mode'] == "other") echo "checked";?>> Other </td> </tr> <tr> |