OPENWRT 文本(shell) 配置支援oray的花生殼DDNS

來源:互聯網
上載者:User

標籤:

opkg updateopkg install ddns-scripts luci-app-ddns

用上面的命令下載ddns指令碼,編輯設定檔

vi /etc/config/ddns

配置如下

config service "myddns"                                                         option enabled          "1"                                             option interface        "wan"                                           option use_syslog       "0"                                                                                                                     option service_name     "gicp.net"   
     #注意下面domain要換成你自己的domain option domain "user.gicp.net"
#username要更換為你自己的username option username "username"
#passwd換成你自己的passwd option password "passwd" option use_https "0" option force_interval "24" option force_unit "hours" option check_interval "10" option check_unit "minutes" option retry_interval "60" option retry_unit "seconds" #option ip_source "network" #option ip_network "wan" #option ip_source "interface" #option ip_interface "pppoe-wan" #option ip_source "script" #option ip_script "path to your scrip"
#使用網路來檢測自己的公網IP option ip_source "web" option ip_url "http://ddns.oray.com/checkip"
     #oray的ip地址更新格式 option update_url "http://[USERNAME]:[PASSWORD]@ddns.oray.com/ph/update?hostname=[DOMAIN]&myip=[IP]"

 

 

配置完成後,使能ddns

/etc/init.d/ddns start

配置開啟啟動

/etc/init.d/ddns enable

 

最後大功告成:

C:\Documents and Settings\Administrator>ping user.gicp.net

Pinging user.gicp.net [117.83.194.126] with 32 bytes of data:

Reply from 117.83.194.126: bytes=32 time=1ms TTL=64
Reply from 117.83.194.126: bytes=32 time<1ms TTL=64
Reply from 117.83.194.126: bytes=32 time<1ms TTL=64
Reply from 117.83.194.126: bytes=32 time=1ms TTL=64

Ping statistics for 117.83.194.126:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

OPENWRT 文本(shell) 配置支援oray的花生殼DDNS

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.