Configurable bind option and log level
This commit is contained in:
parent
a0f0f12b7a
commit
b2b4307872
|
@ -3,11 +3,14 @@
|
||||||
vars:
|
vars:
|
||||||
fastd_profiles:
|
fastd_profiles:
|
||||||
vpn:
|
vpn:
|
||||||
|
# set log level to info
|
||||||
|
log_level: info
|
||||||
|
|
||||||
# start tunnel and start it on boot
|
# start tunnel and start it on boot
|
||||||
start: yes
|
start: yes
|
||||||
|
|
||||||
# port to listen on
|
# address and port to listen on
|
||||||
port: 10061
|
bind: "any:10061"
|
||||||
|
|
||||||
# the private key
|
# the private key
|
||||||
private_key: 605fbc328e258182b0b2859ca06b586dead2bd88d6566c89da11acfa9a537942
|
private_key: 605fbc328e258182b0b2859ca06b586dead2bd88d6566c89da11acfa9a537942
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
secret "{{ profile.value.private_key }}";
|
secret "{{ profile.value.private_key }}";
|
||||||
log level {{ item.log_level |d("info") }};
|
log level {{ profile.value.log_level |d("info") }};
|
||||||
interface "{{ profile.value.interface |d('fastd-%s' |format(profile.key)) }}";
|
interface "{{ profile.value.interface |d('fastd-%s' |format(profile.key)) }}";
|
||||||
mode {{ profile.value.mode |d("tap") }};
|
mode {{ profile.value.mode |d("tap") }};
|
||||||
mtu {{ profile.value.mtu |d("1280") }};
|
mtu {{ profile.value.mtu |d("1280") }};
|
||||||
|
@ -8,9 +8,12 @@ mtu {{ profile.value.mtu |d("1280") }};
|
||||||
method "{{ method }}";
|
method "{{ method }}";
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
bind {{ profile.value.bind |d('any:10061') }};
|
||||||
|
|
||||||
{% if not (profile.value.verify |d(True)) %}
|
{% if not (profile.value.verify |d(True)) %}
|
||||||
on verify "true";
|
on verify "true";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
include peers from "peers";
|
include peers from "peers";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue