From owner-freebsd-questions Wed Jan 29 11:10:44 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C608537B405 for ; Wed, 29 Jan 2003 11:10:42 -0800 (PST) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF9943F85 for ; Wed, 29 Jan 2003 11:10:42 -0800 (PST) (envelope-from stacey@vickiandstacey.com) Received: from [192.168.1.8] (81-86-129-77.dsl.pipex.com [81.86.129.77]) by shockwave.systems.pipex.net (Postfix) with ESMTP id 962071600114A; Wed, 29 Jan 2003 19:10:39 +0000 (GMT) Subject: Re: portsentry From: Stacey Roberts Reply-To: stacey@vickiandstacey.com To: Phillip Smith Cc: FreeBSD Questions In-Reply-To: <006c01c2c7c9$0c9d3b20$aeb423cf@3bagsmedia> References: <006c01c2c7c9$0c9d3b20$aeb423cf@3bagsmedia> Content-Type: text/plain Organization: Message-Id: <1043867442.13652.119.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 29 Jan 2003 19:10:42 +0000 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, On Wed, 2003-01-29 at 19:03, Phillip Smith wrote: > Quick question... > > What's the best way to start portsentry on reboot? > > Many thanks, > You can write a simple start-up script that does that for you. Here's what I have in /usr/local/etc/rc.d: #!/bin/sh PORTSENTRY="/usr/local/bin/portsentry" case "$1" in start) ${PORTSENTRY} -tcp && echo " PortSentry starting in TCP mode..." ${PORTSENTRY} -udp && echo " PortSentry starting in UDP mode..." ;; stop) killall `basename ${PORTSENTRY}` ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" ;; esac As far as I know, portsentry doesn't come with one, so you can just write a nice short script like the one above, if you like. Make sure though, to make it executable before rebooting. Hope this helps. Regards, Stacey > phillip. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message