mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
add wireguard persistent keepalive option
This commit is contained in:
committed by
Franco Fichtner
parent
3758144f7e
commit
ff8dc29e84
+6
@@ -43,4 +43,10 @@
|
||||
<type>text</type>
|
||||
<help>Set port the endpoint listens to.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>client.keepalive</id>
|
||||
<label>Keepalive</label>
|
||||
<type>text</type>
|
||||
<help>Set persistent keepalive interval.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@@ -35,6 +35,12 @@
|
||||
<serverport type="PortField">
|
||||
<Required>N</Required>
|
||||
</serverport>
|
||||
<keepalive type="IntegerField">
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>86400</MaximumValue>
|
||||
<ValidationMessage>Please specify a value between 1 and 86400.</ValidationMessage>
|
||||
<Required>N</Required>
|
||||
</keepalive>
|
||||
</client>
|
||||
</clients>
|
||||
</items>
|
||||
|
||||
@@ -27,6 +27,9 @@ AllowedIPs = {{ peerlist2_data.tunneladdress }}
|
||||
{% if peerlist2_data.serveraddress|default('') != '' %}
|
||||
Endpoint = {{ peerlist2_data.serveraddress }}:{{ peerlist2_data.serverport }}
|
||||
{% endif %}
|
||||
{% if peerlist2_data.keepalive|default('') != '' %}
|
||||
PersistentKeepalive = {{ peerlist2_data.keepalive }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user