| Linode Forum https://forum.linode.com/ |
|
| IPv6, HE Tunnel, and /etc/network/interfaces https://forum.linode.com/viewtopic.php?f=19&t=5629 |
Page 1 of 1 |
| Author: | devjonfos [ Thu May 27, 2010 1:49 am ] |
| Post subject: | IPv6, HE Tunnel, and /etc/network/interfaces |
Okay, I've done the Hurricane Electric tunnel for IPv6 on my Linode, ping'd a few IPv6 places, got my certification up to "Enthusiast". Now how do I get my changes to come back after a reboot? I know I need to edit /etc/network/interfaces on my Ubuntu 10.04 Lucid node, but I have no clue what to put into there for IPv6. Currently, it contains: Code: # The loopback interface |
|
| Author: | hoopycat [ Thu May 27, 2010 12:36 pm ] |
| Post subject: | |
Here's mine: Code: auto lo Note the IP in eth0... this is an address in the routed /64, used for outgoing connections, such that the reverse IP can be set away from the default one for the point-to-point /64. |
|
| Author: | devjonfos [ Thu May 27, 2010 12:46 pm ] |
| Post subject: | |
Thank you! |
|
| Author: | jed [ Thu May 27, 2010 3:14 pm ] |
| Post subject: | |
hoopycat wrote: Here's mine:
Interesting. I do a lot more with mine, mainly because Ubuntu (in my experience) eventually begins complaining about no buffer space being available after enough networking restarts. I tracked it down to a crappy error message coming out of the stack in the kernel, and then couldn't be bothered to go much further. Here's my router at home: Code: auto he0 I'm probably doing it wrong, but it works and I don't feel like screwing with it. There's a bridge and all kinds of other goodness in there. Does your configuration set up routing correctly? I could never get mine to do so without an up/down route add/del. |
|
| Author: | hoopycat [ Thu May 27, 2010 3:44 pm ] |
| Post subject: | |
Short answer: I don't know how well it survives on networking restarts, as I don't have too much of a need to adjust the network configuration outside the context of a reboot. Makes life easier in some respects I used to have an up/down for adding routes, but commented it out awhile back with no deleterious effects: Code: # commented out 2010/04/10 by rtucker, from advice on #linode: But yeah, the routing goes in OK out of the box. |
|
| Author: | hojuruku [ Thu May 27, 2010 4:33 pm ] |
| Post subject: | Gentoo / Sabayon /etc/conf.d/net for ipv6 |
Here is my setup! Code: modules=( "iproute2" ) Yes Sabayon 5.2 works on linode. You can install it by unzipping a squashfs image and cleaning out some install cruft. What is better is using it as gentoo and using entropy (equo) to push out your gentoo binaries to other hosts. I recommend gentoo-ers upgrade by using layman -a sabayon, emerge entropy equo entropy-server and seeing it's much better than using Gentoo's binary packages. I have a i7 intel core optomized version of Sabayon for anyone who is interested (perfect for linode hardware). |
|
| Author: | smiffy [ Sun May 30, 2010 2:18 am ] |
| Post subject: | |
Not sure whether I should start a new thread on this, but since it's relevant to the discussion, here goes: I have followed the /etc/network/interfaces example from http://www.linode.com/wiki/index.php/IPv6 - which works all well and good. However, the tunnel keeps vanishing which is *not* what I want. As I can't have a native address, that tunnel needs to stay up for ever. The problem would appear to be some sort of timeout, as far as I can see. If I don't make an inbound IPv6 connection for a short time, I can't ping6/otherwise connect IN. However, if I ping6 OUT (generally to ipv6.he.net,) I can then ping6 IN again. Didn't know if the TTL line in the example interfaces file had any bearing on it, so I removed it. No difference. Ideas, anyone? UPDATE: I have run ifconfig on the interface both whilst it is and is not accepting inbound connections. Entries are identical, barring the data conuters. |
|
| Author: | OverlordQ [ Sun May 30, 2010 2:41 am ] |
| Post subject: | |
here's what I have. Code: auto 6in4 The forwarding line is likely not needed for what you want it for. |
|
| Author: | devjonfos [ Mon May 31, 2010 12:44 pm ] |
| Post subject: | |
smiffy wrote: Not sure whether I should start a new thread on this, but since it's relevant to the discussion, here goes:
... I saw your post over at tunnelbroker.net and did forwarding protocol 41 solve the problem? |
|
| Author: | smiffy [ Mon May 31, 2010 6:23 pm ] |
| Post subject: | |
I set up the firewall rule about an hour ago and disabled the keep-alive cron job - it appears to work. The resolution is: iptables -A INPUT -s XXXXXXXX/32 -p ipv6 -j ACCEPT ...where XXXXXXXX is listed as "Server IPv4 address" under "IPv6 Tunnel Endpoints." Note that this is the SAME rule quoted on the TunnelBroker forum - this is just how iptables-save dumps it out. Kudos to @jimb for this solution. |
|
| Author: | devjonfos [ Mon May 31, 2010 8:18 pm ] |
| Post subject: | |
smiffy wrote: I set up the firewall rule about an hour ago and disabled the keep-alive cron job - it appears to work.
The resolution is: iptables -A INPUT -s XXXXXXXX/32 -p ipv6 -j ACCEPT ...where XXXXXXXX is listed as "Server IPv4 address" under "IPv6 Tunnel Endpoints." Note that this is the SAME rule quoted on the TunnelBroker forum - this is just how iptables-save dumps it out. Kudos to @jimb for this solution. Good to know! I had something similar to that because I also had to forward protocol 41 in my home router. Now I see the source bit (-s XXXXXXXX), but if you know the exact address of the IPv4 server would you need the slash 32? |
|
| Author: | smiffy [ Mon May 31, 2010 8:26 pm ] |
| Post subject: | |
The /32 is added automatically by iptables. At least, that's what appears when I set the rule and then did an iptables-save to verify. Important: setting this rule means that inbound IPv6 is now bypassing your IPv4 firewall. You will need to duplicate your iptables settings with ip6tables, so you will have an IPv6 firewall too. |
|
| Author: | devjonfos [ Mon May 31, 2010 10:40 pm ] |
| Post subject: | |
smiffy wrote: ... You will need to duplicate your iptables settings with ip6tables, so you will have an IPv6 firewall too.
Yeah, did it! |
|
| Author: | devjonfos [ Wed Jun 23, 2010 12:46 pm ] |
| Post subject: | |
Just a follow up...since rebooting to get the RAM increase the following configuration in /etc/network/interfaces worked on my Ubuntu 10.04 LTS (Lucid Lynx) IPv4/IPv6 node: Code: auto lo Thanks to all previous posters for helping me put this configuration together! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|