Openwrt + goagent + IPv6 free Internet access

Source: Internet
Author: User
Tags goagent

I recently moved back to my apartment. The apartment has a free IPv6 network, but IPv4 is charged. If I want to go back to the apartment at night, I will go online on my mobile phone. If I have a computer, I can connect to the lab machine remotely. Considering this demand, therefore, we consider using IPV6 + goagent + openwrt.

Hardware: TP-link wr841n Router

Software: openwrt latest version (kernel version 3.3.8), goagent 1.8.11

Steps:

1. Install IPv6 in openwrt. Follow the instructions in http://wiki.openwrt.org/doc/howto/4106to install IPv6,

opkg install kmod-ipv6 radvd ip kmod-ip6tables ip6tables

2. Set the IPv6 address. Restart the network. If you do not know why, the IPv6 address of the router cannot be automatically obtained (you do not know why). You need to manually set scope: Global. First, run the ifconfig command in openwrt, obtain the IPv6 address of the current scope: link as follows:

inet6 addr: fe80::5e63:bfff:fefe:43b3/64 Scope:Link

Then, edit the Wan section under/etc/config/network and add the following lines according to the above results:

option 'ip6addr' '2001:cc0:2026:1400:5e63:bfff:fefe:43b3/64'

The 2001: cc0: 2026: 1400 parts of the network will be different, similar to the network segment in IPv4; the latter part is the same as the scope: link address.

3. Set the IPv6 gateway. Here, I started to make a mistake and kept wondering why I couldn't ping the same IPv6 address. Later I found that I manually set the IPv6 address and didn't set the corresponding IPv6 gateway, the IPv6 gateway can be obtained through tracert-6 ipv6.google.com in Windows 7, where the first IPv6 address (the first hop) appears is the IPv6 gateway. The setting command is as follows:

route -A inet6 add ::/0 gw 2001:cc0:2026:1400:3a22:d6ff:febf:900

After setting, you can ping6 ipv6.google.com to test whether the operation is successful.

4. Install goagent. There are many tutorials on the Internet. Note that the goagent version must be the latest version. I started using the old version and found that IPv6 support is poor in Linux, an error always occurs during connection. download the latest version (1.8.11) and modify the corresponding appid and IP address to Solve the Problem smoothly.

5. A proxy client is installed on the mobile phone. The IP address is set to the vro IP address and the port is set to the corresponding goagent address, so that the Internet can be smoothly accessed.

PS: IPv6 is too slow to connect to the Google IPv6 server, with a latency of 400 ms. The IPv4 address in China connected to Google has a latency of only 4 ms, but the mobile phone is connected to the Internet!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.