<?xml version="1.0" encoding="utf-8" ?>
<pfsensewizard>
<copyright>
/* $Id$ */
/*
	traffic_shaper_wizard.xml
        part of pfSense (http://www.pfsense.org/)

        Copyright (C) 2005 Bill Marquette - bill.marquette@gmail.com.
        All rights reserved.

        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:

        1. Redistributions of source code must retain the above copyright notice,
           this list of conditions and the following disclaimer.

        2. Redistributions in binary form must reproduce the above copyright
           notice, this list of conditions and the following disclaimer in the
           documentation and/or other materials provided with the distribution.

        THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
        INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
        AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
        AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
        OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
        SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
        INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
        CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
        ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
        POSSIBILITY OF SUCH DAMAGE.
*/
</copyright>
<totalsteps>9</totalsteps>
<step>
	<id>1</id>
	<title>pfSense Traffic Shaper Wizard</title>
	<disableheader>true</disableheader>
	<description>This wizard will guide you through setting up the pfSense traffic shaper.</description>
	<fields>
		<field>
			<name>Next</name>
			<type>submit</type>
			<warning>Going any further will wipe your existing shaper config!  If you do not wish to continue, please click the pfSense logo at the top to return to the webConfigurator.  Also note that currently the traffic shaper is not compatible with bridging.</warning>
		</field>
	</fields>
	<stepbeforeformdisplay>
		/* Check to see if ALTQ can even be used */
		if(!is_altq_capable($config['interfaces']['wan']['if']) or !is_altq_capable($config['interfaces']['lan']['if'])) {
			$message="Either your LAN or WAN interface doesn't support ALTQ.  The wizard cannot continue.";
			header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&amp;stepid=7&amp;message={$message}");
		}
	</stepbeforeformdisplay>
	<stepsubmitphpaction>
		step1_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
	<id>2</id>
	<title>pfSense Traffic Shaper Wizard</title>
	<description>Shaper configuration</description>
        <javascriptafterformdisplay>
        </javascriptafterformdisplay>
	<fields>
                <field>
                        <name>Setup network speeds</name>
                        <type>listtopic</type>
                </field>
		<field>
			<name>Inside</name>
			<description>Inside interface for shaping your download speeds</description>
			<type>interfaces_selection</type>
                        <typehint>This is usually the LAN interface</typehint>
			<bindstofield>ezshaper->step2->inside_int</bindstofield>
		</field>
                <field>
                        <name>Download</name>
                        <description>The download speed of your WAN link in Kbits/second. Note: PPPOE users should take into account PPPOE overhead and put a lower speed here.</description>
                        <type>input</type>
			<validate>^[0-9]*$</validate>
			<message>Download speed must be numerical</message>
			<bindstofield>ezshaper->step2->download</bindstofield>
                </field>
		<field>
			<name>Outside</name>
			<description>Outside interface for shaping your upload speeds</description>
			<type>interfaces_selection</type>
                        <typehint>This is usually the WAN interface</typehint>
			<bindstofield>ezshaper->step2->outside_int</bindstofield>
		</field>
                <field>
                        <name>Upload</name>
                        <description>The upload speed of your WAN link in Kbits/second. Note: PPPOE users should take into account PPPOE overhead and put a lower speed here.</description>
                        <type>input</type>
			<validate>^[0-9]*$</validate>
			<message>Upload speed must be numerical</message>
			<bindstofield>ezshaper->step2->upload</bindstofield>
                </field>
		<field>
			<name>Next</name>
			<type>submit</type>
		</field>
	</fields>
	<stepsubmitphpaction>
		step2_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
        <id>3</id>
        <title>pfSense Traffic Shaper Wizard</title>
        <description>Voice over IP</description>
        <fields>
                <field>
                        <name>Enable</name>
                        <type>checkbox</type>
			<typehint>Prioritize Voice over IP traffic</typehint>
                        <description>This will raise the priority of VOIP traffic above all other traffic.</description>
			<bindstofield>ezshaper->step3->enable</bindstofield>
                </field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
                <field>
                        <name>VOIP specific settings</name>
                        <type>listtopic</type>
                </field>
                <field>
                        <name>Provider</name>
                        <type>select</type>
			<description>Choose Generic if your provider isn't listed.</description>
			<bindstofield>ezshaper->step3->provider</bindstofield>
                        <options>
                                <option>
                                        <name>Generic (lowdelay)</name>
                                        <value>Generic</value>
                                </option>
                                <option>
                                        <name>VoicePulse</name>
                                        <value>VoicePulse</value>
                                </option>
                                <option>
                                        <name>Vonage</name>
                                        <value>Vonage</value>
                                </option>
                                <option>
                                        <name>sipXecs</name>
                                        <value>sipXecs</value>
				</option>
                                <option>
                                        <name>PanasonicTDA</name>
                                        <value>Panasonic</value>
				</option>
			</options>
		</field>
		<field>
                        <name>Address</name>
			<type>inputalias</type>
			<description>(Optional) If this is chosen, the provider field will be overridden.  This allows you to just provide the IP address of the VOIP adaptor to prioritize.  NOTE: You can also use a Firewall Alias in this location.</description>
			<bindstofield>ezshaper->step3->address</bindstofield>
			<message>IP Address field is non-blank and doesn't look like an IP address.</message>
		</field>
		<field>
                        <name>Bandwidth</name>
                        <type>select</type>
			<typehint>Total bandwidth guarantee for VOIP phone(s)</typehint>
			<default>86</default>
			<bindstofield>ezshaper->step3->bandwidth</bindstofield>
			<options>
                                <option>
                                        <name>86kbits/sec</name>
                                        <value>86</value>
                                </option>
                                <option>
                                        <name>172Kbits/sec</name>
                                        <value>172</value>
                                </option>
                                <option>
                                        <name>96Kbits/sec</name>
                                        <value>86</value>
                                </option>
                                <option>
                                        <name>256Kbits/sec</name>
                                        <value>256</value>
                                </option>
                                <option>
                                        <name>384Kbits/sec</name>
                                        <value>384</value>
                                </option>
                                <option>
                                        <name>430Kbits/sec</name>
                                        <value>430</value>
                                </option>
                                <option>
                                        <name>512Kbits/sec</name>
                                        <value>512</value>
                                </option>
                                <option>
                                        <name>688Kbits/sec</name>
                                        <value>688</value>
                                </option>
                                <option>
                                        <name>784Kbits/sec</name>
                                        <value>784</value>
                                </option>
                                <option>
                                        <name>860Kbits/sec</name>
                                        <value>860</value>
                                </option>
                                <option>
                                        <name>950Kbits/sec</name>
                                        <value>950</value>
                                </option>
                                <option>
                                        <name>1032Kbits/sec</name>
                                        <value>1032</value>
                                </option>
                                <option>
                                        <name>2000Kbits/sec</name>
                                        <value>2000</value>
                                </option>
                                <option>
                                        <name>3000Kbits/sec</name>
                                        <value>3000</value>
                                </option>
                                <option>
                                        <name>4000Kbits/sec</name>
                                        <value>4000</value>
                                </option>
                                <option>
                                        <name>5000Kbits/sec</name>
                                        <value>5000</value>
                                </option>
                                <option>
                                        <name>6000Kbits/sec</name>
                                        <value>6000</value>
                                </option>
                                <option>
                                        <name>7000Kbits/sec</name>
                                        <value>70000</value>
                                </option>
                                <option>
                                        <name>8000Kbits/sec</name>
                                        <value>8000</value>
                                </option>
                                <option>
                                        <name>9000Kbits/sec</name>
                                        <value>9000</value>
                                </option>
			</options>
		</field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
        </fields>
	<stepsubmitphpaction>
		step3_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
        <id>4</id>
        <title>pfSense Traffic Shaper Wizard</title>
        <description>Penalty Box</description>
	<disableallfieldsbydefault>true</disableallfieldsbydefault>
        <fields>
                <field>
			<donotdisable>true</donotdisable>
                        <name>Enable</name>
                        <type>checkbox</type>
			<typehint>Penalize IP or Alias</typehint>
                        <description>This will lower the priority of traffic from this IP or alias.</description>
			<enablefields>Address,BandwidthUp,BandwidthDown</enablefields>
			<bindstofield>ezshaper->step4->enable</bindstofield>
                </field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
                <field>
                        <name>PenaltyBox specific settings</name>
                        <type>listtopic</type>
                </field>
		<field>
                        <name>Address</name>
			<type>input</type>
			<description>This allows you to just provide the IP address of the computer(s) to Penalize. NOTE: You can also use a Firewall Alias in this location.</description>
			<bindstofield>ezshaper->step4->address</bindstofield>
			<message>IP Address field is non-blank and doesn't look like an IP address.</message>
		</field>
                <field>
                        <name>BandwidthUp</name>
                        <description>The upload limit in Kbits/second.</description>
                        <type>input</type>
			<validate>^[0-9]*$</validate>
			<message>Upload speed must be numerical</message>
			<bindstofield>ezshaper->step4->bandwidthup</bindstofield>
                </field>
                <field>
                        <name>BandwidthDown</name>
                        <description>The download limit Kbits/second.</description>
                        <type>input</type>
			<validate>^[0-9]*$</validate>
			<message>Download speed must be numerical</message>
			<bindstofield>ezshaper->step4->bandwidthdown</bindstofield>
                </field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
        </fields>
	<stepsubmitphpaction>
		step4_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
	<id>5</id>
	<title>pfSense Traffic Shaper Wizard</title>
	<description>Peer to Peer networking</description>
	<disableallfieldsbydefault>true</disableallfieldsbydefault>
	<fields>
		<field>
			<donotdisable>true</donotdisable>
			<name>Enable</name>
			<type>checkbox</type>
			<typehint>Lower priority of Peer-to-Peer traffic</typehint>
			<description>This will lower the priority of P2P traffic below all other traffic.  Please check the items that you would like to prioritize lower than normal traffic.</description>
			<enablefields>p2pCatchAll,BandwidthUp,BandwidthDown,Aimster,BitTorrent,BuddyShare,CuteMX,DCplusplus,dcc,DirectConnect,DirectFileExpress,EDonkey2000,FastTrack,Gnutella,grouper,hotComm,HotlineConnect,iMesh,Napster,OpenNap,Scour,Shareaza,SongSpy,WinMX</enablefields>
			<bindstofield>ezshaper->step5->enable</bindstofield>
		</field>
		<field>
			<name>Next</name>
			<type>submit</type>
		</field>
		<field>
			<name>p2p Catch all</name>
			<type>listtopic</type>
		</field>
		<field>
			<name>p2pCatchAll</name>
			<type>checkbox</type>
			<typehint>When enabled, all uncategorized traffic is fed to the p2p queue.</typehint>
			<bindstofield>ezshaper->step5->p2pcatchall</bindstofield>
		</field>
		<field>
			<name>BandwidthUp</name>
			<description>The upload limit in Kbits/second.</description>
			<type>input</type>
			<validate>^[0-9]*$</validate>
			<message>Upload speed must be numerical</message>
			<bindstofield>ezshaper->step5->bandwidthup</bindstofield>
		</field>
		<field>
			<name>BandwidthDown</name>
			<description>The download limit Kbits/second.</description>
			<type>input</type>
			<validate>^[0-9]*$</validate>
			<message>Download speed must be numerical</message>
			<bindstofield>ezshaper->step5->bandwidthdown</bindstofield>
		</field>
		<field>
			<name>Enable/Disable specific P2P protocols</name>
			<type>listtopic</type>
		</field>
		<field>
			<name>Aimster</name>
			<type>checkbox</type>
			<typehint>Aimster and other P2P using the Aimster protocol and ports</typehint>
			<bindstofield>ezshaper->step5->aimster</bindstofield>
		</field>
		<field>
			<name>BitTorrent</name>
			<type>checkbox</type>
			<typehint>Bittorrent and other P2P using the Torrent protocol and ports</typehint>
			<bindstofield>ezshaper->step5->bittorrent</bindstofield>
		</field>
		<field>
			<name>BuddyShare</name>
			<type>checkbox</type>
			<typehint>BuddyShare and other P2P using the BuddyShare protocol and ports</typehint>
			<bindstofield>ezshaper->step5->buddyshare</bindstofield>
		</field>
		<field>
			<name>CuteMX</name>
			<type>checkbox</type>
			<typehint>CuteMX and other P2P using the CuteMX protocol and ports</typehint>
			<bindstofield>ezshaper->step5->cutemx</bindstofield>
            </field>
            <field>
                <name>DCplusplus</name>
                <type>checkbox</type>
				<typehint>DC++ and other P2P using the DC++ protocol and ports</typehint>
				<bindstofield>ezshaper->step5->dcplusplus</bindstofield>
            </field>
            <field>
                <name>DCC</name>
                <type>checkbox</type>
				<typehint>irc DCC file transfers</typehint>
				<bindstofield>ezshaper->step5->dcc</bindstofield>
            </field>
            <field>
                <name>DirectConnect</name>
                <type>checkbox</type>
				<typehint>DirectConnect and other P2P using the DirectConnect protocol and ports</typehint>
				<bindstofield>ezshaper->step5->directconnect</bindstofield>
            </field>
            <field>
                    <name>DirectFileExpress</name>
                    <type>checkbox</type>
					<typehint>DirectFileExpress and other P2P using the DirectFileExpress protocol and ports</typehint>
					<bindstofield>ezshaper->step5->directfileexpress</bindstofield>
            </field>
            <field>
                    <name>eDonkey2000</name>
                    <type>checkbox</type>
				<typehint>eDonkey and other P2P using the eDonkey protocol and ports</typehint>
				<bindstofield>ezshaper->step5->edonkey2000</bindstofield>
            </field>
            <field>
                <name>FastTrack</name>
                <type>checkbox</type>
				<typehint>FastTrack and other P2P using the FastTrack protocol and ports</typehint>
				<bindstofield>ezshaper->step5->fasttrack</bindstofield>
            </field>
            <field>
                        <name>Gnutella</name>
                        <type>checkbox</type>
				<typehint>Gnutella and other P2P using the Gnutella protocol and ports</typehint>
				<bindstofield>ezshaper->step5->gnutella</bindstofield>
            </field>
           <field>
                <name>grouper</name>
                <type>checkbox</type>
				<typehint>grouper and other P2P using the grouper protocol and ports</typehint>
				<bindstofield>ezshaper->step5->grouper</bindstofield>
			</field>
			<field>
				<name>hotComm</name>
				<type>checkbox</type>
				<typehint>hotComm and other P2P using the hotComm protocol and ports</typehint>
				<bindstofield>ezshaper->step5->hotcomm</bindstofield>
            </field>
            <field>
                <name>HotlineConnect</name>
                <type>checkbox</type>
				<typehint>HotlineConnect and other P2P using the HotlineConnect protocol and ports</typehint>
				<bindstofield>ezshaper->step5->hotlineconnect</bindstofield>
            </field>
            <field>
                <name>iMesh</name>
                <type>checkbox</type>
				<typehint>iMesh and other P2P using the iMesh protocol and ports</typehint>
				<bindstofield>ezshaper->step5->imesh</bindstofield>
            </field>
            <field>
                <name>Napster</name>
                <type>checkbox</type>
				<typehint>Napster and other P2P using the Napster protocol and ports</typehint>
				<bindstofield>ezshaper->step5->napster</bindstofield>
            </field>
            <field>
                <name>OpenNap</name>
                <type>checkbox</type>
				<typehint>OpenNap and other P2P using the OpenNap protocol and ports</typehint>
				<bindstofield>ezshaper->step5->opennap</bindstofield>
            </field>
            <field>
                <name>Scour</name>
		        <type>checkbox</type>
				<typehint>Scour and other P2P using the Scour protocol and ports</typehint>
				<bindstofield>ezshaper->step5->scour</bindstofield>
            </field>
            <field>
                <name>Shareaza</name>
                <type>checkbox</type>
				<typehint>Shareaza and other P2P using the Shareaza protocol and ports</typehint>
				<bindstofield>ezshaper->step5->shareaza</bindstofield>
            </field>
            <field>
                <name>SongSpy</name>
                <type>checkbox</type>
				<typehint>SongSpy and other P2P using the SongSpy protocol and ports</typehint>
				<bindstofield>ezshaper->step5->songspy</bindstofield>
            </field>
            <field>
                <name>WinMX</name>
                <type>checkbox</type>
				<typehint>WinMX and other P2P using the WinMX protocol and ports</typehint>
				<bindstofield>ezshaper->step5->winmx</bindstofield>
            </field>
            <field>
                <name>Next</name>
                <type>submit</type>
            </field>
        </fields>
	<stepsubmitphpaction>
		step5_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
        <id>6</id>
        <title>pfSense Traffic Shaper Wizard</title>
	<disableallfieldsbydefault>true</disableallfieldsbydefault>
        <description>Network Games</description>
        <fields>
                <field>
                        <name>Enable</name>
                        <type>checkbox</type>
                        <typehint>Prioritize network gaming traffic</typehint>
                        <description>This will raise the priority of gaming traffic to higher than most traffic.</description>
			<enablefields>BattleNET,Battlefield2,CallOfDuty,Counterstrike,DeltaForce,DOOM3,EmpireEarth,Everquest,Everquest2,FarCry,GunZOnline,HalfLife,HalfLife2,Halo2,Lineage2,PlanetSide,QuakeIII,TigerWoods2004PS2,UnrealTournament,WolfensteinEnemyTerritory,WorldOfWarcraft,XBox360</enablefields>
			<donotdisable>true</donotdisable>
			<bindstofield>ezshaper->step6->enable</bindstofield>
                </field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
                <field>
                        <name>Enable/Disable specific games</name>
                        <type>listtopic</type>
                </field>
                <field>
                        <name>BattleNET</name>
                        <type>checkbox</type>
			<typehint>Battle.net - Virtually every game from Blizzard publishing should match this.  This includes the following game series: Starcraft, Diablo, Warcraft.  Guild Wars also uses this port.</typehint>
			<bindstofield>ezshaper->step6->battlenet</bindstofield>
                </field>
                <field>
                        <name>Battlefield2</name>
                        <type>checkbox</type>
			<typehint>Battlefield 2 - this game uses a LARGE port range, be aware that you may need to manually rearrange the resulting rules to correctly prioritize other traffic.</typehint>
			<bindstofield>ezshaper->step6->battlefield2</bindstofield>
                </field>
                <field>
                        <name>CallOfDuty</name>
                        <type>checkbox</type>
			<typehint>Call Of Duty (United Offensive)</typehint>
			<bindstofield>ezshaper->step6->callofduty</bindstofield>
                </field>
                <field>
                        <name>Counterstrike</name>
                        <type>checkbox</type>
			<typehint>Counterstrike.   The ultimate 1st person shooter.</typehint>
			<bindstofield>ezshaper->step6->counterstrike</bindstofield>
                </field>
                <field>
                        <name>DeltaForce</name>
                        <type>checkbox</type>
			<typehint>Delta Force</typehint>
			<bindstofield>ezshaper->step6->deltaforce</bindstofield>
                </field>
                <field>
                        <name>DOOM3</name>
                        <type>checkbox</type>
			<typehint>DOOM3</typehint>
			<bindstofield>ezshaper->step6->doom3</bindstofield>
                </field>
                <field>
                        <name>EmpireEarth</name>
                        <type>checkbox</type>
			<typehint>Empire Earth</typehint>
			<bindstofield>ezshaper->step6->empireearth</bindstofield>
                </field>
                <field>
                        <name>Everquest</name>
                        <type>checkbox</type>
			<typehint>Everquest - this game uses a LARGE port range, be aware that you may need to manually rearrange the resulting rules to correctly prioritize other traffic.</typehint>
			<bindstofield>ezshaper->step6->everquest</bindstofield>
                </field>
                <field>
			<name>Everquest2</name>
			<type>checkbox</type>
			<typehint>Everquest II</typehint>
			<bindstofield>ezshaper->step6->everquest2</bindstofield>
		</field>
                <field>
                        <name>GunZOnline</name>
                        <type>checkbox</type>
			<typehint>GunZ Online</typehint>
			<bindstofield>ezshaper->step6->gunzonline</bindstofield>
                </field>
                <field>
                        <name>FarCry</name>
                        <type>checkbox</type>
			<typehint>Far Cry</typehint>
			<bindstofield>ezshaper->step6->farcry</bindstofield>
                </field>
                <field>
                        <name>HalfLife</name>
                        <type>checkbox</type>
			<typehint>HalfLife</typehint>
			<bindstofield>ezshaper->step6->halflife</bindstofield>
                </field>
                <field>
                        <name>HalfLife2</name>
                        <type>checkbox</type>
			<typehint>HalfLife 2</typehint>
			<bindstofield>ezshaper->step6->halflife2</bindstofield>
                </field>
                <field>
                        <name>Halo2</name>
                        <type>checkbox</type>
			<typehint>Halo2 via Xbox live</typehint>
			<bindstofield>ezshaper->step6->halo2xbox</bindstofield>
                </field>
                <field>
                        <name>Lineage2</name>
                        <type>checkbox</type>
			<typehint>Lineage II</typehint>
			<bindstofield>ezshaper->step6->lineage2</bindstofield>
                </field>
                <field>
                        <name>PlanetSide</name>
                        <type>checkbox</type>
			<typehint>PlanetSide</typehint>
			<bindstofield>ezshaper->step6->planetside</bindstofield>
                </field>
                <field>
                        <name>QuakeIII</name>
                        <type>checkbox</type>
			<typehint>Quake III</typehint>
			<bindstofield>ezshaper->step6->quakeiii</bindstofield>
                </field>
                <field>
                        <name>TigerWoods2004PS2</name>
                        <type>checkbox</type>
			<typehint>Tiger Woods 2004 for PS2</typehint>
			<bindstofield>ezshaper->step6->tigerwoods2004ps2</bindstofield>
                </field>
                <field>
                        <name>UnrealTournament</name>
                        <type>checkbox</type>
			<typehint>Unreal Tournament</typehint>
			<bindstofield>ezshaper->step6->unrealtournament</bindstofield>
                </field>
                <field>
                        <name>WolfensteinEnemyTerritory</name>
                        <type>checkbox</type>
			<typehint>Wolfenstein Enemy Territory</typehint>
			<bindstofield>ezshaper->step6->wolfet</bindstofield>
                </field>
                <field>
                        <name>WorldOfWarcraft</name>
                        <type>checkbox</type>
			<typehint>World of Warcraft</typehint>
			<bindstofield>ezshaper->step6->wow</bindstofield>
                </field>
				<field>
					<name>Xbox360</name>
					<type>checkbox</type>
					<typehint>XBox 360</typehint>
					<bindstofield>ezshaper->step6->xbox360</bindstofield>
				</field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
        </fields>
	<stepsubmitphpaction>
		step6_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
        <id>7</id>
        <title>pfSense Traffic Shaper Wizard</title>
	<disableallfieldsbydefault>true</disableallfieldsbydefault>
        <description>Raise or lower other Applications</description>
        <fields>
                <field>
                        <name>Enable</name>
                        <type>checkbox</type>
                        <typehint>Other networking protocols</typehint>
                        <description>This will help raise or lower the priority of other protocols higher than most traffic.</description>
			<enablefields>AIM,AppleRemoteDesktop,DNS,HTTP,ICMP,ICQ,IMAP,IPSEC,IRC,Jabber,LotusNotes,MSN,MSRDP,MySqlServer,PCAnywhere,POP3,PPTP,RTSP,SMB,SMTP,SNMP,StreamingMP3,TeamSpeak,VNC,NNTP,CVSUP</enablefields>
			<donotdisable>true</donotdisable>
			<bindstofield>ezshaper->step7->enable</bindstofield>
                </field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
                <field>
                        <name>Remote Service / Terminal emulation</name>
			<type>listtopic</type>
                </field>
                <field>
                        <name>MSRDP</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->msrdp</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Microsoft Remote Desktop Protocol</typehint>
                </field>
                <field>
                        <name>VNC</name>
			<bindstofield>ezshaper->step7->vnc</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Virtual Network Computing</typehint>
                </field>
                <field>
                        <name>AppleRemoteDesktop</name>
			<bindstofield>ezshaper->step7->appleremotedesktop</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Apple Remote Desktop</typehint>
                </field>
                <field>
                        <name>PCAnywhere</name>
			<bindstofield>ezshaper->step7->pcanywhere</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Symantec PC Anywhere</typehint>
                </field>
                <field>
                        <name>Messengers</name>
			<type>listtopic</type>
                </field>
                <field>
                        <name>IRC</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->irc</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Internet Relay Chat</typehint>
                </field>
                <field>
                        <name>Jabber</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->jabber</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Jabber instant messanger</typehint>
                </field>
                <field>
                        <name>ICQ</name>
			<bindstofield>ezshaper->step7->icq</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>ICQ</typehint>
                </field>
                <field>
                        <name>AIM</name>
			<bindstofield>ezshaper->step7->aolinstantmessenger</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>AOL Instant Messenger</typehint>
                </field>
                <field>
                        <name>MSN</name>
			<bindstofield>ezshaper->step7->msnmessenger</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>MSN Messenger</typehint>
                </field>
                <field>
                <name>Teamspeak</name>
			<bindstofield>ezshaper->step7->teamspeak</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>TeamSpeak</typehint>
                </field>
                <field>
                        <name>VPN</name>
			<type>listtopic</type>
                </field>
                <field>
                        <name>PPTP</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->pptp</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Microsoft Point to Point tunneling protocol</typehint>
                </field>
                <field>
                        <name>IPSEC</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->ipsec</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>IPSEC VPN traffic</typehint>
                </field>
                <field>
                        <name>Multimedia/Streaming</name>
			<type>listtopic</type>
                </field>
                <field>
                        <name>StreamingMP3</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->streamingmp3</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Streaming Media</typehint>
                </field>
                <field>
                        <name>RTSP</name>
			<bindstofield>ezshaper->step7->rtsp</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>RealTime streaming protocol</typehint>
                </field>
                <field>
                        <name>Web</name>
			<type>listtopic</type>
                </field>
                <field>
                        <name>HTTP</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->http</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>HTTP and HTTPS aka Web Traffic</typehint>
                </field>
                <field>
                        <name>Mail</name>
			<type>listtopic</type>
                </field>
                <field>
                        <name>SMTP</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->smtp</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Mail Protocol</typehint>
                </field>
                <field>
                        <name>POP3</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->pop3</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>POP3 Protocol</typehint>
                </field>
                <field>
                        <name>IMAP</name>
			<bindstofield>ezshaper->step7->imap</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>IMAP Protocol</typehint>
                </field>
                <field>
                        <name>LotusNotes</name>
			<bindstofield>ezshaper->step7->lotusnotes</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Lotus Notes</typehint>
                </field>
                <field>
                        <name>Miscellaneous</name>
			<type>listtopic</type>
                </field>
                               <field>
                        <name>DNS</name>
			<type>select</type>
			<bindstofield>ezshaper->step7->dns</bindstofield>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Domain Name Services</typehint>
                </field>
                <field>
                        <name>ICMP</name>
			<bindstofield>ezshaper->step7->icmp</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>ICMP Protocol</typehint>
                </field>
                <field>
                        <name>SMB</name>
			<bindstofield>ezshaper->step7->smb</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Microsoft SMB Protocol and friends</typehint>
                </field>
                <field>
                        <name>SNMP</name>
			<bindstofield>ezshaper->step7->snmp</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Simple Network Management Protocol</typehint>
                </field>
                <field>
                        <name>MySQLServer</name>
			<bindstofield>ezshaper->step7->mysqlserver</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>MySQL Server</typehint>
                </field>
                <field>
			<name>NNTP</name>
			<bindstofield>ezshaper->step7->nntp</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>Internet News</typehint>
                </field>
                <field>
			<name>CVSUP</name>
			<bindstofield>ezshaper->step7->cvsup</bindstofield>
			<type>select</type>
			<options>
				<option>
					<name>Default priority</name>
					<value>D</value>
				</option>
				<option>
					<name>Higher priority</name>
					<value>H</value>
				</option>
				<option>
					<name>Lower priority</name>
					<value>L</value>
				</option>
			</options>
			<typehint>CVSUP</typehint>
                </field>
                <field>
                        <name>Next</name>
                        <type>submit</type>
                </field>
        </fields>
	<stepsubmitphpaction>
		step7_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
        <id>8</id>
        <title>pfSense Traffic Shaper Wizard</title>
        <field>
		<name>Reload profile notice</name>
		<type>listtopic</type>
        </field>
        <description>
	    After pressing Finish the system will load the new profile.&lt;br/&gt;
	    Please note that this may take a moment.&lt;br/&gt;
	    Also note that the traffic shaper is stateful meaning that only new connections will be shaped.&lt;br/&gt;
	    If this is an issue please reset the state table after loading the profile.&lt;br/&gt;
	</description>
	<fields>
                <field>
                        <name>Finish</name>
                        <type>submit</type>
                </field>
	</fields>
	<stepbeforeformdisplay>
		step8_stepbeforeformdisplay();
	</stepbeforeformdisplay>
	<stepsubmitphpaction>
		step8_stepsubmitphpaction();
	</stepsubmitphpaction>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
</step>
<step>
	<id>9</id>
        <title>pfSense Traffic Shaper Wizard</title>
	<fields>
		<field>
			<name>Finish</name>
			<type>submit</type>
		</field>
	</fields>
	<includefile>/usr/local/www/wizards/traffic_shaper_wizard.inc</includefile>
	<stepsubmitphpaction>
		step9_stepsubmitphpaction();
	</stepsubmitphpaction>
</step>
</pfsensewizard>
