summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-08-06 19:12:54 +0000
committerBill Marquette <billm@pfsense.org>2005-08-06 19:12:54 +0000
commit68a5dcd8c5fcb7dad04ccb8b47ff22fe1a5621c7 (patch)
tree014d40861e15bdc41151d1436f1e1e561fdac267 /usr
parent276ba5212754507be2c8a72a06249c19de34cbc0 (diff)
downloadpfsense-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')
-rwxr-xr-xusr/local/www/firewall_virtual_ip.php2
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php9
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']);?>&nbsp;
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>
OpenPOWER on IntegriCloud