ifstated: Fix dna-gw config for OpenBSD 7.6
This commit is contained in:
parent
aaeae7002a
commit
4b27e6c316
1 changed files with 2 additions and 5 deletions
|
@ -17,10 +17,9 @@ state master {
|
|||
init {
|
||||
# spoof mac to keep dhcp lease in sync with both gw's
|
||||
run "/sbin/ifconfig vio1 lladdr {{ gw_home_mac }} up"
|
||||
# flush routes and run dhclient and dhcpcd
|
||||
# flush routes and renew lease
|
||||
run "/sbin/route -qn flush"
|
||||
run "/sbin/dhclient vio1"
|
||||
#run "/sbin/rcctl restart dhcpcd > /dev/null"
|
||||
run "/usr/sbin/dhcpleasectl vio1"
|
||||
# reset firewall rules
|
||||
run "sleep 5 ; pfctl -f /etc/pf.conf"
|
||||
}
|
||||
|
@ -31,8 +30,6 @@ state master {
|
|||
|
||||
state backup {
|
||||
init {
|
||||
# kill dhclient (TODO: better command for this)
|
||||
run "pkill -9 dhclient"
|
||||
# bring down interface and reset mac
|
||||
run "/sbin/ifconfig vio1 delete lladdr {{ gw_home_mac }} down"
|
||||
# flush routes and fix default route
|
||||
|
|
Loading…
Add table
Reference in a new issue