summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-21 02:16:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-21 02:16:09 +0000
commitd2cfb7a4f7f11653b2372ebec416c5482b32afd4 (patch)
tree6429b859b3769bf5d9176cc24099427279f8aec3 /usr/local/www/firewall_aliases.php
parentc55b323d6100c3ca8ef32c7b857d12e5bca2dd80 (diff)
downloadpfsense-d2cfb7a4f7f11653b2372ebec416c5482b32afd4.zip
pfsense-d2cfb7a4f7f11653b2372ebec416c5482b32afd4.tar.gz
Add the ability to define networks, ports and or hosts as aliases. Allow the alias to point to more than ONE item ;)
Diffstat (limited to 'usr/local/www/firewall_aliases.php')
-rwxr-xr-xusr/local/www/firewall_aliases.php71
1 files changed, 34 insertions, 37 deletions
diff --git a/usr/local/www/firewall_aliases.php b/usr/local/www/firewall_aliases.php
index f2ab68f..a7c728b 100755
--- a/usr/local/www/firewall_aliases.php
+++ b/usr/local/www/firewall_aliases.php
@@ -85,43 +85,40 @@ if ($_GET['act'] == "del") {
<?php print_info_box_np("The alias list has been changed.<br>You must apply the changes in order for them to take effect.");?><br>
<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p>
<?php endif; ?>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="25%" class="listhdrr">Name</td>
- <td width="30%" class="listhdrr">Address</td>
- <td width="35%" class="listhdr">Description</td>
- <td width="10%" class="list"></td>
- </tr>
- <?php $i = 0; foreach ($a_aliases as $alias): ?>
- <tr>
- <td class="listlr">
- <?=htmlspecialchars($alias['name']);?>
- </td>
- <td class="listr">
- <?=htmlspecialchars($alias['address']);?>
- </td>
- <td class="listbg">
- <font color="#FFFFFF"><?=htmlspecialchars($alias['descr']);?>&nbsp;
- </td>
- <td valign="middle" nowrap class="list"> <a href="firewall_aliases_edit.php?id=<?=$i;?>"><img src="e.gif" width="17" height="17" border="0"></a>
- &nbsp;<a href="firewall_aliases.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this alias? All elements that still use it will become invalid (e.g. filter rules)!')"><img src="x.gif" width="17" height="17" border="0"></a></td>
- </tr>
- <?php $i++; endforeach; ?>
- <tr>
- <td class="list" colspan="3"></td>
- <td class="list"> <a href="firewall_aliases_edit.php"><img src="plus.gif" width="17" height="17" border="0"></a></td>
- </tr>
- </table>
- </form>
-<p><span class="vexpl"><span class="red"><strong>Note:<br>
- </strong></span>Aliases act as placeholders for real IP addresses
- and can be used to minimize the number of changes that have to
- be made if a host or network address changes. You can enter the
- name of an alias instead of an IP address in all address fields
- that have a blue background. The alias will be resolved to its
- current address according to the list below. If an alias cannot
- be resolved (e.g. because you deleted it), the corresponding element
- (e.g. filter/NAT/shaper rule) will be considered invalid and skipped.</span></p>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<tr>
+ <td width="25%" class="listhdrr">Name</td>
+ <td width="30%" class="listhdrr">Address</td>
+ <td width="35%" class="listhdr">Description</td>
+ <td width="10%" class="list"></td>
+</tr>
+ <?php $i = 0; foreach ($a_aliases as $alias): ?>
+<tr>
+ <td class="listlr">
+ <?=htmlspecialchars($alias['name']);?>
+ </td>
+ <td class="listr">
+ <?=htmlspecialchars($alias['address']);?>
+ </td>
+ <td class="listbg">
+ <font color="#FFFFFF"><?=htmlspecialchars($alias['descr']);?>&nbsp;
+ </td>
+ <td valign="middle" nowrap class="list"> <a href="firewall_aliases_edit.php?id=<?=$i;?>"><img src="e.gif" width="17" height="17" border="0"></a>
+ &nbsp;<a href="firewall_aliases.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this alias? All elements that still use it will become invalid (e.g. filter rules)!')"><img src="x.gif" width="17" height="17" border="0"></a></td>
+</tr>
+ <?php $i++; endforeach; ?>
+<tr>
+ <td class="list" colspan="3"></td>
+ <td class="list"> <a href="firewall_aliases_edit.php"><img src="plus.gif" width="17" height="17" border="0"></a></td>
+</tr>
+<tr>
+ <td class="tabcont" colspan="3">
+ <p><span class="vexpl"><span class="red"><strong>Note:<br></strong></span>Aliases act as placeholders for real IP addresses and can be used to minimize the number of changes that have to be made if a host or network address changes. You can enter the name of an alias instead of an IP address in all address fields that have a blue background. The alias will be resolved to its current address according to the list below. If an alias cannot be resolved (e.g. because you deleted it), the corresponding element (e.g. filter/NAT/shaper rule) will be considered invalid and skipped.</span></p>
+ </td>
+</tr>
+</table>
+</form>
<?php include("fend.inc"); ?>
</body>
</html>
OpenPOWER on IntegriCloud