* [Cerowrt-devel] Update 6in4 tunnel when IP address changes
@ 2014-12-29 4:46 Rich Brown
0 siblings, 0 replies; only message in thread
From: Rich Brown @ 2014-12-29 4:46 UTC (permalink / raw)
To: cerowrt-devel
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
I have been having trouble re-establishing my 6-in-4 tunnel with tunnelbroker.net (Hurricane Electric) when my external IPv4 address changes. (CeroWrt 3.10.50-1 on WNDR3800)
I rummaged around the OpenWrt forums, found this hint at https://forum.openwrt.org/viewtopic.php?pid=255401#p255401 . According to the post, the problem is that the script to update the tunnel info runs immediately after the ppp link comes up, but that's before dnsmasq and other things are running.
As suggested in the post, I added a "sleep 10" before the loop that retrieves the URL with wget in /lib/netifd/proto/6in4.sh
...
# Add in sleep 10
# See https://forum.openwrt.org/viewtopic.php?pid=255401#p255401
sleep 10
while [ $((++try)) -le $max ]; do
( exec wget -qO/dev/null "$url" 2>/dev/null ) &
local pid=$!
( sleep 5; kill $pid 2>/dev/null ) &
wait $pid && break
done
...
This seems to have solved the problem: my IPv6 link has come back automatically three times since I edited the file.
Rich
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-29 4:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-29 4:46 [Cerowrt-devel] Update 6in4 tunnel when IP address changes Rich Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox