Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
From: Rich Brown <richb.hanover@gmail.com>
To: cerowrt-devel <cerowrt-devel@lists.bufferbloat.net>
Subject: [Cerowrt-devel] Update 6in4 tunnel when IP address changes
Date: Sun, 28 Dec 2014 23:46:29 -0500	[thread overview]
Message-ID: <B0DC93A0-DBD1-4D9E-A8F5-D1BD8A689E63@gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2014-12-29  4:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B0DC93A0-DBD1-4D9E-A8F5-D1BD8A689E63@gmail.com \
    --to=richb.hanover@gmail.com \
    --cc=cerowrt-devel@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox