Date: 29 Jan 2003 19:10:42 +0000 From: Stacey Roberts <stacey@vickiandstacey.com> To: Phillip Smith <phillip@3bags.com> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: portsentry Message-ID: <1043867442.13652.119.camel@localhost> In-Reply-To: <006c01c2c7c9$0c9d3b20$aeb423cf@3bagsmedia> References: <006c01c2c7c9$0c9d3b20$aeb423cf@3bagsmedia>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1043867442.13652.119.camel>