feat: add openfortivpn role

This commit is contained in:
Matthieu Bessat 2024-07-03 18:02:43 +02:00
parent 2a7efd6472
commit 4801f7bd38
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,9 @@
### configuration file for openfortivpn, see man openfortivpn(1) ###
# File generated by monakhos, please change at the template source!
host = {{ item.p.host }}
port = {{ item.p.port }}
username = {{ item.p.username }}
password = {{ item.p.password }}
trusted-cert = {{ item.p.trusted_cert }}

View file

@ -0,0 +1,18 @@
[Unit]
Description=OpenFortiVPN for %I
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
Documentation=man:openfortivpn(1)
Documentation=https://github.com/adrienverge/openfortivpn#readme
Documentation=https://github.com/adrienverge/openfortivpn/wiki
[Service]
Type=notify
PrivateTmp=true
ExecStart=/usr/bin/openfortivpn -c /etc/openfortivpn/%I.conf
Restart=on-failure
OOMScoreAdjust=-100
[Install]
WantedBy=multi-user.target