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 | |
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 ;)
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 2 | ||||
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php index 0a2d201..e794410 100755 --- a/usr/local/www/firewall_virtual_ip.php +++ b/usr/local/www/firewall_virtual_ip.php @@ -129,7 +129,7 @@ include("head.inc"); ?> </td> <td class="listlr" align="center" ondblclick="document.location='firewall_virtual_ip_edit.php?id=<?=$i;?>';"> - <? if($vipent['mode'] == "proxyarp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_parp.gif' title='Proxy ARP'>"; else echo "<img src='./themes/".$g['theme']."/images/icons/icon_carp.gif' title='CARP'>";?> + <? if($vipent['mode'] == "proxyarp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_parp.gif' title='Proxy ARP'>"; elseif($vipent['mode'] == "carp") echo "<img src='./themes/".$g['theme']."/images/icons/icon_carp.gif' title='CARP'>"; elseif($vipent['mode'] == "other") echo "<img src='./themes/".$g['theme']."/images/icons/icon_other.gif' title='Other'>";?> </td> <td class="listbg" ondblclick="document.location='firewall_virtual_ip_edit.php?id=<?=$i;?>';"> <font color="#FFFFFF"><?=htmlspecialchars($vipent['descr']);?> 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> |