HOW TO: IPv6, 6in4 tunnel for begginers

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
blagdon
DD-WRT Novice


Joined: 04 May 2015
Posts: 9

PostPosted: Tue May 05, 2015 8:36    Post subject: Reply with quote
Worked like a charm. Thanks
Sponsor
Abolfazl
DD-WRT Novice


Joined: 03 Aug 2013
Posts: 18

PostPosted: Thu May 07, 2015 21:21    Post subject: Reply with quote
I am having some issues getting a ping for IPV6.

Here is a screenshot of my IPv6 page in DD-WRT



I also have it set to dynamically update the HE ip through DNS-o-matic, this is working perfectly.

However, when I did `ping -6 ipv6.google.com` or run any other IPV6 test, it times out. What am I doing wrong?

Edit: Well IPv6 works fine when I am physically behind my network now but for some reason it does not work across the VPN I have setup through DD-WRT (IPv6 is enabled in Windows)
KrypteX
DD-WRT Guru


Joined: 18 Jan 2014
Posts: 2411

PostPosted: Fri May 08, 2015 5:57    Post subject: Reply with quote
What build are you using ? Not all builds have working IPv6...
_________________
THERE ARE NO STRANGERS HERE; ONLY FRIENDS YOU HAVEN'T YET MET.
________________________________________________________________________________________________________
DD-WRT CHANGELOG | DEVICES | DD-WRT BUILDS | KONG BUILDS | UNOFFICIAL BUILDS | DD-WRT in VIRTUALBOX
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Fri May 08, 2015 16:58    Post subject: Reply with quote
Abolfazl wrote:
for some reason it does not work across the VPN I have setup through DD-WRT (IPv6 is enabled in Windows)


this is expected. Read about "Policy Based Routing With PPTP" and ask for help on Advanced Netowrking
Abolfazl
DD-WRT Novice


Joined: 03 Aug 2013
Posts: 18

PostPosted: Fri May 08, 2015 17:37    Post subject: Reply with quote
KrypteX wrote:
What build are you using ? Not all builds have working IPv6...


26854. IPV6 is working when I am physically behind my network now. But IPV6 does not work through VPN.

Mile-Lile wrote:
Abolfazl wrote:
for some reason it does not work across the VPN I have setup through DD-WRT (IPv6 is enabled in Windows)


this is expected. Read about "Policy Based Routing With PPTP" and ask for help on Advanced Netowrking


I'll give that a shot Smile
Fobio
DD-WRT Novice


Joined: 19 Sep 2012
Posts: 45

PostPosted: Fri May 15, 2015 5:21    Post subject: Reply with quote
Thanks for the tutorial. Got it working and connecting to IPv6 sites.

In the midst of testing, I was able to reach http://ipv6-test.com/, but now, it won't even load. I get 10/10 at http://www.test-ipv6.com/.
blagdon
DD-WRT Novice


Joined: 04 May 2015
Posts: 9

PostPosted: Fri May 15, 2015 12:43    Post subject: Static IPV6 address Reply with quote
Hi

I have a WNDR 3700v4 running v24-sp2 (05/09/15) std - build 26866. I've got an IPV6 6in4 tunnel configured via SIXXs, which is working fine. Now i want to configure it to issue static IPv6 addresses to the devices on my LAN. I'm trying to set up a web and email server up.

I've tried activating DHCP6s on the IPv6 page with the following custom entry:

host Macbook-Pro {
duid 80:e6:50:14:5c:c4;
address { 2a01:348:6:87ec:e83d:88bc:834c:25f5/64;};
};

And also by entering the IP address in the static lease portion of services. Neither work, I keep getting a new address every reboot.

Any ideas people? And thanks already.
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Wed Jul 01, 2015 1:05    Post subject: Reply with quote
At the moment I have this working on my WNDR3700v2 with dd-wrt build 27456 using a tunnelbroker.net 6in4 tunnel.

I get the impression that QoS isn't working for IPv6 connections, but it's difficult to tell for sure. But it seems that running several IPv6 downloads can almost completely block everything else and seem to exceed the download limit I entered on the QoS page.

Comments or observations anyone?
GreatEmerald
DD-WRT Novice


Joined: 16 Feb 2014
Posts: 15

