From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 21:39:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6ADD106566B for ; Fri, 5 Sep 2008 21:39:01 +0000 (UTC) (envelope-from fbsd06+ZP=1ab97a2f@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id B7E8A8FC1D for ; Fri, 5 Sep 2008 21:39:01 +0000 (UTC) (envelope-from fbsd06+ZP=1ab97a2f@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 7164523E4B4 for ; Fri, 5 Sep 2008 17:39:00 -0400 (EDT) Date: Fri, 5 Sep 2008 22:38:57 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080905223857.4a9c3569@gumby.homeunix.com.> In-Reply-To: <20080905164926.07dbb9f1@gumby.homeunix.com.> References: <20080905141402.GJ5474@pcjas.obspm.fr> <20080905164926.07dbb9f1@gumby.homeunix.com.> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: portsnap in cron and firewall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2008 21:39:02 -0000 On Fri, 5 Sep 2008 16:49:26 +0100 RW wrote: > On Fri, 5 Sep 2008 16:14:02 +0200 > Albert Shih wrote: > But now with portsnap cron (that's mean random sleep) I don't known > > when the system try to connect outside. > You can do this > > sleep `jot -r 1 0 3599` > > portsnap fetch > > Actually, I just took a look at portsnap and I see that "portsnap fetch" has an explicit check for a terminal, so it wont work from crontab. > > However, I would suggest you simply create pf rules to allow the > server contact to the portsnap servers.