blob: 4c566d852c1aedca8c6c9820824a9794d7652fc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{% set args = [] %}
{% if script.on_create is vyos_defined %}
{% set _ = args.append("-c " + script.on_create) %}
{% endif %}
{% if script.on_destroy is vyos_defined %}
{% set _ = args.append("-r " + script.on_destroy) %}
{% endif %}
{% if status.port is vyos_defined %}
{% set _ = args.append("-p " + status.port) %}
{% endif %}
{% if threads.tunnel is vyos_defined %}
{% set _ = args.append("--tunthreads " + threads.tunnel) %}
{% endif %}
{% if threads.tunnel_affinity is vyos_defined %}
{% set _ = args.append("--tunaffinity " + threads.tunnel_affinity) %}
{% endif %}
{% if threads.udp is vyos_defined %}
{% set _ = args.append("--udpthreads " + threads.udp) %}
{% endif %}
{% if threads.udp_affinity is vyos_defined %}
{% set _ = args.append("--udpaffinity " + threads.udp_affinity) %}
{% endif %}
[Unit]
StartLimitIntervalSec=0
After=vyos-router.service
[Service]
EnvironmentFile=
ExecStart=/usr/bin/gwlbtun {{ args | join(' ') }}
CapabilityBoundingSet=CAP_NET_ADMIN
Restart=always
RestartSec=10
|