mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/wireguard: monkey-patch rc script to bring back group association
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
PLUGIN_NAME= wireguard
|
||||
PLUGIN_VERSION= 0.8
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= WireGuard VPN service
|
||||
PLUGIN_DEPENDS= wireguard
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
PLUGIN_DEVEL= yes
|
||||
PLUGIN_DEVEL= yes
|
||||
|
||||
.include "../../Mk/plugins.mk"
|
||||
|
||||
@@ -10,6 +10,13 @@ wireguard_enable="YES"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
wireguard_interfaces="{{ activeservers | join(' ') }}"
|
||||
start_postcmd=opnsense_postcmd
|
||||
opnsense_postcmd()
|
||||
{
|
||||
for interface in ${wireguard_interfaces}; do
|
||||
ifconfig ${interface} group wireguard
|
||||
done
|
||||
}
|
||||
{% else %}
|
||||
wireguard_enable="NO"
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user