summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_groupmanager.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-03 05:02:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-03 05:02:56 +0000
commit40b56dc18bb2fcfa7b1f67a9885a25636ce915cb (patch)
treec267157ce064c148408ed610802e096daccd5d2f /usr/local/www/system_groupmanager.php
parent0397013a4044fd591079a007fb0cf126c5d85cd6 (diff)
downloadpfsense-40b56dc18bb2fcfa7b1f67a9885a25636ce915cb.zip
pfsense-40b56dc18bb2fcfa7b1f67a9885a25636ce915cb.tar.gz
Add multi user firewall nat port forward capabilities.
Diffstat (limited to 'usr/local/www/system_groupmanager.php')
-rw-r--r--usr/local/www/system_groupmanager.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php
index 7d74efe..3d81bf1 100644
--- a/usr/local/www/system_groupmanager.php
+++ b/usr/local/www/system_groupmanager.php
@@ -126,6 +126,8 @@ function getAdminPageList() {
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
$iflist['opt' . $i] = strtolower($config['interfaces']['opt' . $i]['descr']);
}
+
+ // Firewall Rules
foreach ($iflist as $ifent => $ifname) {
$entryname = "firewall_rules.php?if={$ifname}";
$tmp[$entryname] = ("Firewall: Rules: " . strtoupper($ifname));
@@ -143,6 +145,23 @@ function getAdminPageList() {
$entryname = "firewall_rules_edit.php?if=pppoe";
$tmp[$entryname] = "Firewall: Rules: Edit: PPPoE";
+ // NAT Items
+ foreach ($iflist as $ifent => $ifname) {
+ $entryname = "firewall_nat.php?if={$ifname}";
+ $tmp[$entryname] = ("Firewall: NAT: Port Forward " . strtoupper($ifname));
+ $entryname = "firewall_nat_edit.php?if={$ifname}";
+ $tmp[$entryname] = ("Firewall: NAT: Port Forward: Edit: " . strtoupper($ifname));
+ }
+ /* additional nat tab entries */
+ $entryname = "firewall_nat_edit.php?if=enc0";
+ $tmp[$entryname] = "Firewall: NAT: Port Forward: Edit: IPSEC";
+
+ $entryname = "firewall_nat_edit.php?if=pptp";
+ $tmp[$entryname] = "Firewall: NAT: Port Forward: Edit: PPTP";
+
+ $entryname = "firewall_nat_edit.php?if=pppoe";
+ $tmp[$entryname] = "Firewall: NAT: Port Forward: Edit: PPPoE";
+
asort($tmp);
return $tmp;
}
OpenPOWER on IntegriCloud