<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?>
<packagegui>
	<copyright>
        <![CDATA[
/* $Id$ */
/* ========================================================================== */
/*
    portsentry.xml
    Copyright (C) 2009 Scott Ullrich
    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>
	<name>portsentry</name>
	<version>1.0</version>
	<title>Portsentry</title>
	<aftersaveredirect><![CDATA[/pkg_edit.php?xml=portsentry.xml&id=1]]></aftersaveredirect>
	<include_file>/usr/local/pkg/portsentry.inc</include_file>
	<menu>
		<name>Portsentry</name>
		<tooltiptext></tooltiptext>
		<section>Services</section>
		<url>http://sourceforge.net/projects/sentrytools/</url>
	</menu>
	<service>
		<name>Portsentry</name>
		<rcfile>portsentry.sh</rcfile>
		<executable>portsentry</executable>
		<description>The Sentry tools provide host-level security services for the Unix platform. PortSentry protect against portscans, and detect suspicious login activity on a continuous basis.</description>
	</service>	
	<configpath>installedpackages->portsentry->config</configpath>
	<additional_files_needed>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>077</chmod>
		<item>http://www.pfsense.com/packages/config/portsentry/portsentry.inc</item>
	</additional_files_needed>
	<fields>
		<field>
		    <type>rowhelper</type>
		    <rowhelper>
				<rowhelperfield>
				    <fielddescr>Listen on port</fielddescr>
				    <fieldname>listenport</fieldname>
				    <description>Instructs portsentry to look for bogus activity on port</description>
				    <type>input</type>
				    <size>25</size>
				</rowhelperfield>
		    </rowhelper>
		</field>
		<field>
			<fielddescr>Scan trigger value</fielddescr>
			<fieldname>scantrigger</fieldname>
			<description>Enter in the number of port connects you will allow before an alarm is given. The default is 0 which will react immediately.A value of 1 or 2 will reduce false alarms. Anything higher is  probably not necessary. This value must always be specified, but generally can be left at 0.</description>
			<type>input</type>
			<size>80</size>
			<required/>
		</field>
		<field>
			<fielddescr>Block TCP</fielddescr>
			<fieldname>blocktcp</fieldname>
			<description>Determines if portsentry will listen on defined ports using the TCP protocol.</description>
			<type>checkbox</type>
			<required/>
		</field>
		<field>
			<fielddescr>Block UDP</fielddescr>
			<fieldname>blockudp</fieldname>
			<description>Determines if portsentry will listen on defined ports using the UDP protocol.</description>
			<type>checkbox</type>
			<required/>
		</field>
		<field>
			<fielddescr>Port Banner</fielddescr>
			<fieldname>portbanner</fieldname>
			<description>Text to ouput when client connects to a portsentry port.</description>
			<type>checkbox</type>
			<required/>
		</field>
	</fields>
	<custom_delete_php_command>
	</custom_delete_php_command>
	<custom_add_php_command>
	</custom_add_php_command>
	<custom_php_resync_config_command>
	</custom_php_resync_config_command>
	<custom_php_install_command>
		portsentry_custom_php_install_command();
	</custom_php_install_command>
	<custom_php_deinstall_command>
		portsentry_custom_php_deinstall_command();
	</custom_php_deinstall_command>
	<custom_php_command_before_form>	
	</custom_php_command_before_form>
</packagegui>