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:
Timo Makinen 2021-03-17 20:31:41 +00:00
parent 4072abf55e
commit 3d885de573

View file

@ -1,5 +1,18 @@
init-state auto
carp_up = "carp145.link.up" 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 { state backup {
init { init {
run "/usr/local/sbin/birdc disable ospf1" run "/usr/local/sbin/birdc disable ospf1"