From owner-freebsd-questions@FreeBSD.ORG Sun Sep 20 04:47:29 2009 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 BBCDB106566B for ; Sun, 20 Sep 2009 04:47:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f208.google.com (mail-ew0-f208.google.com [209.85.219.208]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2C88FC0A for ; Sun, 20 Sep 2009 04:47:28 +0000 (UTC) Received: by ewy4 with SMTP id 4so1562644ewy.36 for ; Sat, 19 Sep 2009 21:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=aGLbyEbGt2hK5Y+fgVTVrWu+TALB8tAGsvvjBK20ArU=; b=N9LZ+/qtC0wR93FXnpXv/PP5a7OslNScaoeZcfDLUZwnLZQeE2Sm2cNV+hXyeFPjSW HjXIfB4Nwh9DSjOLpw25UVv4ia0vviUNc42Cr/ZXeuwyOPGZcpHOq6BV9CEiHuSrvDr2 /hkWwwM/OUMAzqZiYzFO4Q8XlEAHsktAYIEnI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=pmNem0jc8Ly7f8/2CK5WvZoElAL/dUO2wH5iAvhyrICQOVd9sve5Ju7tqqPEJEaW7+ lMI1P4su9CTcQ6QYpPx9ZG+BZkIAgJQrnkcffBpC31FT6qVN3jkisK2RnwpM6r/quTg3 TANvX0920tz0Taj2LkgjHPhnYy0Aupyr9+6WQ= Received: by 10.210.9.13 with SMTP id 13mr4148699ebi.7.1253422047933; Sat, 19 Sep 2009 21:47:27 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 28sm4646296eye.30.2009.09.19.21.47.22 (version=SSLv3 cipher=RC4-MD5); Sat, 19 Sep 2009 21:47:27 -0700 (PDT) Date: Sun, 20 Sep 2009 05:47:09 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090920054709.0d8d9330@gumby.homeunix.com> In-Reply-To: <11167f520909192030g7417c27as8555f7c8fcb8ac4a@mail.gmail.com> References: <11167f520909192030g7417c27as8555f7c8fcb8ac4a@mail.gmail.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: How to get pf to wait for ng0 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: Sun, 20 Sep 2009 04:47:29 -0000 On Sat, 19 Sep 2009 22:30:14 -0500 "Sam Fourman Jr." wrote: > Hello list, > > I am trying to use FreeBSD 8 RC1 to setup L2 tunnels via mpd5. > My problem is the pf.conf file is never parsed because ng0 does not > exist yet on startup > > ng0 is this case is DSL PPPoE to our local telco for internet access. > after the DSL dials up (via mpd5) if I do pfctl -d && pfctl -e -f > /etc/pf.conf everything works as expected. > > What is the best way to get pf to wait and parse the ruleset until > after ng0 exists? Take a look at what /etc/rc.d/ppp does Probably you need a script that runs after ng0 comes up and does something similar.