2024年2月25日 星期日

在Asustor上建立Cloudflare DDNS

1. 首先把網域放到cloudalre上進行管理

2. 到管理介面中找到左上角的設定,選取"My Profile"



3. 左邊點選API Tokens後,點選右邊的Create token



4. 進入以後,點選"Edit Zone DNS",並且點右邊的"User temlapte"。設定如下圖,接下來就都是下一步。最後就會生成一個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的登入密碼一定會吐出錯誤。




沒有留言:

張貼留言

iscsi 連線問題筆記

如果要進行umount但是出現target buzy sudo fuser -km 掛載點 sudo umount 掛載點 iSCSI重啟 sudo open-iscsi restart  掛載lun iscsiadm -m discovery -t sendtargets -p...