Skip to content

Instantly share code, notes, and snippets.

@johnsimcall
Forked from ericandrewlewis/noip2.service
Last active May 17, 2021 04:08
Show Gist options
  • Save johnsimcall/0133eed0b43a789cb3bc7a47c678cb2b to your computer and use it in GitHub Desktop.
Save johnsimcall/0133eed0b43a789cb3bc7a47c678cb2b to your computer and use it in GitHub Desktop.
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-IP Dynamic DNS Updater
#
# 1) Install DUC (Dynamic Update Client) and create the configuration file
# as described on noip website https://my.noip.com/#!/dynamic-dns/duc
# 2) Save this file as /etc/systemd/system/noip.service
# 3) Tell systemd to rescan unit files `sudo systemctl daemon-reload`
# 4) Execute `sudo systemctl enable --now noip`
#
# TODO: Secure this unit file via `systemd-analyze security noip.service`
# More info here https://www.redhat.com/sysadmin/mastering-systemd
[Unit]
Description=No-IP Dynamic Update Client
Wants=network-online.target
After=network-online.target
After=syslog.target
[Install]
WantedBy=multi-user.target
Alias=noip2.service
[Service]
Type=forking
Restart=always
PrivateUsers=yes
ProtectSystem=strict
ReadWritePaths=/usr/local/etc/no-ip2.conf
ExecStart=/usr/local/bin/noip2
ExecStartPost=/usr/local/bin/noip2 -S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment