(tinc) polishing

This commit is contained in:
Ad Schellevis
2016-11-14 08:28:35 +01:00
parent d53e857f1b
commit f521f43159
4 changed files with 8 additions and 5 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
PLUGIN_NAME= tinc
PLUGIN_VERSION= 0.2
PLUGIN_VERSION= 1.0
PLUGIN_COMMENT= Tinc VPN
PLUGIN_DEPENDS= tinc
PLUGIN_MAINTAINER= ad@opnsense.org
PLUGIN_PRIVATE= yes
.include "../../Mk/plugins.mk"
+2
View File
@@ -15,6 +15,8 @@ stop_cmd=tincd_stop
start_cmd=tincd_start
rcvar=OPNtincd_enable
load_rc_config $name
[ -z "$OPNtincd_enable" ] && OPNtincd_enable="NO"
# stop tincd
@@ -5,19 +5,19 @@ type:script_output
message:generate new keypair
[stop]
command:/usr/local/etc/rc.d/opnsense-tincd stop
command:/usr/local/etc/rc.d/opnsense-tincd onestop
parameters:
type:script
message:stop tincd
[start]
command:/usr/local/etc/rc.d/opnsense-tincd start
command:/usr/local/etc/rc.d/opnsense-tincd onestart
parameters:
type:script
message:start tincd
[restart]
command:/usr/local/etc/rc.d/opnsense-tincd restart
command:/usr/local/etc/rc.d/opnsense-tincd onerestart
parameters:
type:script
message:restart tincd
@@ -1,6 +1,7 @@
<networks>
{% if helpers.exists('OPNsense.Tinc.networks.network') %}
{% for network in helpers.toList('OPNsense.Tinc.networks.network', 'id') %}
{% if network.enabled|default('0') == '1' %}
<network>
<id>{{network.id}}</id>
<hostname>{{network.hostname}}</hostname>
@@ -31,6 +32,7 @@
{% endfor %}
</hosts>
</network>
{% endif %}
{% endfor %}
{% endif %}
</networks>