Package: vpnc
Version: 0.5.3r550-3
Severity: wishlist

Dear Maintainer,

can you please provide a systemd service for vpnc in the package itself?
The following works for me:

[Unit]
Description=VPNC connection to %i
After=network.target
Wants=network.target

[Service]
Type=forking
ExecStart=/usr/sbin/vpnc --pid-file=/run/vpnc@%i.pid /etc/vpnc/%i.conf
PIDFile=/run/vpnc@%i.pid

RestartSec=30
Restart=always

NoNewPrivileges=yes
RestrictRealtime=yes
ProtectHome=yes
InaccessibleDirectories=/home
PrivateTmp=yes
MemoryDenyWriteExecute=yes
RestrictNamespaces=yes
RemoveIPC=yes
ProtectControlGroups=yes
ProtectKernelModules=yes

[Install]
WantedBy=multi-user.target


Best,
Simon


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C
(charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vpnc depends on:
ii  libc6         2.28-10
ii  libgcrypt20   1.8.4-5
ii  libgnutls30   3.6.7-4
ii  perl          5.28.1-6
pn  vpnc-scripts  <none>

Versions of packages vpnc recommends:
ii  iproute2  4.20.0-2

Versions of packages vpnc suggests:
pn  resolvconf  <none>

Reply via email to