Pf and ppp
From MyWiki
(Difference between revisions)
93.107.80.19 (Talk)
(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...')
Newer edit →
(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...')
Newer edit →
Revision as of 15:38, 17 May 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.