note for myself
Install noip2 from source
- cd /usr/local/src/
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xf noip-duc-linux.tar.gz
- cd noip-2.1.9-1/
- make install
Configure the Client
As root (or with sudo) issue the below command:
/usr/local/bin/noip2 -C (dash capital C, this will create the default config file)
Create a Systemd service
Create the file /etc/systemd/system/noip2.service
and paste the following:
[Unit]
Description=No-IP Dynamic DNS Update Client
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target
Alias=noip.service
[Service]
Type=forking
ExecStart=/usr/local/bin/noip2
Restart=always
Activating
$ systemctl daemon-reload
$ systemctl status noip2.service
$ systemctl start noip2.service (start immediately)
$ systemctl enable noip2.service (start on boot)
# Simple No-ip.com Dynamic DNS Updater |
# By Nathan Giesbrecht (http://nathangiesbrecht.com) |
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin) |
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file |
# 3) Copy this file noip2.service to /etc/systemd/system/ |
# 4) Execute `sudo systemctl daemon-reload` |
# 5) Execute `sudo systemctl enable noip2` |
# 6) Execute `sudo systemctl start noip2` |
# systemd supports lots of fancy features, look here (and linked docs) for a full list: |
# http://www.freedesktop.org/software/systemd/man/systemd.exec.html |
Description=No-ip.com dynamic IP address updater |
WantedBy=multi-user.target |
ExecStart=/usr/local/bin/noip2 |
Type=forking
沒有留言:
張貼留言