https://support.aa.net.uk/index.php?title=Linux_NetworkManager_IPv6_Tunnel_Config&feed=atom&action=historyLinux NetworkManager IPv6 Tunnel Config - Revision history2024-03-28T18:45:26ZRevision history for this page on the wikiMediaWiki 1.39.5https://support.aa.net.uk/index.php?title=Linux_NetworkManager_IPv6_Tunnel_Config&diff=10650&oldid=prevPhilR at 00:38, 18 November 20152015-11-18T00:38:22Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 00:38, 18 November 2015</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>fi</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>fi</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></nowiki></div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></nowiki></div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Set the file's ownership and permissions to root.root, 755.</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This should give you IPv6 on the connection in question, and tear the tunnel down when you are not using it so that native IPv6 will work on other connections.</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This should give you IPv6 on the connection in question, and tear the tunnel down when you are not using it so that native IPv6 will work on other connections.</div></td>
</tr>
</table>PhilRhttps://support.aa.net.uk/index.php?title=Linux_NetworkManager_IPv6_Tunnel_Config&diff=10648&oldid=prevPhilR: How to create a tunnel for a NetworkManager controlled connection2015-11-17T16:35:57Z<p>How to create a tunnel for a NetworkManager controlled connection</p>
<p><b>New page</b></p><div>If you've tried all the listed methods of creating a 6in4 tunnel and found them unreliable or not working, it could be NetworkManager interfering with your setup - this is often the case if you want the tunnel to work with your 3G connection.<br />
<br />
One workaround would be to set it up like this - this was done on Debian jessie, but should be similar for others:<br />
<br />
First, find the name of the connection file in /etc/NetworkManager/system-connections - in my case it's "Andrews & Arnold connection" - the name is passed to NM Dispatcher scripts in $CONNECTION_ID and will be used in the example below.<br />
<br />
In /etc/NetworkManager/dispatcher.d, create the file 99smart6in4.sh, containing the following:<br />
<br />
<nowiki><br />
#!/bin/sh<br />
STATUS=$2<br />
REMOTE=81.187.81.6<br />
IPADDR=2001:8b0:XXXX:YYYY::1/64 (where XXXX is the third "word" of your /48, and YYYY is the fourth word of a suitable /64)<br />
<br />
if [ "$CONNECTION_ID" = "Andrews & Arnold connection" ] && [ "$STATUS" = "up" ]; then<br />
ip tunnel add 6in4 mode sit remote $REMOTE<br />
ip link set 6in4 up mtu 1280<br />
ip addr add $IPADDR dev 6in4<br />
ip route add ::/0 dev 6in4<br />
fi<br />
<br />
if [ "$CONNECTION_ID" = "Andrews & Arnold connection" ] && [ "$STATUS" = "down" ]; then<br />
ip link set 6in4 down<br />
ip tunnel del 6in4<br />
fi<br />
</nowiki><br />
<br />
This should give you IPv6 on the connection in question, and tear the tunnel down when you are not using it so that native IPv6 will work on other connections.</div>PhilR