aparcar / openwrt

Staging tree of Paul Spooren
Other
9 stars 1 forks source link

FS#180 - Broken the Tunnelbroker endpoint update #141

Closed aparcar closed 8 years ago

aparcar commented 8 years ago

paulcarroty:

Name the tree/revision - r1281

Name the affected device - TL-741ND

What does it do that it should not do - handle correctly this url:

wget http://ipv4.tunnelbroker.net/nic/update?hostname=$tunnelid Downloading 'http://ipv4.tunnelbroker.net/nic/update?hostname=' Connecting to 64.62.200.2:80 HTTP error 401

Steps to reproduce - install 6in4 package and configure the tunnel as described here - https://wiki.openwrt.org/doc/uci/network6#in4_tunnel_henet_tunnelbroker_sixxs_static_tunnel

config interface 'wan6' option ifname 'eth1'

option proto 'dhcpv6'

option 'proto' '6in4'
option 'peeraddr' '216.66.xx.162'
option 'ip6addr' '2001:xxx/64'

option 'ip6prefix' '2001:xx:71:986::/64'

option 'ip6prefix' '2001:xx:63ee::/48'
option tunnelid 35xx23
option username mylogin
option updatekey xxxxxxxxxxxxxxxxxx

aparcar commented 8 years ago

john:

i stumbled across the same bug a couple of days ago

aparcar commented 8 years ago

paulcarroty:

https://dev.openwrt.org/ticket/15054#comment:6

Seems like HE now have a new API:

https://username:pass@ipv4.tunnelbroker.net/nic/update?hostname=id

local url="$http://$username:$password_OR_$UPDATEKEY@ipv4.tunnelbroker.net/nic/update?hostname=$tunnelid"

aparcar commented 8 years ago

john:

BB/CC used this URL format

local url="http://ipv4.tunnelbroker.net/ipv4_end.php?ip=AUTO&apikey=$username&pass=$password&tid=$tunnelid"

this was changed to

local url="$http://ipv4.tunnelbroker.net/nic/update?hostname=$tunnelid" with uid/pwd passed using BASIC_AUTH additionally you can not use the password anymore but need to use the new update key for it to work properly. after chanhing my setup to use update_key instead of password it worked again.