Control Web Panel

Developers => I can build it => Topic started by: darkness on March 09, 2017, 10:20:44 PM

Title: IPv6 configuration for CentOS 6.8 (Final)
Post by: darkness on March 09, 2017, 10:20:44 PM
Ok guys,
Here`s something I`d like to share with you. It`s an IPv6 configuration script for CentOS 6.8 (Final) to make it easy to have IPv6 tunnel on your server. At the moment this is version 0.1 which can only add the IPv6 tunnel configuration to your already running CentOS server. As a first version it`s simple and fast, also has it`s bad sides like: after every reboot you need to run the script again to re-config your IPv6. But this is what I did in 15min with 39 degs temp. In the next version I`m planning to include ping to ipv6.google.com through the script, adding IPv6 addresses through it. In version 0.3 or 0.4 I`ll try to make it able to config your web server, email server, DNS forward and reverse. Just I need time because I`m very busy and atm I`m a bit sick.
Ok, stop fooling you around.
1. Download the script from http://www.born2host.com/born2host.zip (http://www.born2host.com/born2host.zip) and put it in /usr/local/cwpsrv/htdocs/resources/admin/modules
2. Unzip it with "unzip born2host.zip"
3. Open /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php and add:
3.1 <li><a href="index.php?module=born2host_ipv6"><span class="icon16 icomoon-icon-arrow-right-3"></span>IPv6 Configuration</a></li>
4. Create account in http://www.tunnelbroker.net (http://www.tunnelbroker.net)
5. Log in to your account in tunnelbroker.net
6. Go to User Functions -> Create Regular Tunnel
7. Enter the IPv4 address of the server(your CentOS 6.8 server)
8. Choose one of the available tunnel servers (ping the all one by one and choose the one with less time=... ms)
9. Click on your tunnel to open Tunnel Details
10. Login with root to your CWP and head up to Developer Menu -> IPv6 Configuration
11. From Tunnel Details grab "Server IPv4 Address:" which is normally 216.66.87.14 and paste it in the script in the field called "Please provide your tunnel broker IPv4:   "
12. From Tunnel Details grab "Client IPv6 Address: " which normally starts with 2001:470:xxxx:xx::2/64 (don`t forget to copy it with the /64) and paste it in the script in the field called "Please provide your IPv6 tunnel:"
13. Press "Add IPv6" button
14. Login through SSH to your CentOS server and type: ping6 -c 5 ipv6.google.com If everything is ok you will see something similar to this:
Code: [Select]
[root@msi ~]# ping6 -c 5 ipv6.google.com
PING ipv6.google.com(waw02s05-in-x0e.1e100.net) 56 data bytes
64 bytes from waw02s05-in-x0e.1e100.net: icmp_seq=1 ttl=57 time=62.3 ms
64 bytes from waw02s05-in-x0e.1e100.net: icmp_seq=2 ttl=57 time=63.1 ms
64 bytes from waw02s05-in-x0e.1e100.net: icmp_seq=3 ttl=57 time=61.7 ms
64 bytes from waw02s05-in-x0e.1e100.net: icmp_seq=4 ttl=57 time=61.0 ms
64 bytes from waw02s05-in-x0e.1e100.net: icmp_seq=5 ttl=57 time=63.1 ms

--- ipv6.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4068ms
rtt min/avg/max/mdev = 61.079/62.302/63.156/0.796 ms
[root@msi ~]#
If you see something similar to this you are done and have fun.
If you have any problems activating IPv6 tunnel support feel free to ask(may be you don`t have IPv6 support enabled on your server or something else).
(http://www.born2host.com/IPv6.png) <- check this picture just in case to be sure what to copy and paste from tunnelbroker.net to the script.

Oh yeah. By the way the script is encoded with ionCube Encoder for PHP 5.6.x