#16905: tunnelbroker endpoint update
--------------------------------+-------------------------------------
Reporter: huzheyi | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Barrier Breaker (trunk)
Component: packages | Version: Trunk
Keywords: 6in4, tunnelbroker |
--------------------------------+-------------------------------------
It seems that tunnelbroker endpoint updater is no longer available.
the /lib/netifd/proto/6in4.sh defines the update url as
{{{
http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid
}}}
I manually use wget with this url, and it comes out:
Username/Password Authentication Failed.
no matter I use my username or my userID(the one like tb51000000.380000..)
no matter I set an update key or not
And I found the forum of HE which says the update url begins with https.
So I installed a wget with ssl, and use it with para --no-check-
certificate.
the conclusion is only the url below is AVAILABLE.(username is username
not userID)
{{{
https://<USERNAME>:<PASSWORD>@ipv4.tunnelbroker.net/nic/update?hostname=<TUNNEL_ID>
}}}
Next I try to modify 6in4.sh like below:
{{{
local
url="https://$username:[email protected]/nic/update?hostname=$tunnelid"
local try=0
local max=3
while [ $((++try)) -le $max ]; do
( exec wget --no-check-certificate -qO/dev/null
"$url" 2>/dev/null ) &
local pid=$!
( sleep 5; kill $pid 2>/dev/null ) &
wait $pid && break
done
}}}
but it makes no sense even I reboot my device or renew a 6in4 WAN
configuration.
--
Ticket URL: <https://dev.openwrt.org/ticket/16905>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets