How to get pf to wait for ng0

Sam Fourman Jr. sfourman at gmail.com
Sun Sep 20 06:01:17 UTC 2009


>
> 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


More information about the freebsd-questions mailing list