Pf and ppp

From MyWiki

Revision as of 11:56, 3 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A bit of struggle with who starts first on my home router :-).

So, to solve the problem, I created /etc/ppp/ppp.linkup with the following content:

daemon# cat /etc/ppp/ppp.linkup                                                 
perlico:                                                                        
 !bg sh -c "sleep 3 && /sbin/pfctl -f /etc/pf.conf" 

Delay of 3 seconds ensures that my link is up and IP is assigned to the interface. Without the delay, pf is still not a happy camper as I have few rules dependant on the IP of the external (ppp controled) interface and right after the link goes up, there is no IP address on it.

Personal tools