Pf and ppp
From MyWiki
(Difference between revisions)
(Created page with '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.lin...') |
m (Protected "Pf and ppp" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
Current revision as of 11:56, 3 November 2009
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.