[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reload pf and default gateway after reboot - Interface needs time to activate
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Reload pf and default gateway after reboot - Interface needs time to activate
- From: "Steven N. Fettig" <openbsd_(_at_)_stevenfettig_(_dot_)_com>
- Date: Sun, 09 May 2004 01:51:11 -0500
I have found a few tidbits on the web and in the mailing list on how to
reload pf rules after given sets of time, but none really apply to my
situation. I have two interfaces that take a bit of time to activate
(T1's on a PCI CSU/DSU adapter). By the time they are active, netstart
and pf rules have already been run (default block for pf and a localhost
gateway setup for netstart). I would like to set up a script so that
after a given bit of time, it checks to see whether the interfaces are
active (via ifconfig) and re-sets the default gateway and re-runs the pf
ruleset. Is this best done with a script run @reboot in crontab or some
other mechanism? Advice would be greatly appreciated.
Steve
Visit your host, monkey.org