From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [IPv6:2607:f8b0:400d:c01::22e]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 37706201113 for ; Sun, 28 Dec 2014 20:46:34 -0800 (PST) Received: by mail-qc0-f174.google.com with SMTP id c9so9003262qcz.33 for ; Sun, 28 Dec 2014 20:46:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:date:message-id:cc:to:mime-version; bh=VfqnRnEOhU+R2NGzvKq5NgX+ABmTiF1Jik9OKW5hFgg=; b=WlY4NxqfNS24Wqz49uBUse/GdGqiCHVK5HGK4vzXdFebQ3NaEEe9Yevd5GgUPhyHgE +fZ0bA3MQ0lYtRww6NzCIWMMMXOn59/o42ku7UJ2vM7j28byUwqUIE6WORgyuoQCbkBh CIudMqJV6XWqSoF9PNBji32ZZ9fl7+WH05IPk79NwGLY8BB9BqEDi/rTh5vislW+B2L7 OChU0wkulScMkaBR7rggh7Zdz/UszWBT6nnLVLMV4zJNMR3G5RX0K1arOsMp3DJR5Che w7vkRSMMolrKV3E0s34RSCzbMvkb3sO//HgYOFMAI+07RI3LyRTs/m1n0Ly9IHEjzeEJ E5Tw== X-Received: by 10.224.114.133 with SMTP id e5mr75069351qaq.48.1419828393337; Sun, 28 Dec 2014 20:46:33 -0800 (PST) Received: from richs-mbp-8408.home.lan (pool-71-169-164-200.burl.east.myfairpoint.net. [71.169.164.200]) by mx.google.com with ESMTPSA id p13sm21419102qac.36.2014.12.28.20.46.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Dec 2014 20:46:32 -0800 (PST) From: Rich Brown Content-Type: multipart/signed; boundary="Apple-Mail=_29050100-11EC-4859-BD59-3F5C55E09545"; protocol="application/pgp-signature"; micalg=pgp-sha512 Date: Sun, 28 Dec 2014 23:46:29 -0500 Message-Id: To: cerowrt-devel Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) Subject: [Cerowrt-devel] Update 6in4 tunnel when IP address changes X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 04:47:03 -0000 --Apple-Mail=_29050100-11EC-4859-BD59-3F5C55E09545 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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=3D255401#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.=20 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 ...=20 # Add in sleep 10=20 # See = https://forum.openwrt.org/viewtopic.php?pid=3D255401#p255401 sleep 10 while [ $((++try)) -le $max ]; do ( exec wget -qO/dev/null "$url" 2>/dev/null ) & local pid=3D$! ( 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 --Apple-Mail=_29050100-11EC-4859-BD59-3F5C55E09545 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUoNymAAoJEH4agC/0z73/WJYIALADdvKt6+q3oUiLstZeBWVG K6HV/aFcKRjo31FL96/hL1vyiE0ezBLd6SXrz5WB5+mOKn8QaS4j/6pLMxWEOSsx nRYW8d06HXnlFPfRQczEyTkyrtz9WDb9hH8LTv4948ZQnH0aWMqbZDs6R/V0Hlyt SYuSlp6mD/9O6xrdL9NdUyMAEgedkIkBxp894RWngaNQVlJM9j1v92Ka9kPhtndi diqFezsBTQYmkJ1zXQiixD8mnPxcIwzTZTinnMZ39Jp0VLtVPKyB1zTH9viCBAeK jRfKNiI0Ru+tWf6B1D2Shl4+zYfkrOz3mooP5++poAyWu2Vnfyg8GsLzHgnemUg= =fpjX -----END PGP SIGNATURE----- --Apple-Mail=_29050100-11EC-4859-BD59-3F5C55E09545--