ifstated: Fix fireall problems when fsol-gw is booted
For some reason firewall rules are not correctly loaded during boot so reload them when ifstated starts.
This commit is contained in:
parent
4072abf55e
commit
3d885de573
1 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,18 @@
|
|||
|
||||
init-state auto
|
||||
|
||||
carp_up = "carp145.link.up"
|
||||
|
||||
state auto {
|
||||
run "pfctl -f /etc/pf.conf"
|
||||
if $carp_up {
|
||||
set-state master
|
||||
}
|
||||
if ! $carp_up {
|
||||
set-state backup
|
||||
}
|
||||
}
|
||||
|
||||
state backup {
|
||||
init {
|
||||
run "/usr/local/sbin/birdc disable ospf1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue