Hurricane Electric's IPv6 Tunnel Broker Forums
May 25, 2013, 12:36:35 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Hurricane Electric's Tunnelbroker.net forums!
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General IPv6 Topics / IPv6 on Linux & BSD & Mac / Re: IPv6-Tunnel on two DSL on: July 29, 2012, 04:56:04 am
http://www.linuxhorizon.ro/iproute2.html & http://www.lartc.org/howto/

Take what they use for IPv4 and reapply as IPv6 as best and close as possible. Keep trying until it works.

The IPv4 stuff is trivial.  Hosts don't end-up multicasting, so there isn't a problem.  Even when I use DHCPv6, hosts still pickup RADVD broadcasts from both routers and configure both IP addresses.

Bill
2  General IPv6 Topics / IPv6 on Linux & BSD & Mac / Re: IPv6-Tunnel on two DSL on: July 28, 2012, 08:38:47 am
The abracadabra stuff is the point of the question...

So I have two separate tunnels on two separate routers, using two separate ISP's.   One is cable, the other is DSL.   If I enable RADVD broadcast for both routers, then I find my hosts pickup two addresses.   I can actually do things like 'ping ipv6.google.com', or 'traceroute ipv6.google.com' and it seems to work.  However, if I open up 'ipv6.google.com' in a webbrowser, I consistently get a timeout error.   If instead I turn off RADVD in one, and only one of the routers then everything works...

The problem is of course, I want to use this configuration so I have no single point of failure.   As soon as I turn off RADVD I have a single point of failure...

So the question is what sort of magic can I use to resolve this?



3  Tunnelbroker.net Specific Topics / Questions & Answers / Re: Can't get ipv4.tunnelbroker.net/ipv4_end.php to work on: August 11, 2011, 10:12:53 am
This script seems to have been updated recently.  I set my router up months ago to automatically update my IPv4 address, using the TomatoUSB DDNS feature.   Since my IP address rarely changes, I did notice the script is broken until this morning.   It looks like there have been the following changes:

1. The parameter ip=AUTO must be passed, as the script no longer takes this as default when not specifying an ip parameter.
2. The USERNAME:PASSWORD@ syntax does not appear to work at all...  Not that I was using this before, it is just something I tried when my normal URL was not working...
3. The address must be ipv4.tunnelbroker.net.   Using www.tunnelbroker.net/ipv4_end.php no longer works at all.  The reason seems to be that for www.tunnelbroker.net the IPv6 address always takes priority.  So if you don't have a working tunnel you can't open the site, and if you do have a working tunnel, then your IPv4 address is already set to the correct value.
4. HE now seems to require your router to allow IPv4 ICMP.  Previously, I was able to set my IPv4 address without enabling ICMP...

I haven't submitted a patch for TomatoUSB so the DDNS setting work again, however, doing a wget on a hand crafted URL seems to work as expected.




I haven't been able to get this URL to work. It keeps giving me an error and spitting out the syntax help. Tried it from a script first, then experimented from a browser window. (That should work, right?)

I've quadruple-checked the syntax, tunnel ID, etc., and searched the forums for help. No joy.

Any suggestions?

4  General IPv6 Topics / IPv6 on Routing Platforms / Re: DD-WRT Netgear WNR3500L on: January 31, 2011, 04:22:49 pm
I was watching this topic, as I have the same router and was wondering what the best way to do this was.

I have not actually got around to diving into IPv6 properly yet, but could you keep me updated if you find any better way.  

Thanks.

http://www.dd-wrt.com/wiki/index.php/IPv6#Another_approach
5  General IPv6 Topics / IPv6 on Routing Platforms / IPv6 on DD-WRT on: January 28, 2011, 02:55:52 pm
After trying every single tip I could find on the net, I finally managed to get IPV6 working.   Unlike other approaches, I decided to do my scripting in such a way I could easily toggle back and forth from the tunnel broker and just IPV6 to IPV4 tunnel.  I did this since it gives me a good way to tell the difference between a tunnel problem, and generic IPV6 intranet problem.

First the main script.  This is a re-factorization of other scripts I've seen on the net.  Install as /jffs/updateipv4.sh:

#!/bin/sh -x
#SAMPLE USERID="29812e32f424324324234"
USERID="<insert value here>"
#SAMPLE PASSWORD="CatsAndDogs"
PASSWORD="<insert value here>"
#SAMPLE TUNNEL_ID="96782"
TUNNEL_ID="<insert value here>"
#SAMPLE CLIENT_IPV6_ADDRESS="2001:271:18:2c7::2/64"
CLIENT_IPV6_ADDRESS="<insert value here>"
#SAMPLE SERVER_IPV4_ADDRESS="218.65.27.48"
SERVER_IPV4_ADDRESS="<insert value here>"
echo >> /tmp/wanip
WANIP_OLD=`cat /tmp/wanip`
WANIP=$(ip -4 addr show dev vlan2 | grep 'inet ' | awk '{print $2}' | cut -d/ -f
if [ -n "$WANIP" ]
then
    if [ "$WANIP" != "$WANIP_OLD" ]
    then
        echo "External IP: $WANIP" 1>&2
        ROUTED_ADDRESS=`sed -n -e 's,^ *prefix *\([^ ]*\) *{,\1,p' /tmp/radvd.co
        if [ $ROUTED_ADDRESS = "0:0:0:1::/64" ]
        then
            CLIENT_IPV6_ADDRESS=""
        fi
        ip tunnel del tun6to4 2>>/dev/null
        ip tunnel del he-ipv6 2>>/dev/null
        if [ -n "$CLIENT_IPV6_ADDRESS" ]
        then
            echo "Configure he-ipv6 tunnel" 1>&2                                
            MD5PASSWORD=`echo -n "$PASSWORD"|md5sum|sed -e 's/ *-//g'`          
            /usr/bin/wget 'http://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b='AUTO
            ip tunnel add he-ipv6 mode sit ttl 255 remote $SERVER_IPV4_ADDRESS l
            ip link set he-ipv6 up                                              
            ip addr add $CLIENT_IPV6_ADDRESS dev he-ipv6                        
            ip route add ::/0 dev he-ipv6                                      
                                                                                
            BR0_MAC=$(ifconfig br0 |sed -n -e 's,.*HWaddr \(..\):\(..\):\(..\):\
            # These commands aren't on HE's website, but they're necessary for t
            ip -6 addr add $(echo "$ROUTED_ADDRESS"|sed "s,::/..,::$BR0_MAC/64,"
            ip -6 route add 2000::/3 dev he-ipv6                                
        else                                                                    
            echo "Configure tun6to4 tunnel" 1>&2                                
            V6PREFIX=$(printf '2002:%02x%02x:%02x%02x' $(echo $WANIP | tr . ' ')
            ip tunnel add tun6to4 mode sit ttl 255 remote any local $WANIP      
            ip link set tun6to4 mtu 1480                                        
            ip link set tun6to4 up                                              
            ip -6 addr add $V6PREFIX:0::1/16 dev tun6to4                        
            ip -6 addr add $V6PREFIX:1::1/64 dev br0                            
            ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4              
        fi                                                                      
        echo 1 > /proc/sys/net/ipv6/conf/all/forwarding                        
    fi                                                                          
fi                                                                              

Be sure to run 'chmod ugo+rx /jffs/updateipv4.sh'.


Next the startup script.   Set this in your startup under Administration->Commands->Startup:

#Enable IPV6
insmod /lib/modules/`uname -r`/kernel/net/ipv6/sit.ko
sleep 5
radvd -C /tmp/radvd.conf start
sleep 5
rm -f /tmp/wanip
/jffs/updateipv6.sh 2> /jffs/startup.debug
kill -HUP $(cat /var/run/radvd.pid)
sleep 10
echo "starting radvd" >> /jffs/startup.debug
radvd -C /jffs/radvd.conf start &


Finally, Radv5 config.  Set this under Administration->Management->IPV6 Support->Radvd config:

interface br0 {
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvLinkMTU 1480;
AdvSendAdvert on;
prefix <insert value here> {
AdvOnLink on;
AdvAutonomous on;
AdvValidLifetime 86400;
AdvPreferredLifetime 86400;
# Base6to4Interface vlan2;
};
};

The prefix value should be your Route 64 address.  e.g. 2001:270:1c:1d8::/64

If instead you wish to use an IPV6 to IPV4 bridge instead use an address of 0:0:0:1::/64 and uncomment the Base6to4Interface line like the following:

interface br0 {
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvLinkMTU 1480;
AdvSendAdvert on;
prefix 0:0:0:1::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvValidLifetime 86400;
AdvPreferredLifetime 86400;
Base6to4Interface vlan2;
};
};

Walla.  Once everything is saved you are ready to reboot your router.   If things don't work try running the updateipv6.sh script interactively.   Note: I've designed the updateipv6.sh script so it can be rerun regularly to pickup a new wan ip address.   So if the wanip is the same as the last time it ran, it does nothing.   If you want to force it to run anyway (for debugging purposes), the simply remove the /tmp/wanip file first.  e.g.

$ rm /tmp/wanip;/jffs/updateipv6.sh


Regards,

Bill
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!