返回列表 發帖
看來 Skypeus C-Hing 也不是網絡的 Lu-Lu, (因爲他能看懂我的東西)

我深信,以 Skypeus C-Hing 的網絡 ...
homeinns 發表於 2013-12-20 14:36



    要不是那個“牆”,也不會到google老師那裡找到茶室,然後在這裡學會了怎麼用“梯子”。與G*F*W*的鬥爭中學到了不少網絡的新知識。

TOP

本帖最後由 tomleehk 於 2013-12-20 23:27 編輯
"這個有真正WANIP的Router並不是ISP的,是小區寬帶住戶的自己.."
Skypeus 發表於 2013-12-20 09:18



   

1) A second thought...
Can you possibly set the DDNS and corresponding port forwarding at your "小區寬帶住戶自己的" Router ?

2) By the way, a few minutes ago, I just tested the below feature (homeinns C-hing's idea) with 2 levels of router (both are of DD-WRT)

    SETUP  --  DDNS ---
    Do not use external IP Check:-  請去鈎取  NO  然後 Save 和  Reboot 路由器
     那麽你的 DD-WRT 會定期去檢查你的上游 IP, (雖然你的 DD-WRT WAN 是在下游的 LAN)


    Therefore, I can also confirm this feature of updating of the upper level router's router to DDNS should works normally in DD-WRT.
   
    If it cannot work, I believe your version of DD-WRT has bug in this feature or due to some extenal reason your lower level DD-WRT router cannot extract the WAN IP from the upper router... Or you can try flashing with another version...

    Don't be surprised with the bug in DD-WRT's DDNS function.

    Today I was just working on hardware upgrading/replacing my antique 54G DD-WRT VPN router to a 802.11n Gigabit Router (a free hardware, no cost !!! ).

    I also found some versions of DD-WRT for my new router have some bugs on DDNS updating while some versions could not work on VPN. I totally repeated 3 to 4 times of flashing until I could find a satisfactory version.

    I have used iPhone to watch myTV live stream via the new Gigabit DD-WRT OpenVPN router for more than 2 hours and so far so good.
    No interrupt, no delay could ever be noticed. 升級結果非常滿意!!

TOP

本帖最後由 tomleehk 於 2013-12-21 00:05 編輯
在DD-WRT的上層路由器我是能修改其設置的,已經把DD獲取的LANIP固定在192.168.1.8,而 ...
Skypeus 發表於 2013-12-19 18:59


If your DD-WRT router is located in China, then it is possible that your site blocked DDNS update.
http://www.telecom-cafe.com/foru ... amp;page=1#pid35011
http://www.telecom-cafe.com/foru ... =5787&pid=35101

To find out..

At your OpenVPN router site, you can try pinging
1) members.dyndns.org and
2) checkip.dyndns.org and
see if there are proper responses :
1) members.dyndns.org should give 204.13.248.111
2) checkip.dyndns.org should give 216.146.43.70

Then you can also try pinging the corresponding IP addresses and see if there are responses.

TOP

If your DD-WRT router is located in China, then it is possible that your site blocked DDNS update. ...
tomleehk 發表於 2013-12-20 23:46


dyndns.org 雖然用PING的可以偶爾得到正確的IP,但它在國內確實已被牆!

Pinging members.dyndns.org [204.13.248.111] with 32 bytes of data:
Reply from 204.13.248.111: bytes=32 time=300ms TTL=47
Reply from 204.13.248.111: bytes=32 time=321ms TTL=47
Reply from 204.13.248.111: bytes=32 time=361ms TTL=47
   
Pinging checkip.dyndns.com [216.146.43.70] with 32 bytes of data:
Reply from 216.146.43.70: bytes=32 time=497ms TTL=42
Reply from 216.146.43.70: bytes=32 time=498ms TTL=42
Reply from 216.146.43.70: bytes=32 time=533ms TTL=42


dyndns的連接被重置,改用其他還未被牆的DDNS服務。
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

看來 Skypeus C-Hing 也不是網絡的 Lu-Lu, (因爲他能看懂我的東西)
解決以後, 請 Post 上來, 作爲後世的借鑑。...
homeinns 發表於 2013-12-20 14:36



    折騰了幾天,確定DD-WRT的DDNS更新程式INADYN有Bug, 在某些DD-WRT版本的firmware存在這個問題,但你不知那個版本的firmware沒有這個Bug,可能只好下載多幾個firmware來重新刷機來測試。

現在我改用wget的方式來定時更新本地WANIP到DDNS服務器上,屢試不爽!

方法分享如下:

先SSH到DD-WRT Router,輸入下面的命令,
wget -q -0 /var/log/dyndns.log "http://userid:password@members.dyndns.org//nic/update?hostname= userid.dyndns.org" >/dev/null 2>&1
  要把上面的userid同password改為您的dyndns的帳號和密碼。

再vi /var/log/dyndns.log 看看是不是更新到了正確的WanIP。測試OK後,把它加入到Router的定時任務中,vi /tmp/cron.d/cron_jobs
輸入 */5 * * * * root wget -q -0 /var/log/dyndns.log "http://userid:password@members.dyndns.org//nic/update?hostname= userid.dyndns.org" >/dev/null 2>&1
其中的*/5 * * * * 為每隔5分鐘wget一次,讓它定時更新WanIP到DDNS服務器。
你也可以改*/10 * * * * 或*/15 * * * * 間隔更長時間來更新一次。保存,退出後重啟Router。

這下DD-WRT Router中用DDNS服務安逸了, 再也不用擔心更新不到IP,也不用擔心更新得太慢,因為自己可以把它設置為更短的時間,用其它DDNS服務的,如dtdns.com、dnspark.com、No-IP、CHANGEIP.COM、freedns.afraid.org的script也類似,只需把上面鏈接DDNS服務地址改為對應的就行。
現在不管DD-WRT Router是位於兩層路由、還是三層路由或N層路由的環境,無需作NAT轉換,只要能訪問到DDNS服務商的鏈接地址,就可以用以上的方法來更新DDNS,屢試不爽!

另外,在國內訪問不到dyndns的朋友,可以在DD-WRT或OpenWRT中把
address=/members.dyndns.org/204.13.248.111
address=/checkip.dyndns.org/216.146.43.70
加入到DNSMasq中,保存,重啟服務就可以生效。就直接可以訪問到dnydns服務鏈接了。

TOP

非常感謝 Skypeus C-Hing 的無償把你的痛苦經驗分享。(Homeinns 從被 HK依PC 河蟹前已經身體力行的工作,很有社會效益的)

港燦的民族,就是因爲這個精神而不斷提升,戰勝  G*F*W 的資訊封鎖,拒絕做一個奴才。

TOP

返回列表