huigezi' 发表于 2012-2-15 11:47:50

3322域名更新脚本

脚本默认更新接口为PPPOE-OUT2的IP,如果PPPOE-OUT2掉线状态,则更新PPPOE-OUT1的线路IP

防止PPPOE-OUT2掉线了无法远程进入ROS

我这里的ADSL线路不稳定 掉线掉怕了,自己的ROS有10条线的检测更新

想检测多的线路自己在脚本里面添加内容就行了,脚本免费共享,不收铜板!





rockup 发表于 2012-2-15 22:07:28

支持,多谢,12号起,我的3322就更新不了,不知是不是3322在搞什么,:'):')

greney 发表于 2012-10-17 20:53:17

非常感谢 脚本很好用 目前ROS 5.21

greney 发表于 2012-10-18 09:16:15

求助一下楼主 如何添加更多的线路检测啊?

cfan0000 发表于 2012-10-18 13:16:27

ROS 5.21你哪里下的ISO包或者IMG包

greney 发表于 2012-10-18 15:51:57

我按照楼主的脚本 改成了15线检测 呵呵
:do {
:local ether
:local userDDNS帐号
:local passDDNS密码
:local hostDDNS域名
#以下不需要修改
:local status running];
:if ($status=true) do={
:set ether "pppoe-out1"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out2"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out3"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out4"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out5"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out6"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out7"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out8"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out9"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out10"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out11"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out12"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out13"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out14"};
:if ($status=false) do={
:local status running];
:if ($status=true) do={
:set ether "pppoe-out15"};
:if ($status=false) do={
:set ether "pppoe-out1"}}}}}}}}}}}}}}};
:local oldip [:resolve $host]
:delay 5s
:local newip [ /ip address get address ]
:set newip [:pick $newip 0 [:find $newip "/"]]
:if ($oldip != $newip) do={
/tool fetch url=("http://members.3322.org/dyndns/update\?system=dyndns&hostname=\
$host&myip=$newip") mode=http user=$user password=$pass dst-path=$host
:log error ("\BE\C9\B5\C4IP\B5\D8\D6\B7\A3\BA: ".$oldip)
:log error ("\D0\C2\B5\C4IP\B5\D8\D6\B7\A3\BA: ".$newip)
:delay 3s
:local Result
:if ([:find $Result "good"] != "nil") do={
:log error ($host." \B8\FC\D0\C2\B3\C9\B9\A6")
} else={
:log error ($host." \B8\FC\D0\C2\CA\A7\B0\DC")}
/file remove $host}}

西狂 发表于 2012-10-20 12:53:50

谢谢,3322比较好用

梦儿85 发表于 2012-10-20 22:21:30

谢谢了
:):):)

awwglove 发表于 2012-10-20 22:24:45

非常感谢,3322好用。脚本不错

kylinsun 发表于 2012-12-22 00:08:01

谢谢楼主,找了很久,就这个可以用3322

waexty2002 发表于 2012-12-22 01:17:17

下载一个试试,谢谢楼主发贴

cool525000 发表于 2013-3-19 12:17:42

很好的东西,有没CHANGEIP的这种双线 DDNS更新脚本?

systemroot 发表于 2013-3-21 16:25:49

很好的东西,在淘宝上买个脚本要50元呢。

BINBINWAL 发表于 2013-3-21 17:14:16

rockup 发表于 2012-2-15 22:07 static/image/common/back.gif
支持,多谢,12号起,我的3322就更新不了,不知是不是3322在搞什么,

好象3322 在搞一个什么验证激活,去官网看一下。

kdushkoy 发表于 2013-3-21 17:33:23

刚刚测试过ROS 6.0 测试正常:)
页: [1] 2
查看完整版本: 3322域名更新脚本