aboutsummaryrefslogtreecommitdiff
path: root/etc/systemd/system
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--etc/systemd/system/he-ipv6-update.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/systemd/system/he-ipv6-update.service b/etc/systemd/system/he-ipv6-update.service
new file mode 100644
index 0000000..1f379de
--- /dev/null
+++ b/etc/systemd/system/he-ipv6-update.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Update he-ipv6 tunnel end point
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=curl --silent "https://USERNAME:PASSWORD@ipv4.tunnelbroker.net/nic/update?hostname=582358"
+NoNewPrivileges=yes # Prevent acquiring new privileges. Warning: breaks execution of SUID binaries
+PermissionsStartOnly=true
+PrivateDevices=yes # Prevent access to /dev
+PrivateTmp=yes # Use dedicated /tmp
+PrivateUsers=true
+ProtectHome=yes # Hide user homes
+ProtectKernelModules=yes # Prevent loading or reading kernel modules
+ProtectKernelTunables=yes # Prevent altering kernel tunables
+ProtectSystem=strict # strict or full, see docs
+
+[Install]
+WantedBy=network-online.target