<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
	<name>snort-whitelist</name>
	<version>0.1.0</version>
	<title>Snort: Whitelist</title>
	<include_file>/usr/local/pkg/snort.inc</include_file>
	<!-- Menu is where this packages menu will appear -->
	<tabs>
		<tab>
			<text>Snort Settings</text>
			<url>/pkg_edit.php?xml=snort.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Update Snort Rules</text>
			<url>/snort_download_rules.php</url>
		</tab>
		<tab>
			<text>Snort Rulesets</text>
			<url>/snort_rulesets.php</url>
		</tab>
		<tab>
			<text>Snort Blocked</text>
			<url>/snort_blocked.php</url>
		</tab>
		<tab>
			<text>Snort Whitelist</text>
			<url>/pkg.php?xml=snort_whitelist.xml</url>
			<active/>
		</tab>
		<tab>
			<text>Snort Alerts</text>
			<url>/snort_alerts.php</url>
		</tab>	
	</tabs>
	<adddeleteeditpagefields>
		<columnitem>
			<fielddescr>Whitelisted IP</fielddescr>
			<fieldname>ip</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
		</columnitem>
	</adddeleteeditpagefields>
	<fields>
		<field>
			<fielddescr>Whitelisted IP</fielddescr>
			<fieldname>ip</fieldname>
			<description>Enter the IP or network to whitelist from snort blocking.  Network items should be expressed in CIDR notation.  Example: 0.0.0.0/24 or 0.0.0.0/32</description>
			<type>input</type>
			<size>40</size>
		</field>
		<field>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
			<description>Enter the description for this item</description>
			<type>input</type>
			<size>60</size>
		</field>
	</fields>
	<custom_php_command_before_form>
	</custom_php_command_before_form>
	<custom_delete_php_command>
	</custom_delete_php_command>
	<custom_php_resync_config_command>
		create_snort_conf();
	</custom_php_resync_config_command>
</packagegui>