Hướng dẫn cài ddclient cho nas Buffalo
1. Cài ddclient
Ipkg install ddclient
2. Sửa file ddclient.conf
Vi /opt/etc/ddclient/ddclient.conf
# ddclient configuration for Dynu # # /etc/ddclient.conf daemon=60 # Check every 60 seconds. syslog=yes # Log update msgs to syslog. mail=root # Mail all msgs to root. mail-failure=root # Mail failed update msgs to root. pid=/var/run/ddclient.pid # Record PID in file. use=web, web=checkip.dynu.com/, web-skip='IP Address' # Get ip from server. server=api.dynu.com # IP update server. protocol=dyndns2 login=myusername # Your username. password=YOURPASSWORD # Password or MD5/SHA256 of password. MYDOMAIN.DYNU.COM # List one or more hostnames one on each line. #MYDOMAIN.COM
3. Chạy ddclient
Ddclient
4. Tạo file khởi động
vi /opt/etc/init.d/S99ddclient
#! /bin/sh
/opt/sbin/ddclient
5. Khởi chạy cùng hệ thống
chmod 777 /opt/etc/init.d/S99ddclient
update-rc.d /opt/etc/init.d/S99ddclient defaults
Reboot
Nhận xét
Đăng nhận xét