summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-11 23:53:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-11 23:53:07 +0000
commit14b3d21e8f92b6ff2244e065edbe082f7695d32f (patch)
tree60a86f7e7088842381b9704653bb42edaf99b1a4 /usr/local/www/wizards
parentb0f1ced4050f1b151bdd0b7d72de2287d80fbb4d (diff)
downloadpfsense-14b3d21e8f92b6ff2244e065edbe082f7695d32f.zip
pfsense-14b3d21e8f92b6ff2244e065edbe082f7695d32f.tar.gz
* Add SMTP, POP3 and ICMP to both raise and lower priority screens
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.xml66
1 files changed, 63 insertions, 3 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml
index b9ad684..cd9e0cf 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.xml
+++ b/usr/local/www/wizards/traffic_shaper_wizard.xml
@@ -902,7 +902,7 @@
<type>checkbox</type>
<typehint>Other networking protocols</typehint>
<description>This will help raise the priority of other protocols higher than most traffic.</description>
- <enablefields>MSRDP,PPTP,IPSEC,StreamingMP3,IRC,DNS,HTTP,SSH</enablefields>
+ <enablefields>MSRDP,PPTP,IPSEC,StreamingMP3,IRC,DNS,HTTP,SSH,SMTP,POP3,ICMP</enablefields>
<donotdisable>true</donotdisable>
</field>
<field>
@@ -948,6 +948,21 @@
<name>SSH</name>
<type>checkbox</type>
<typehint>Secure shell protocol</typehint>
+ </field>
+ <field>
+ <name>SMTP</name>
+ <type>checkbox</type>
+ <typehint>Mail Protocol</typehint>
+ </field>
+ <field>
+ <name>POP3</name>
+ <type>checkbox</type>
+ <typehint>POP3 Protocol</typehint>
+ </field>
+ <field>
+ <name>ICMP</name>
+ <type>checkbox</type>
+ <typehint>ICMP Protocol</typehint>
</field>
<field>
<name>Next</name>
@@ -1049,7 +1064,22 @@
if($_POST['ssh'] != "") {
/* Secure shell traffic */
$othersplist[] = array('SSH','tcp','22','22','both');
- }
+ }
+
+ if($_POST['smtp'] != "") {
+ /* Secure shell traffic */
+ $othersplist[] = array('SMTP','tcp','25','25','both');
+ }
+
+ if($_POST['pop3'] != "") {
+ /* Post Office Protocol - POP3 */
+ $othersplist[] = array('POP3','tcp','110','110','both');
+ }
+
+ if($_POST['icmp'] != "") {
+ /* ICMP */
+ $othersplist[] = array('ICMP','icmp','','','both');
+ }
/* XXX: add some more protocols here! */
@@ -1098,7 +1128,7 @@
<type>checkbox</type>
<typehint>Other networking protocols</typehint>
<description>This will help lower the priority of other protocols lower than most traffic.</description>
- <enablefields>MSRDP,PPTP,IPSEC,StreamingMP3,IRC,DNS,HTTP,SSH</enablefields>
+ <enablefields>MSRDP,PPTP,IPSEC,StreamingMP3,IRC,DNS,HTTP,SSH,SMTP,POP3,ICMP</enablefields>
<donotdisable>true</donotdisable>
</field>
<field>
@@ -1146,6 +1176,21 @@
<typehint>Secure shell protocol</typehint>
</field>
<field>
+ <name>SMTP</name>
+ <type>checkbox</type>
+ <typehint>Mail Protocol</typehint>
+ </field>
+ <field>
+ <name>POP3</name>
+ <type>checkbox</type>
+ <typehint>POP3 Protocol</typehint>
+ </field>
+ <field>
+ <name>ICMP</name>
+ <type>checkbox</type>
+ <typehint>ICMP Protocol</typehint>
+ </field>
+ <field>
<name>Next</name>
<type>submit</type>
</field>
@@ -1247,6 +1292,21 @@
$othersplist[] = array('SSH','tcp','22','22','both');
}
+ if($_POST['smtp'] != "") {
+ /* Secure shell traffic */
+ $othersplist[] = array('SMTP','tcp','25','25','both');
+ }
+
+ if($_POST['pop3'] != "") {
+ /* Post Office Protocol - POP3 */
+ $othersplist[] = array('POP3','tcp','110','110','both');
+ }
+
+ if($_POST['icmp'] != "") {
+ /* ICMP */
+ $othersplist[] = array('ICMP','icmp','','','both');
+ }
+
/* XXX: add some more protocols here! */
/* Set up/down protocols as higher weight */
OpenPOWER on IntegriCloud