net/wireguard: add a filter reload if something was reconfigured

PR: https://forum.opnsense.org/index.php?topic=37248.0
This commit is contained in:
Franco Fichtner 2023-11-29 10:30:50 +01:00
parent 0b70e35c8c
commit 7b94f91a5f
3 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= wireguard
PLUGIN_VERSION= 2.5
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= WireGuard VPN service kernel implementation
PLUGIN_DEPENDS= wireguard-kmod
PLUGIN_CONFLICTS= wireguard-go

View file

@ -20,6 +20,8 @@ Changelog
* Fix error with empty tunnel address in instance (contributed by Monviech)
* Switch "setconf" to "syncconf" on (re)configuration
* Fix regression of UUID return in setClientAction()
* Reload the packet filter after reconfiguration
* Allow instance selection from peer
* Use "syncconf" on newwanip event
* CARP event handling improvements

View file

@ -294,5 +294,9 @@ if (isset($opts['h']) || empty($args) || !in_array($args[0], ['start', 'stop', '
}
}
}
if (count($server_devs)) {
configd_run('filter reload'); /* XXX required for NAT rules, but needs coalescing */
}
}
closelog();