hyzqb 发表于 2018-8-23 07:26:01

OPENWRT 文本(shell) 配置支持oray的花生壳DDNS,Web也可以配置

原作者是采用shell的方式进行配置,本人尝试了在web下面配置也可以成功。感谢原作者  首先SSH到自己的OpenWRT路由器上面
  opkg update    ##更新源
  opkg install ddns-scripts luci-app-ddns##安装ddns配置程序及web设置界面
  用上面的命令下载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://:@ddns.oray.com/ph/update?hostname=&myip="  配置完成后,使能ddns
  /etc/init.d/ddns start
  
  配置开启启动
  /etc/init.d/ddns enable
  
  
  PS:Web界面也可以配置,而且配置起来更方便!
  
  Web界面在安装上面的两个安装包后,重新登陆web界面,上面会多出一个服务按钮,点击Dynamic DNS进行设置
  
  Basic Settings选项卡:
  
  DDNS Service provider 【Oray.com】   ##这里我采用花生壳,所以选择Oray.com
  
  Domain 【xxx.oicp.net等】                              ##这里填写你的花生壳域名
  
  用户名 【你的花生壳账号】
  
  密码   【你的花生壳密码】
  高级配置 选项卡:
  IP address source    【网络】
  网络 【wan】
  原文转自:https://www.cnblogs.com/souroot/p/4521309.html,感谢原作者souroot


页: [1]
查看完整版本: OPENWRT 文本(shell) 配置支持oray的花生壳DDNS,Web也可以配置