Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 20:24:35 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "FreeBSD-CURRENT@freebsd.org Current" <freebsd-current@freebsd.org>
Subject:   Re: Ordering for network-sensitive rc scripts
Message-ID:  <5C90ED2E-4A10-4E2B-9399-292E2FD616E7@FreeBSD.org>
In-Reply-To: <CAJ-VmokHd_bW9DC53e2r3=E5okd8c1wFkr2VRkQ6Gx-464d5YA@mail.gmail.com>
References:  <DA602ED0-ECBC-4A3D-8F1B-9CB80EDE12B5@FreeBSD.org> <CAJ-Vmo=2Zw-WkBJj%2BeEjG5k9eMs_Oxs_P4cN6iRh75j2z_EB2g@mail.gmail.com> <B46D241C-DC7F-41E0-A344-AB6BC3708F2A@FreeBSD.org> <CAJ-VmokHd_bW9DC53e2r3=E5okd8c1wFkr2VRkQ6Gx-464d5YA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 May 2014, at 20:23, Adrian Chadd <adrian@freebsd.org> wrote:

> On 11 May 2014 12:01, David Chisnall <theraven@freebsd.org> wrote:
>> On 17 Apr 2014, at 09:30, Adrian Chadd <adrian@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5C90ED2E-4A10-4E2B-9399-292E2FD616E7>