1. 首先把網域放到cloudalre上進行管理
2. 到管理介面中找到左上角的設定,選取"My Profile"
3. 左邊點選API Tokens後,點選右邊的Create token
5. 回到Asustor上,點選DDNS的供應商改為cloudflare,特別的地方是"帳號"不能用Email,而是要用放在cloudflare上面管理的網域名城。密碼則是剛剛的token。主機名稱就是你想用的服務名稱就好,後面網域名稱不用變。
==== 後記
使用上有問題,使用Asustor的ddns功能後,會把Ezconnect遮蔽導致失效。
最後還是選擇在pi3上使用ddclient
/etc/ddclient.conf 內容大概如下:
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
protocol=cloudflare,
use=web, web=https://ipinfo.io/ip \
zone=markliou.tw
login=yifanliou@gmail.com \
password='xxxxxxxxaabf66c27bdxxxxx9fd3axxxxxxxx' \
markliou-ctopopop.markliou.tw , cloudservices.markliou.tw
密碼部分,就是登錄到clouflare:
點開右上角人頭 > 左邊選單API tokens > 右邊global API key > view
就能看到加密後的密碼。這邊用cloudflare的登入密碼一定會吐出錯誤。
沒有留言:
張貼留言