Skip to content

Instantly share code, notes, and snippets.

@Gowee
Last active December 3, 2016 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gowee/05171d070d00f9735505d9ec6d913c0d to your computer and use it in GitHub Desktop.
Save Gowee/05171d070d00f9735505d9ec6d913c0d to your computer and use it in GitHub Desktop.
systemd service script for pptpclient
# Modified from OpenVPN systemd service script.
[Unit]
Description=PPTP Client connection to %I
After=syslog.target network.target network-online.target
[Service]
PrivateTmp=true
Type=forking
ExecStart=/usr/bin/pon %i persist
PIDFile=/run/ppp0.pid
#CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH
#LimitNPROC=10
DeviceAllow=/dev/null rw
DeviceAllow=/dev/ppp rw
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment