<?xml version="1.0" encoding="UTF-8"?>
<section>
	<limits>
        <enabled>true</enabled>
        <comment>Speed Limits</comment>
        <parentgroup>policymgr</parentgroup>
        <logo>fa-street-view</logo>
        <wizard>true</wizard>
        <type>section</type>
        <desc>
            <![CDATA[ Set data transfer rate (speed or QoS) limits.
				<BR><BR><font color="orange">Note:</font> When size of content uploaded / downloaded cannot be predicted use this section for restriction.
				 <BR>This happens when request of the response method is using tranfer encoding chunked instead of content length.
			]]>
		</desc>
        <select>
            <action>
                <allow>
                    <comment>Allow</comment>
					<desc>Connections will be allowed after matching this entry.</desc>
                    <value>true</value>
				</allow>
                <deny>
                    <comment>Deny</comment>
					<desc>Connections will be denied after matching this entry.</desc>
                    <value>false</value>
				</deny>
			</action>
            <flags>
                <limitcache>
                    <comment>Limit cache transfers</comment>
                    <desc>
                        <![CDATA[ Transfer limit will be applied even if the content is being served from the cache. ]]>
					</desc>
                    <value>false</value>
				</limitcache>
                <perrequest>
                    <comment>Per-request limit</comment>
                    <desc>
                        <![CDATA[ Transfer limit will be applied to each single request. ]]>
					</desc>
                    <value>false</value>
				</perrequest>
                <grouplimit>
                    <comment>Group limit</comment>
                    <desc>
                        <![CDATA[ Transfer bandwidth limit will be shared between all matching connections. ]]>
					</desc>
                    <value>false</value>
				</grouplimit>
			</flags>
            <profile_map>
                <PROFILEMAP/>
			</profile_map>
		</select>
        <global>
            <enabled n="0">
                <comment>Enabled</comment>
                <value>true</value>
                <type>BOOL</type>
					<suggestion><![CDATA[ [ {"name":"true","desc":"Select this if you want to enable ","value":"true","selected":"true"},{"name":"false","desc":"Select this if you want to disable","value":"false","selected":"false"} ] ]]></suggestion>
                <desc>
                    <![CDATA[ <BR>Disable limits section to stop any data transfer rate (speed or QoS) limits. ]]>
				</desc>
			</enabled>
		</global>
        <template>
            <entry>
                <enabled n="0">
                    <comment>Enabled</comment>
                    <value>true</value>
                    <type>BOOL</type>
						<suggestion><![CDATA[ [ {"name":"true","desc":"Select this if you want to enable ","value":"true","selected":"true"},{"name":"false","desc":"Select this if you want to disable","value":"false","selected":"false"} ] ]]></suggestion>
                    <desc>
                        <![CDATA[ Enable or Disable this Entry.	]]>
					</desc>
				</enabled>
                <comment n="1">
                    <comment>Comment</comment>
                    <value/>
                    <type>MULTILINE_STRING</type>
                    <desc>
                        <![CDATA[ Enter your comments here for future references, explaining what this entry does. ]]>
					</desc>
				</comment>
                <profiles n="2">
                    <comment>Profiles</comment>
                    <value>profile_map</value>
                    <type>STRING_LIST</type>
					<suggestion>PROFILEMAP</suggestion>
                    <desc>
                        <![CDATA[ Select the previously created profiles, to which this rule will be applied.
							<BR><BR>Leave this rule blank, when you want to apply this entry to all connections.
						]]>
					</desc>
				</profiles>
                <action n="3">
                    <comment>Action</comment>
                    <value>action</value>
                    <type>STRING_SELECT_ONE</type>
					<suggestion><![CDATA[ [ {"name":"Allow","desc":" Connections will be allowed after matching this entry","value":"allow","selected":"true"},{"name":"Deny","desc":"Connections will be denied after matching this entry","value":"deny","selected":"false"} ] ]]></suggestion>
                    <desc>
                        <![CDATA[ Select the appropriate action to apply when this entry matches.
							<BR><BR><font color="orange">For example:</font><BR> Select allow if you desire to set a limit on data transfer or the number of requests that can be made. When limit is reached action will be denied automatically.
							<BR>If action is set to deny than any request falling into the specified time range will be blocked, otherwise request is allowed.
						]]>
					</desc>
				</action>
                <templ n="4">
                    <comment>Template</comment>
                    <value/>
                    <type>STRING</type>
                    <desc>
                        <![CDATA[ Specify the template name that should be displayed on a user's screen when this entry matches.
							<BR>Leave this rule blank, to use default template "blocked".
							<BR><BR> <font color="orange">For example:</font> <BR> Templates like <font color="orange">maxbandwidth</font> and <font color="orange">maxrequests</font> are used for excessive bandwidth or requests, respectively.
						]]>
					</desc>
				</templ>
                <maxdownloadbytes n="5">
                    <comment>Download transfer limit</comment>
                    <value>0</value>
                    <type>LONG_FILE_SIZE</type>
                    <desc>
                        <![CDATA[ Specify the maximum number of bytes(<font color="orange">download limit</font>) that can be downloaded by the proxy during the time span of this matching entry.
							<BR>No download limit is applied, if left blank.
						]]>
					</desc>
				</maxdownloadbytes>
                <maxuploadbytes n="6">
                    <comment>Upload transfer limit</comment>
                    <value>0</value>
                    <type>LONG_FILE_SIZE</type>
                    <desc>
                        <![CDATA[ Specify the maximum number of bytes(<font color="orange">upload limit</font>) that can be uploaded by the proxy during the time span of this matching entry.
						<BR>No upload limit is applied, if left blank.
						]]>
					</desc>
				</maxuploadbytes>
                <maxrequests n="7">
                    <comment>Request limit</comment>
                    <value>0</value>
                    <type>UINT</type>
                    <desc>
                        <![CDATA[ Specify the maximum number of requests(<font color="orange">maximum request</font>) that would be allowed during the specified time.
						<BR>No request limit is applied, if left blank.
						]]>
					</desc>
				</maxrequests>
                <downloadrate n="8">
                    <comment>Download rate</comment>
                    <value>0</value>
                    <type>LONG_FILE_SIZE</type>
                    <desc>
                        <![CDATA[ Specify the maximum download transfer rate(<font color="orange">download rate</font>) that should be allowed.
						<BR>No download transfer rate will be applied, if left blank.
						]]>
					</desc>
				</downloadrate>
                <flags n="9">
                    <comment>Adjust Transfer Limits</comment>
                    <value>flags</value>
                    <type>STRING_SELECT_MANY</type>
					<suggestion><![CDATA[ [ {"name":"Limit cache transfers","desc":"Transfer limit will be applied even if the content is being served from the cache.","value":"limitcache","selected":"false"},{"name":"Per-request limit","desc":"Transfer limit will be applied to each single request.","value":"perrequest","selected":"false"},{"name":"Group limit","desc":"Transfer bandwidth limit will be shared between all matching connections.","value":"grouplimit","selected":"true"}] ]]></suggestion>
                    <desc>
                        <![CDATA[ Select one or more options affecting how transfer limits should be applied to fine tune the rule.
						<BR><BR>Transfer Limits will apply:<BR>
						<ul>
						<li><b>Limit cache transfers:</b> When the content is being served from the cache.</li>
						<li><b>Per-request limit:</b> Will be applied to each single request.</li>
						<li><b>Group limit:</b> Share transfer limit between all matching connections.</li>
						</ul>
						<BR><font color="orange">For example:</font><BR> When download transfer limit is set as 5 MB.
						<BR>For Per-request limit each and every matching request will be allowed 5 MB.
						<BR>For Group limit 5 MB will be shared between all the matching connections.
						]]>
					</desc>
				</flags>
			</entry>
		</template>
        <subsection>
            <limit>
                <comment>Set limits</comment>
                <template>entry</template>
                <parentgroup>inherit</parentgroup>
                <logo/>
                <desc>
                    <![CDATA[ The list of entries below will be processed from top to down. 
						<BR>Each entry describes limitations on users for accessing content from the Internet. 
						<BR>Disable entries, to ignore them. 
						<BR>Every entry that matches the connection parameters specified in the entry will be processed for that connection.
					]]>
				</desc>
                <wizard_action>true</wizard_action>
			</limit>
		</subsection>
	</limits>
</section>