summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-03 17:05:55 -0500
committersullrich <sullrich@pfsense.org>2009-12-03 17:05:55 -0500
commitadb633a09fa4dc03552996dd923591534889726d (patch)
treea45bf6fa5333607966f4ff44795ff60f54a1e0b3 /usr/local
parentf1602cc423688928ca7814d6d2506a716afab42e (diff)
downloadpfsense-adb633a09fa4dc03552996dd923591534889726d.zip
pfsense-adb633a09fa4dc03552996dd923591534889726d.tar.gz
Minor formatting + hide Source OS behind Advanced box
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php51
-rw-r--r--usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js6
2 files changed, 35 insertions, 22 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 18c80ae..c160a2c 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -833,7 +833,7 @@ include("head.inc");
<br />
<span class="vexpl">
Specify the port or port range for the destination of the packet for this rule.
- <br />
+ <br />
Hint: you can leave the <em>'to'</em> field empty if you only want to filter a single port
</span>
</td>
@@ -843,34 +843,41 @@ include("head.inc");
<td width="78%" class="vtable">
<input name="log" type="checkbox" id="log" value="yes" <?php if ($pconfig['log']) echo "checked"; ?>>
<strong>Log packets that are handled by this rule</strong>
- <br />
+ <br />
<span class="vexpl">Hint: the firewall has limited local log space. Don't turn on logging for everything. If you want to do a lot of logging, consider using a remote syslog server (see the <a href="diag_logs_settings.php">Diagnostics: System logs: Settings</a> page).</span>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Source OS</td>
<td width="78%" class="vtable">OS Type:&nbsp;
- <select name="os" id="os" class="formselect">
+ <div id="showadvsourceosbox">
+ <input type="button" onClick="show_advanced_sourceos()" value="Advanced"></input> - Show advanced option</a>
+ </div>
+ <div id="showgatewayadv" style="display:none">
+ <select name="os" id="os" class="formselect">
<?php
- $ostypes = array(
- "" => "any",
- "AIX" => "AIX",
- "Linux" => "Linux",
- "FreeBSD" => "FreeBSD",
- "NetBSD" => "NetBSD",
- "OpenBSD" => "OpenBSD",
- "Solaris" => "Solaris",
- "MacOS" => "MacOS",
- "Windows" => "Windows",
- "Novell" => "Novell",
- "NMAP" => "NMAP"
- );
- foreach ($ostypes as $ostype => $descr): ?>
- <option value="<?=$ostype;?>" <?php if ($ostype == $pconfig['os']) echo "selected"; ?>><?=htmlspecialchars($descr);?></option>
-<?php endforeach; ?>
- </select>
- <br />
- Note: this only works for TCP rules
+ $ostypes = array(
+ "" => "any",
+ "AIX" => "AIX",
+ "Linux" => "Linux",
+ "FreeBSD" => "FreeBSD",
+ "NetBSD" => "NetBSD",
+ "OpenBSD" => "OpenBSD",
+ "Solaris" => "Solaris",
+ "MacOS" => "MacOS",
+ "Windows" => "Windows",
+ "Novell" => "Novell",
+ "NMAP" => "NMAP"
+ );
+ foreach ($ostypes as $ostype => $descr): ?>
+ <option value="<?=$ostype;?>" <?php if ($ostype == $pconfig['os']) echo "selected"; ?>><?=htmlspecialchars($descr);?></option>
+<?php
+ endforeach;
+?>
+ </select>
+ <br />
+ Note: this only works for TCP rules
+ </div>
</td>
</tr>
<tr>
diff --git a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
index d8562c4..f22a29c 100644
--- a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
+++ b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
@@ -149,6 +149,12 @@ function show_advanced_gateway() {
aodiv.style.display = "block";
}
+function show_advanced_gateway() {
+ document.getElementById("showadvsourceosbox").innerHTML='';
+ aodiv = document.getElementById('showsourceosadv');
+ aodiv.style.display = "block";
+}
+
function show_advanced_ackqueue() {
document.getElementById("showadvackqueuebox").innerHTML='';
aodiv = document.getElementById('showackqueueadv');
OpenPOWER on IntegriCloud