HOW TO: IPv6, 6in4 tunnel for begginers

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


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu Dec 18, 2014 19:51    Post subject: HOW TO: IPv6, 6in4 tunnel for begginers Reply with quote
What is 6in4 tunnel?
Quote:
6in4 is an Internet transition mechanism for migrating from Internet Protocol version 4 (IPv4) to IPv6.
6in4 uses tunneling to encapsulate IPv6 traffic over explicitly-configured IPv4 links as defined in RFC 4213 (obsoletes RFC 2893 and RFC 1933).


In another words, if you only get IPv4 from your ISP, but you want to be able to reach IPv6 sites, 6in4 is one of your solutions.
It is simple and free with a just few of clicks in ddwrt GUI:)

1st) You need to create your account at Hurricane Electric Free IPv6 Tunnel Broker


After creating an account, return back to main page to create a tunnel

Choose your nearest location

Click on newly created account

Now, setup your ddwrt and enable radvd

note your MTU settings (see your Basic setup page too)

about MTU you can read here
you need to accept ping (icmp protocol) from HE server. So save it as your firewall rule.
Code:
iptables -I INPUT 2 -s 66.220.2.74 -p icmp -j ACCEPT


If your ISP provides you dynamic IP than you need to update it on HE. I use DNS-O-MATIC

for that read HOW TO

Now if everything is alright you should ping google from your PC (win7) command prompt
Code:
ping -6 ipv6.google.com


special thanks to JAMESMTL
Sponsor
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Thu Dec 18, 2014 20:24    Post subject: Reply with quote
ill favorite this & try it again soon i tried it before but gave up cause earlier builds had crap ipv6 in gui before it was updated & i dont know ipv6 whatsoever, what alien planet did ipv6 come from anyway..

this doesnt break regular ipv4 (ie: "dd-wrt.com") right>

add this to ddwrt ipv6 wiki?

_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55488 std
[QUALCOMM] DIR-862L --------------------------------> r55460 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

rkaede
DD-WRT User


Joined: 06 Aug 2009
Posts: 99

PostPosted: Fri Dec 19, 2014 1:02    Post subject: Reply with quote
my ISP used to provide DHCPv6. no settings whatsoever.
let me try this guide. i think wiki is a good idea. the ipv6 wiki more on CLI based at the moment. Cool

_________________
WZRHPG300NH - DDWRT v26854

ASUS AC68U merlin fw
Linksys EA6700 - factory firmware - sold
DD-WRT v3.0 --- 27506
r25408
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Fri Dec 19, 2014 7:27    Post subject: Reply with quote
@tatsuya46
No, it doesn't break IPv4. In the right corner (ddwrt GUI) you will see IPv4 and IPv6 adress. Router will tunnel only IPv6 requests to your broker... IPv4 requests will work as ussual. But IPv6 sites loads very, very fast...
About wiki... English is not my "mother language", so it is very hard for me to write in english... We spoke earlier about this. This kind of writing is not for wiki IMO. I will do tutorials for Guest VAP, Hotspot (I am using it at the moment) and QoS... Maybe we should put only links on wiki? I could give you my credentials if you are willing to do corrections (review, critique)...
@rkaede
see special thanks at the bottom of the post. There is a link on Broadcom part of forum... they use native ipv6, and 6in4 for some time...
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Fri Dec 19, 2014 7:31    Post subject: Reply with quote
dont need login, wikis are editable by any registered user
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55488 std
[QUALCOMM] DIR-862L --------------------------------> r55460 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

rkaede
DD-WRT User


Joined: 06 Aug 2009
Posts: 99

PostPosted: Fri Dec 19, 2014 7:43    Post subject: Reply with quote
have u heard some word says.

"Picture tells a thousand words ? "

Laughing

your screenshoot is enough for the whole thing to be honest.

_________________
WZRHPG300NH - DDWRT v26854

ASUS AC68U merlin fw
Linksys EA6700 - factory firmware - sold
DD-WRT v3.0 --- 27506
r25408
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11563
Location: Wherever the wind blows- North America

PostPosted: Fri Dec 19, 2014 16:01    Post subject: Reply with quote
Stickied for now

redhawk

_________________
The only stupid question....is the unasked one.
praetor
DD-WRT Novice


Joined: 28 Jan 2011
Posts: 8

PostPosted: Sat Dec 20, 2014 18:22    Post subject: Reply with quote
Is this available across all models? I only ask because I just upgraded my Netgear WNDR3700v1 to 25648 after seeing this and I only have "Static DNS 1" "Static DNS 2" and "MTU" as an option after changing IPv6 type to 6in4 Static Tunnel. I tried different browsers and clearing cache with no luck.
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Sat Dec 20, 2014 20:36    Post subject: Reply with quote
save settings then more will appear
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55488 std
[QUALCOMM] DIR-862L --------------------------------> r55460 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

danis
DD-WRT Novice


Joined: 22 Sep 2010
Posts: 25
Location: Toronto, Ontario

PostPosted: Sun Dec 21, 2014 12:30    Post subject: Reply with quote
nice guide.

I posed something similar a couple weeks before this how-to guide in the Broadcom section

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=276839
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Tue Dec 23, 2014 11:05    Post subject: Reply with quote
not working, i followed the image & filled in everything where the lines were pointing. cant load or ping ipv6 anything, but if i do ping -6 ipv6.google.com from telnet to the router i get responses..

the pc isnt getting any ipv6 gateway or dns from the router

edit: nevermind, i disabled ipv6 & i can still ping ipv6.google.com from router telnet..? im confused

_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55488 std
[QUALCOMM] DIR-862L --------------------------------> r55460 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Tue Dec 23, 2014 11:36    Post subject: Reply with quote
Probably router DHCPv6 is not working...
Did you enabled radvd? try dhcp6s... This tutorial was from 25648... and there was some ipv6 changes on svn after that... Look at syslog too to see if radvd is working...
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Tue Dec 23, 2014 11:38    Post subject: Reply with quote
Code:
route -n


and

Code:
lsmod


and

Code:
ps


and

Code:
ifconfig


can tell you is your tunnel workin...
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Tue Dec 23, 2014 11:41    Post subject: Reply with quote
and read this http://support2.microsoft.com/kb/929852
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Tue Dec 23, 2014 19:50    Post subject: Reply with quote
Mile-Lile wrote:
Code:
route -n


and

Code:
lsmod


and

Code:
ps


and

Code:
ifconfig


can tell you is your tunnel workin...


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ath0
10.150.10.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
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 ath0

Module Size Used by
nf_nat_pptp 1460 0
nf_conntrack_pptp 3372 1 nf_nat_pptp
nf_nat_proto_gre 762 1 nf_nat_pptp
nf_conntrack_proto_gre 2780 1 nf_conntrack_pptp
xfrm6_mode_tunnel 1296 0
xfrm6_mode_transport 716 0
xfrm6_mode_beet 1356 0
ip6_tunnel 16104 0
tunnel6 1512 1 ip6_tunnel
sit 12836 0
ip_tunnel 10364 1 sit
tunnel4 1640 1 sit
ipv6 282741 25 xfrm6_mode_tunnel,xfrm6_mode_beet,ip6_tunnel,sit,[permanent]
nf_nat_h323 4732 0
xt_DSCP 1440 0
nf_conntrack_h323 33668 1 nf_nat_h323
ath9k 84556 0
ath9k_common 27628 1 ath9k
ath9k_hw 322376 2 ath9k,ath9k_common
ath 16064 3 ath9k,ath9k_common,ath9k_hw
mac80211 278760 2 ath9k,ath9k_hw
cfg80211 185272 4 ath9k,ath9k_common,ath,mac80211
compat 540 4 ath9k,ath9k_common,mac80211,cfg80211

PID USER VSZ STAT COMMAND
1 root 1812 S /sbin/init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW< [kworker/0:0H]
7 root 0 SW< [khelper]
8 root 0 SW< [writeback]
9 root 0 SW< [crypto]
10 root 0 SW< [bioset]
11 root 0 SW< [kblockd]
14 root 0 SW [kswapd0]
15 root 0 SW [fsnotify_mark]
29 root 0 SW< [ffe07000.spi]
37 root 0 SW< [deferwq]
38 root 0 SW [kworker/0:2]
385 root 800 S /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules
388 root 848 S /sbin/mstpd
428 root 0 SW< [cfg80211]
434 root 0 SW< [kworker/0:1H]
496 root 2052 S watchdog
19253 root 0 SW [kworker/u2:0]
19872 root 0 SW [kworker/u2:1]
22300 root 0 SW [kworker/0:1]
23690 root 0 SW [kworker/u2:2]
23921 root 0 SW [kworker/0:0]
24209 root 0 SW< [ipv6_addrconf]
24347 root 2284 S hostapd -B -P /var/run/ath0_hostapd.pid /tmp/ath0_ho
24349 root 2284 S wpa_supplicant -B -Dnl80211 -iath0 -H /var/run/hosta
24368 root 2292 S hostapd -B -P /var/run/ath1_hostapd.pid /tmp/ath1_ho
24421 root 1284 S telnetd
24438 root 784 S cron
24440 root 988 S dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.con
24486 root 772 S pptpd -c /tmp/pptpd/pptpd.conf -o /tmp/pptpd/options
24494 root 1808 S ttraff
24508 root 2660 S startstop_f run_rc_startup
24591 root 2012 S resetbutton
24903 root 4668 D httpd -p 80
25019 root 908 S dhcp6s -c /tmp/dhcp6s.conf -D br0
25163 root 1808 S process_monitor
25167 root 1664 S inadyn -u tatsuya46 -p ****** --input_file /tmp/ddns
25453 root 1764 S upnp -D -W ath0
25710 root 2036 S wland
25711 root 1296 S udhcpc -i ath0 -p /var/run/udhcpc.pid -s /tmp/udhcpc
25841 root 1288 S /bin/sh -c alias ping='ping -c 3'; eval /tmp/psuot;
25844 root 1288 R ps
25845 root 1740 S /sbin/ledtool 1

ath0 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:F9
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a2f3:c1ff:fef8:5bf9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2296 errors:0 dropped:0 overruns:0 frame:0
TX packets:1757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000

RX bytes:1503232 (1.4 MiB) TX bytes:478555 (467.3 KiB)
ath0.1 Link encap:Ethernet HWaddr A2:F3:C1:F8:5B:F9
inet6 addr: fe80::a0f3:c1ff:fef8:5bf9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:427 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:84516 (82.5 KiB)
ath1 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:F8
inet6 addr: fe80::a2f3:c1ff:fef8:5bf8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:976 errors:0 dropped:0 overruns:0 frame:0
TX packets:1049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000

RX bytes:137325 (134.1 KiB) TX bytes:366744 (358.1 KiB)
ath1.sta3 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:F8
inet6 addr: fe80::a2f3:c1ff:fef8:5bf8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000

RX bytes:4824 (4.7 KiB) TX bytes:79095 (77.2 KiB)
br0 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:F7
inet addr:10.150.10.1 Bcast:10.150.10.255 Mask:255.255.255.0
inet6 addr: 2001:470:1f17:cc::/64 Scope:Global
inet6 addr: fe80::a2f3:c1ff:fef8:5bf7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4924 errors:0 dropped:0 overruns:0 frame:0
TX packets:6943 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

RX bytes:711384 (694.7 KiB) TX bytes:6861151 (6.5 MiB)
br0:0 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:F7
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 00:04:9F:EF:01:01
inet6 addr: fe80::204:9fff:feef:101/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61587 errors:0 dropped:0 overruns:0 frame:0
TX packets:107165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000

RX bytes:15446647 (14.7 MiB) TX bytes:80012243 (76.3 MiB)
Base address:0xc000
ip6tun Link encap:IPv6-in-IPv4
inet6 addr: fe80::c0a8:106/64 Scope:Link
inet6 addr: 2001:470:1f16:cc::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:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

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:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

RX bytes:6241 (6.0 KiB) TX bytes:6241 (6.0 KiB)
vlan1 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:F7
inet6 addr: fe80::a2f3:c1ff:fef8:5bf7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57475 errors:0 dropped:1 overruns:0 frame:0
TX packets:94367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

RX bytes:13434557 (12.8 MiB) TX bytes:76201207 (72.6 MiB)
vlan2 Link encap:Ethernet HWaddr A0:F3:C1:F8:5B:FA
inet6 addr: fe80::a2f3:c1ff:fef8:5bfa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12790 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:3381640 (3.2 MiB)


enabled dhcp6s it didnt do anything, enabled dhcp6c (whats the difference?) still didnt do anything. ipv6 is installed & enabled on the pc

_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55488 std
[QUALCOMM] DIR-862L --------------------------------> r55460 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

Goto page 1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 1 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