PostPosted: Tue Jul 14, 2015 19:55    Post subject: Reply with quote
Is there an equivalent guide for SixXS? It seems to use some extra software for it, but the software seems to provide DDNS by itself, and the service seems to have more tunnel endpoints to choose from.
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Tue Jul 14, 2015 22:45    Post subject: Reply with quote
GreatEmerald wrote:
Is there an equivalent guide for SixXS? It seems to use some extra software for it, but the software seems to provide DDNS by itself, and the service seems to have more tunnel endpoints to choose from.


It should be the same unless you need to deal with your IPv4 address changing (i.e. you have a dynamic IP on your IPv4 connection).

For dynamic IP SixXS make you use their "heartbeat" protocol and a program called aiccu to tell them when your IP changes.

You can run aiccu in your dd-wrt router. I did it (don't remeber exactly how). But what I didn't realize was that although it's called "heartbeat" they do not expect regular packets from aiccu to them unless your IP address changes.

Just me rebooting my router as I experimented with the settings, thus restarting the aiccu program each time, was enough to make them send an email accusing me of "hammering" their server.

I just gave up with them. I haven't got the time for dealing with idiots that design things to make it hard to use them and name things so as to mislead you about the way they work.

I didn't like their attitude anyway. To get started you have to email them setting out why you think you deserve to be allowed access to their service.
GreatEmerald
DD-WRT Novice


Joined: 16 Feb 2014
Posts: 15

PostPosted: Fri Jul 17, 2015 19:55    Post subject: Reply with quote
bdg2 wrote:
It should be the same unless you need to deal with your IPv4 address changing (i.e. you have a dynamic IP on your IPv4 connection).

For dynamic IP SixXS make you use their "heartbeat" protocol and a program called aiccu to tell them when your IP changes.

You can run aiccu in your dd-wrt router. I did it (don't remeber exactly how). But what I didn't realize was that although it's called "heartbeat" they do not expect regular packets from aiccu to them unless your IP address changes.

Just me rebooting my router as I experimented with the settings, thus restarting the aiccu program each time, was enough to make them send an email accusing me of "hammering" their server.


Yeap, I do need to deal with dynamic IPv4. I assume you ran aiccu through optware? In which case for most people that's probably much harder to set up than DNS-o-matic like in the OP.

The fact that they can accuse you of using heartbeats too often sounds strange; aiccu is their software, so why wouldn't they design it to not call back too often or make the heartbeats themselves trivial...
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Fri Jul 17, 2015 22:59    Post subject: Reply with quote
GreatEmerald wrote:
Yeap, I do need to deal with dynamic IPv4. I assume you ran aiccu through optware? In which case for most people that's probably much harder to set up than DNS-o-matic like in the OP.

The fact that they can accuse you of using heartbeats too often sounds strange; aiccu is their software, so why wouldn't they design it to not call back too often or make the heartbeats themselves trivial...


I just checked and the aiccu binary seems to be included in dd-wrt. I think I had to enable jffs2 to create a non volatile place to store a configuration file for aiccu.
I think I started aiccu from one of the scripts you can create from the web interface.

I can't try again, I think I'm now banned for life from SixXS because I didn't immediately write a grovelling apologetic email to them.
mrlanrat
DD-WRT Novice


Joined: 24 Nov 2007
Posts: 20

PostPosted: Wed Jul 22, 2015 23:40    Post subject: Reply with quote
I'm having some trouble getting a HE tunnel working.
I followed all the instructions in the first post, but the router is unable to ping any ipv6 address not on the LAN.

I'm using DD-WRT v3.0-r27506 on a WZR-HP-AG300H. I'm wondering is I have a build with broken ipv6, but I'l like to rule out any misconfigurations first.

Does anyone know what might be wrong with this configuration?

Thanks.

Code:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         75.101.54.1     0.0.0.0         UG    0      0        0 eth1
75.101.54.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 br0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0


Code:
# route -n -A inet6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
2001:470:20::2/128                          ::                                      UC    0      1        0 ip6tun 
2001:470:66:796::/64                        ::                                      U     256    0        0 ip6tun 
2001:470:67:796::/64                        ::                                      U     256    0        0 br0     
2607:f8b0:4005:803::200e/128                ::                                      UC    0      4        1 ip6tun 
2000::/3                                    ::                                      U     1024   0        2 ip6tun 
fe80::/64                                   ::                                      U     256    0        0 br0     
fe80::/64                                   ::                                      U     256    0        0 eth0   
fe80::/64                                   ::                                      U     256    0        0 ath0   
fe80::/64                                   ::                                      U     256    0        0 ath1   
fe80::/64                                   ::                                      U     256    0        0 eth1   
::1/128                                     ::                                      U     0      1        1 lo     
2001:470:66:796::/128                       ::                                      U     0      0        1 lo     
2001:470:66:796::2/128                      ::                                      U     0      0        1 lo     
2001:470:67:796::/128                       ::                                      U     0      0        1 lo     
fe80::/128                                  ::                                      U     0      0        1 lo     
fe80::/128                                  ::                                      U     0      0        1 lo     
fe80::/128                                  ::                                      U     0      0        1 lo     
fe80::/128                                  ::                                      U     0      0        1 lo     
fe80::/128                                  ::                                      U     0      0        1 lo     
fe80::4b65:361a/128                         ::                                      U     0      0        1 lo     
fe80::b2c7:45ff:fe76:2ff6/128               ::                                      U     0      4        1 lo     
fe80::b2c7:45ff:fe76:2ff6/128               ::                                      U     0      0        1 lo     
fe80::b2c7:45ff:fe76:2ff6/128               ::                                      U     0      0        1 lo     
fe80::b2c7:45ff:fe76:2ff7/128               ::                                      U     0      0        1 lo     
fe80::b2c7:45ff:fe76:2ff7/128               ::                                      U     0      0        1 lo     
ff02::1/128                                 ::                                      UC    0      23       0 br0     
ff00::/8                                    ::                                      U     256    0        1 br0     
ff00::/8                                    ::                                      U     256    0        0 eth0   
ff00::/8                                    ::                                      U     256    0        0 ath0   
ff00::/8                                    ::                                      U     256    0        0 ath1   
ff00::/8                                    ::                                      U     256    0        0 eth1   
ff00::/8                                    ::                                      U     256    0        0 ip6tun 


Code:
# lsmod
Module                  Size  Used by
nf_nat_pptp             1492  0
nf_conntrack_pptp       3460  1 nf_nat_pptp
nf_nat_proto_gre         855  1 nf_nat_pptp
nf_conntrack_proto_gre     2765  1 nf_conntrack_pptp
ip6table_filter          612  1
nf_conntrack_ipv6       5268  2
ip6_tables              9488  1 ip6table_filter
nf_defrag_ipv6          8675  1 nf_conntrack_ipv6
nf_nat_h323             5044  0
nf_conntrack_h323      35104  1 nf_nat_h323
ipcomp6                 1796  0
xfrm_ipcomp             2749  1 ipcomp6
xfrm6_tunnel            2250  1 ipcomp6
xfrm6_mode_tunnel       1268  0
xfrm6_mode_transport      676  0
xfrm6_mode_ro            596  0
xfrm6_mode_beet         1332  0
ip6_tunnel             14585  0
tunnel6                 1610  2 xfrm6_tunnel,ip6_tunnel
mip6                    4644  0
ah6                     4852  0
esp6                    4804  0
xfrm_algo               3531  3 xfrm_ipcomp,ah6,esp6
sit                    11972  0
ip_tunnel              10271  1 sit
tunnel4                 1706  1 sit
ipv6                  258332  31 nf_conntrack_ipv6,nf_defrag_ipv6,ipcomp6,xfrm6_tunnel,xfrm6_mode_tunnel,xfrm6_mode_beet,ip6_tunnel,mip6,ah6,esp6,sit
ath9k                  87039  0
ath9k_common           28027  1 ath9k
ath9k_hw              342603  2 ath9k,ath9k_common
ath                    16283  3 ath9k,ath9k_common,ath9k_hw
mac80211              296875  2 ath9k,ath9k_hw
cfg80211              206336  4 ath9k,ath9k_common,ath,mac80211
compat                 10423  5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
ag71xx                 19621  0


Code:
# ps
  PID USER       VSZ STAT COMMAND
    1 root      1532 S    /sbin/init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u2:0]
    7 root         0 SW<  [khelper]
    8 root         0 SW   [kworker/u2:1]
   83 root         0 SW<  [writeback]
   86 root         0 SW<  [bioset]
   87 root         0 SW<  [crypto]
   89 root         0 SW<  [kblockd]
  116 root         0 SW   [kworker/0:1]
  123 root         0 SW   [kswapd0]
  124 root         0 SW   [fsnotify_mark]
  257 root         0 SW<  [deferwq]
  523 root       936 S    /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules --persistent
  562 root       964 S    /sbin/mstpd
  564 root      1772 S    watchdog
  600 root         0 SW<  [cfg80211]
  606 root         0 SW<  [kworker/0:1H]
  854 root         0 SW   [kworker/u2:2]
  857 root      2100 S    hostapd -B -P /var/run/ath0_hostapd.pid /tmp/ath0_hostap.conf
  883 root      2100 S    hostapd -B -P /var/run/ath1_hostapd.pid /tmp/ath1_hostap.conf
  943 root      1464 S    radvd -C /tmp/radvd.conf
  944 root      1464 S    radvd -C /tmp/radvd.conf
  963 root      1012 S    dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh
  972 root      1168 S    dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
 1098 root      1524 S    ttraff
 1186 root      4116 S    httpd -p 80
 1209 root      1724 S    resetbutton
 1508 root      1524 S    process_monitor
 1511 root      1564 S    upnp -D -W eth1
 1515 root      1748 S    wland
 1519 root      1188 S    udhcpc -i eth1 -p /var/run/udhcpc.pid -s /tmp/udhcpc -O routes -O msstaticroutes -O s
 1530 root       912 S    cron
 1537 root      1080 R    dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh
 1542 root      1192 S    -sh
 1676 root      1188 R    ps


Code:
# ifconfig
ath0      Link encap:Ethernet  HWaddr B0:C7:45:76:2F:F6 
          inet6 addr: fe80::b2c7:45ff:fe76:2ff6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:203 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:43296 (42.2 KiB)

ath1      Link encap:Ethernet  HWaddr B0:C7:45:76:2F:F7 
          inet6 addr: fe80::b2c7:45ff:fe76:2ff7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:43120 (42.1 KiB)

br0       Link encap:Ethernet  HWaddr B0:C7:45:76:2F:F6 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b2c7:45ff:fe76:2ff6/64 Scope:Link
          inet6 addr: 2001:470:67:796::/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3351 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3620 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1310575 (1.2 MiB)  TX bytes:1431084 (1.3 MiB)

br0:0     Link encap:Ethernet  HWaddr B0:C7:45:76:2F:F6 
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr B0:C7:45:76:2F:F6 
          inet6 addr: fe80::b2c7:45ff:fe76:2ff6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3351 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1357489 (1.2 MiB)  TX bytes:1431742 (1.3 MiB)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr B0:C7:45:76:2F:F7 
          inet addr:75.101.54.XX  Bcast:75.101.54.255  Mask:255.255.255.0
          inet6 addr: fe80::b2c7:45ff:fe76:2ff7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2170 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:655244 (639.8 KiB)  TX bytes:1224128 (1.1 MiB)
          Interrupt:5

ip6tun    Link encap:IPv6-in-IPv4 
          inet6 addr: fe80::4b65:361a/128 Scope:Link
          inet6 addr: 2001:470:66:796::2/64 Scope:Global
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:16065 (15.6 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MULTICAST  MTU:65536  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1018 (1018.0 B)  TX bytes:1018 (1018.0 B)
bdg2
DD-WRT User


Joined: 18 Apr 2013
Posts: 319

PostPosted: Thu Jul 23, 2015 22:39    Post subject: Reply with quote
mrlanrat wrote:
I'm having some trouble getting a HE tunnel working.
...


I don't understand much of that but I found I needed the tunnel MTU to be 40 bytes less than the MTU of my IPv4 connection. Your's seems to me 1480 which, I think, is too high.
mrlanrat
DD-WRT Novice


Joined: 24 Nov 2007
Posts: 20

PostPosted: Thu Jul 23, 2015 23:52    Post subject: Reply with quote
I just tried lowering my MTU, it did not seem to have any affect.
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 5 of 7
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum