Posts tagged router

IPV6 Ready Home Network

0

The ipv6 era has come.  Now it seems that Facebook and all the services in Google have implemented IPV6 connectivity.  I know China Tel always trying to block users from IPV6.  Microsoft Teredo server seems down here.  To integrate my home network with IPV6, A tunnel broker is a good choice.

 

First, make sure all the devices you own are IPV6 capable.  An openwrt Router is preferred.  Linux desktops is recommended (Only Linux can update the DNS record from radvd RDNSS).  Windows 7/Vista is acceptable.(They only accept DHCPv6 for DNS update).  Windows XP or earlier version is unacceptable.  Mac OS X 10.6.8 or higher is recommended.

 

The whole article aims to provide IPV6 through Router using tunnel broker.

 

1. As a Hurricane Electric Certified Sage, I recommend tunnel broker provided by HE.  Register your account and create a regular tunnel here.

2.Install the essential modules on Openwrt Router.  I installed: ip, kmod-ipv6, kmod-sit, radvd, dibbler, curl.  Here I use radvd for Router Advertisement and dibbler for DHCPv6.  dibbler is somewhat big.  If you prefer ISC DHCPv6 or wide DHCPv6, that is OK.  curl is for update my tunnel Endpoint IP address cuz my Router is under Dynamic Address Allocation over PPPoE.

3.Bring the router to the IPV6 network.

This is a shell script for me to add my router to IPV6 Network.

username=xxxxxx

password=xxxxxx

tunnelid=xxxxxx

curl --insecure https://$username:$password@ipv4.tunnelbroker.net/ipv4_end.php?tid=$tunnelID

# Here I use --insecure for not verifying the server certification.  or you can use --cacert to specify the CA file

myip=$(ifconfig|grep -A2 'pppoe-wan'|grep 'inet addr:'|cut -d: -f2 |awk '{ print $1}')

myv6ip=2001:470:c:1376::2/64

server=66.220.18.42

ip tunnel add he-ipv6 mode sit remote $server local $myip ttl 255

ip link set he-ipv6 up

ip addr add $myv6ip dev he-ipv6

ip route add ::/0 dev he-ipv6

If everything is fine you can ping ipv6.google.com on your router now.

 

4.Because my Allocated Routed /64 is 2001:470:d:1376::/64 (be aware, the prefix is different from the address your router get, here is a d, not a c).  This /64 block is for my home network, so I route it to the lan.

ip -6 route add 2001:470:d:1376::/64 dev br-lan

5.Configure /etc/config/radvd and /etc/dibbler/server.conf for Router Advertisement and DHCPv6.  The configuration I am using is:

/etc/config/radvd:

config interface
option interface        'lan'
option AdvSendAdvert    1
option AdvManagedFlag   1
option AdvOtherConfigFlag 0
option ignore           0

config prefix
option interface        'lan'
# If not specified, a non-link-local prefix of the interface is used
option prefix           '2001:470:d:1376::/64'
option AdvOnLink        1
option AdvAutonomous    1
option AdvRouterAddr    0
option ignore           1

config rdnss
option interface        'lan'
# If not specified, the link-local address of the interface is used
option addr             '2001:470:20::2'
option ignore           1

/etc/dibbler/server.conf:

log-level 8
log-mode short
preference 0
iface "br-lan" {
// also ranges can be defines, instead of exact values  t1 1800-2000  t2 2700-3000
prefered-lifetime 86400
valid-lifetime 172800
class {
pool 2001:470:d:1376::/64
}
option dns-server 2001:470:20::2
}

6.Enable ipv6 forwarding in /etc/sysctl.conf

net.ipv6.conf.all.forwarding=1

7.After everything finished, just enjoy the IPV6 in your home network.

P.S.  If  you disable IPV4 on your laptop, it will lead your laptop to IPV6 only network.  At least in IPV6 only network Facebook and all services Google providing are accessible.

L2TP over IPV6 Router

0

I posted l2tp over ipv6 before. It is a patch file for xl2tpd from Cheng Li, which enable xl2tpd working under ipv6 network for Windows Vista/7 VPN Clients.

And this is the openwrt firmware for buffalo whr-hp-g54 from Cheng Li which includes the hacked xl2tpd. After flashed the hacked firmware, buffalo whr-hp-g54 can connect l2tp server under IPV6.

I just bought Linksys WRT54GS v3. Hope it works.

These are the links you may concern:

Blog Post: L2tp over IPV6 in Linux
Hacked buffalo firmware

P.S.  It is really easy to compile your own openwrt firmware.  Just put the patch file into the patch folder of xl2tpd in the openwrt source code, change its file name and make sure it would be patched at last.  The makefile should be modified cuz the patch file is only for xl2tpd 1.2.4.

May Brother Chun Shines on You

0

I tried to equip dd-wrt or open-wrt with static router list and PPTP tunnel.  I failed due to limited knowledge.  Today I surprisedly found a new google code project: autoddvpn was established, which is an auto shell script designed for dd-wrt.  It is really a great project. You can find the project by searching its name on google code.  I am afraid I cannot provide the link due to the well-known reason.

I have an advertisement for my equipped router:  The package is guided, the privacy is guarded, and the speed is guaranteed, by the holy lord of God, Brother Chun.  May Brother Chun Shines on You.

Chinatel finished IPV6?

6

Today I tried to find Office 2010 setup program but couldn’t get a satisfying one. After I trying searching in Google, emule, an idea came into my mind that, could IPV6 work?  It was really astonishing when I found I can access ipv6 behind my router, TP-Link WRT54G.  I bought a new router, reflashed it into OpenWRT in order to welcome IPV6 era.  However, my old router had supported IPV6.  What happened!

OK, I connected to Fudan pt, downloaded the torrent file and started it into utorrent.  Connections over IPV6 are really slow, which are about 2-3KB/s.  Luckily someone connecting to pt is also connecting to IPV4, who uploads me the Office file rapidly, about 220KB/s.

I tried to test the ipv6 connection of Chinatel.  I sshed my server with its ipv6 address and successfully logged in.  Now I think Chinatel is really IPV6 ready.  The slow speed is just because Chinatel limited it.  Maybe IPV6 will come into our life soon.  I am lusting for that!

Latest news: It turns out that it is not that ChinaTel finished IPV6, but Microsoft Teredo is on by default.

dd-wrt is suffering

0

I am mad at my new router.

I tried to buy a dd-wrt based router which can use my vps pptp service.  I am assumed that it can use adsl and pptp at the same time and choose the line with the route list.  However, after the pptp connection established I cannot transfer data in the pptp tunnel.  I tried to configure dd-wrt and vps but failed.  The dd-wrt is far away from linux now as a result in the weak-functioned command line.

I am now thinking about openwrt, a pure linux-based router system as a substitute.  But all the routers I like are too expensive, which are more than 400 RMB in price.  I will make the tough decision.

P.S.  I hope my new router will fully support ipv6.  Because I am used to enjoy IPV6 life now.

Go to Top