How to get pf to wait for ng0

krad kraduk at googlemail.com
Sun Sep 20 09:14:31 UTC 2009


2009/9/20 Sam Fourman Jr. <sfourman at gmail.com>

> >
> > 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.
>
>
> I found this, can I just paste it into /usr/local/etc/rc.d/mpd ? I am
> not very versed in shell scripting
>
> ppp_poststart()
> {
>        # Re-Sync ipfilter and pf so they pick up any new network interfaces
>        #
>        /etc/rc.d/ipfilter quietresync
>        /etc/rc.d/pf quietresync
> }
>
>
>
> Sam
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>

can you not add the line

cloned_interfaces="ng0"

to rc.conf(.local) it will create the pseudo interface very early on.


More information about the freebsd-questions mailing list