diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 05:50:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 05:50:35 +0000 |
commit | 1dc8c3eb902aeb7dfc479106efb6bb8c383f9722 (patch) | |
tree | 56547b2b27854729b380c30eedd77ef8afa3818d | |
parent | 42137aab7934a540b2b364a2ec2730d58a3b10dc (diff) | |
download | pfsense-1dc8c3eb902aeb7dfc479106efb6bb8c383f9722.zip pfsense-1dc8c3eb902aeb7dfc479106efb6bb8c383f9722.tar.gz |
Small bug fixes and minor description changes
-rw-r--r-- | etc/inc/filter.inc | 6 | ||||
-rwxr-xr-x | usr/local/www/firewall_aliases.php | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 6b42b69..05675e2 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -302,8 +302,10 @@ function filter_nat_rules_generate() { } /* Setup pf groups */ - if (isset($config['aliases']['alias'] as $alias) { - $natrules .= $alias['name'] . " = { " . $alias['address'] . " }\n"; + if (isset($config['aliases']['alias'])) { + foreach ($config['aliases']['alias'] as $alias) { + $natrules .= $alias['name'] . " = { " . $alias['address'] . " }\n"; + } } /* Setup outgoing NAT load balancing */ diff --git a/usr/local/www/firewall_aliases.php b/usr/local/www/firewall_aliases.php index 8017aea..a987019 100755 --- a/usr/local/www/firewall_aliases.php +++ b/usr/local/www/firewall_aliases.php @@ -89,8 +89,8 @@ if ($_GET['act'] == "del") { <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="25%" class="listhdrr">Name</td> - <td width="30%" class="listhdrr">Address(s)/Port(s)</td> - <td width="35%" class="listhdr">Description</td> + <td width="25%" class="listhdrr">Values</td> + <td width="25%" class="listhdr">Description</td> <td width="10%" class="list"></td> </tr> <?php $i = 0; foreach ($a_aliases as $alias): ?> @@ -99,6 +99,9 @@ if ($_GET['act'] == "del") { <?=htmlspecialchars($alias['name']);?> </td> <td class="listr"> + <?=htmlspecialchars($alias['type']);?> + </td> + <td class="listr"> <?=htmlspecialchars($alias['address']);?> </td> <td class="listbg"> |