From owner-freebsd-questions@FreeBSD.ORG Thu Apr 7 14:27:12 2005 Return-Path: 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 5700316A4CE; Thu, 7 Apr 2005 14:27:12 +0000 (GMT) Received: from insomnia.benzedrine.cx (insomnia.benzedrine.cx [62.65.145.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5280443D3F; Thu, 7 Apr 2005 14:27:11 +0000 (GMT) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (dhartmei@localhost [127.0.0.1]) j37ERACs004605 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Thu, 7 Apr 2005 16:27:10 +0200 (MEST) Received: (from dhartmei@localhost) by insomnia.benzedrine.cx (8.13.3/8.12.10/Submit) id j37ERAgx010647; Thu, 7 Apr 2005 16:27:10 +0200 (MEST) Date: Thu, 7 Apr 2005 16:27:09 +0200 From: Daniel Hartmeier To: "O. Hartmann" Message-ID: <20050407142709.GA32520@insomnia.benzedrine.cx> References: <42553F80.50503@mail.uni-mainz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42553F80.50503@mail.uni-mainz.de> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org cc: freebsd-pf@freebsd.org Subject: Re: Using ppp/tun0 manually, how to trigger 'pf' automaticaly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 14:27:12 -0000 On Thu, Apr 07, 2005 at 04:11:12PM +0200, O. Hartmann wrote: > I use the ppp utility to configure and setup a line (at the moment no > other way possible). How can I trigger 'pfctl -F all -f /etc/pf.conf' > after the line has been setup to make pf working with the tun0 assigned IP? > > Or are there other way doing so? You can use 'from (tun0)', where the interface name is put in parentheses, and pf will automatically note when that interface changes its IP address, without the need to reload the ruleset. Daniel