From owner-freebsd-current@FreeBSD.ORG Sun May 11 19:24:45 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E187BFC; Sun, 11 May 2014 19:24:45 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 53F652D14; Sun, 11 May 2014 19:24:44 +0000 (UTC) Received: from [192.168.0.7] (cpc14-cmbg15-2-0-cust307.5-4.cable.virginm.net [82.26.1.52]) (authenticated bits=0) by theravensnest.org (8.14.7/8.14.7) with ESMTP id s4BJOfO8087094 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 11 May 2014 19:24:43 GMT (envelope-from theraven@FreeBSD.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Ordering for network-sensitive rc scripts From: David Chisnall In-Reply-To: Date: Sun, 11 May 2014 20:24:35 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5C90ED2E-4A10-4E2B-9399-292E2FD616E7@FreeBSD.org> References: To: Adrian Chadd X-Mailer: Apple Mail (2.1874) Cc: "FreeBSD-CURRENT@freebsd.org Current" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 19:24:45 -0000 On 11 May 2014, at 20:23, Adrian Chadd wrote: > On 11 May 2014 12:01, David Chisnall wrote: >> On 17 Apr 2014, at 09:30, Adrian Chadd wrote: >>=20 >>> Can't we add a devd hook to do that? >>=20 >> I tried doing this, but it turns out that wlan devices don't appear = to send devd LINK_UP / LINK_DOWN events. It would be nice to have a = clean solution to this. By default, using the stock rc scripts, my = router is currently not able to forward packets from the WiFi until I've = logged into it and manually run 'service pf restart', which is a bit = crazy. I've hacked around it by having a script run from rc.local that = sleeps for 60 seconds and then restarts a few things, but that's really, = really ugly. >>=20 >> On closer inspection, pf doesn't fail silently, it complains about a = syntax error in my config file because wlan0 is not a known interface. >>=20 >> We therefore have an rc ordering problem if you want to use pf and = WiFi at the same time. This problem was introduced some time between = 9.2 and 10.0. >=20 > Is there a PR for this? It's the first I've heard of it. Not yet. This is the result of my investigations as of 10 minutes ago. = I'll file a PR, if no one can tell me I'm doing something obviously = wrong... David