OPENWRT text (shell) configuration supports Oray peanut shells DDNS

Source: Internet
Author: User

opkg updateopkg Install ddns-scripts Luci-app-ddns

Download the Ddns script with the above command, edit the configuration file

Vi/etc/config/ddns

Configured as follows

Config Service"Myddns"option enabled"1"optionInterface        "Wan"option Use_syslog"0"o Ption 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"o Ption Force_interval" -"option Force_unit"hours"option Check_interval"Ten"option Check_unit"minutes"option Retry_interval" -"option Retry_unit"seconds"#option Ip_source"Network"#option ip_network"Wan"#opti On 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]"

After the configuration is complete, enable DDNS

/etc/init.d/ddns start

Configure on Start

/etc/init.d/ddns Enable

Finally accomplished:

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

Pinging user.gicp.net [117.83.194.126] with + 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 text (shell) configuration supports Oray peanut shells DDNS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.