電訊茶室's Archiver

vpn-learner 發表於 2018-3-17 17:03

怀疑某些dyndns的网域被封锁

原本设置在香港朋友家中的***.dyndns-ip.com server 用来翻墙最近半年都连不了,回到香港后用手机和ipad 等vpn连线给它却设有问题。再后来回到大6直接输入数字式IP地址又能成功连上(***.dyndns-ip.com仍然不能)。于是索性换了一个dyndns 的server 名稱,终于可以连上了。所以我怀疑有某些dyndns server 的地址(域名)是会给大6封掉的。  要珍惜资源啊,可能用得的所餘無多了!

tomleehk 發表於 2018-3-17 17:54

[i=s] 本帖最後由 tomleehk 於 2018-3-18 02:03 編輯 [/i]

我嘅預備方案, 以防萬一
1) 同時用2至3個 ddns
2) 將 server ip 用電郵形式送至國內/外2,3家web mail

vpn-learner 發表於 2018-3-18 01:33

有否可能 写个scripts 叫个router (routeros),自动更新完 IP 地址后,再自动发个e-mail 给自己邮箱呢?

tomleehk 發表於 2018-3-18 01:43

[i=s] 本帖最後由 tomleehk 於 2018-3-18 14:15 編輯 [/i]

我用openwrt/lede, 用 startup script改 mac address, 每日reboot, 攞新ip, 更新咗嘅 ip address 會用 email 形式同時送去 國內/外 webmail

[url]https://github.com/janost/openwrt-wan-mac/blob/master/wan-mac[/url]
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=6894[/url]

手機/平板只要用跟機電郵apps就可以同時睇幾個mailbox嘅電郵, 從而知道server ip

實際使用中, 除非绝到用ip白名單, 否則唔應該會同server失聯

RouterOS 可以點做可能要靠其他巴打

gfx86674 發表於 2018-3-19 00:10

[i=s] 本帖最後由 gfx86674 於 2018-3-19 00:13 編輯 [/i]

[quote]有否可能 写个scripts 叫个router (routeros),自动更新完 IP 地址后,再自动发个e-mail 给自己邮箱呢? ...
[size=2][color=#999999]vpn-learner 發表於 2018-3-18 01:33[/color] [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=44749&ptid=7159][img]http://www.telecom-cafe.com/forum/images/common/back.gif[/img][/url][/size][/quote]
可以啊,以dyndns為例:[code]:local dyndnsuser "a123456"
:local dyndnspass "123456"
:local wan "ether1-wan"
:local host "a123456.dyndns.org"

:local public [/ip address get interface=$wan address] ; :set public [:pick $public 0 [:find $public "/"]]
:local past   [:resolve $host]
:if ($past!=$public) do={
/tool fetch address=members.dyndns.org mode=http user=$dyndnsuser password=$dyndnspass dst-path=DynDNS \
      src-path="/nic/update\?hostname=$host&myip=$public&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
:delay 3s ; /file remove DynDNS

:local date [/system clock get date]
:local mm [:find 0,jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec [:pick $date 0 3]] ; :if ($mm<10) do={:set mm "0$mm"}
:set date "$mm$[:pick $date 3 11]"

:local title   "Update $host : $past => $public"
:local content "$wan address changed at $[/system clock get time] $date"
/tool e-mail send to=74.125.129.108 subject=$title body="$content\n\r$title" port=587 start-tls=yes
}
[/code]{:5_202:}

vpn-learner 發表於 2018-3-19 00:50

谢谢师兄, 下次回港试一下设定!

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.