pf won't start because tun0 doesn't exist yet

Max Laier max at love2party.net
Sat Jun 30 19:03:58 UTC 2007


On Saturday 30 June 2007, Frank Steinborn wrote:
> I'm going to set up a FreeBSD-router running pf. I have rules in
> pf.conf containing rules with 'tun0'. Here is the problem:
>
> When booting the machine, pf won't load the rules because tun0 doesn't
> exist at this time. Of course I could easyilly workaround this, but I
> wonder if there is a more elagant or even official way on this issue?

This is a FAQ - search the archives.

In short: If you need ALTQ on tun0 the only workaround is ppp.linkup (or 
similar).  loginterface is unnecessary since pfctl -vvvsI -i tun0.  
Addresses are written "(tun0)" not "tun0".

-- 
FreeBSD Status reports due: 07/07/07 :-)

/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20070630/e2a9ce1f/attachment.pgp


More information about the freebsd-pf mailing list