![]() |
HE IPv6 Tunnel for OpenVZ Containers - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials) +--- Thread: HE IPv6 Tunnel for OpenVZ Containers (/Thread-HE-IPv6-Tunnel-for-OpenVZ-Containers) |
HE IPv6 Tunnel for OpenVZ Containers - Conan - 09-12-2015 HE IPv6 Tunnel for OpenVZ Containers Want to have IPv6 on your VPS but your hosting company doesn't provide one? Want to be future proof your server or let IPv6 users access your website over IPv6? Then read my guide! This will teach you how to use the HE tunnel on your OpenVZ container without contacting your host for IPv6 IPs! NOTE: Refer to https://freevps.us/thread-16343-post-188783.html#pid188783 for systemd Distros (CentOS 7/Debian 8/ETC.) Requirements: TUN/TAP Adapter Enabled iproute gcc Almost any Linux OS First, you need to register on Hurricane Electric (Obviously). URL: https://tunnelbroker.net/register.php ![]() Once you are finished registering, you can move now on to the next step. Then, Lets start creating our tunnel. URL: https://tunnelbroker.net/new_tunnel.php First, Input your Server IP Address in the text box. ![]() Next, Find the Tunnel Server that is closest to the location of your OpenVZ server. (I'd recommend you to ping it, then ping the others and find the one with the lowest latency) ![]() Next, the most exciting part, the part where we connect it! All the Info we need from that page is: Server IPv4 Address [font=arial, sans-serif]Client IPv4 Address[/font] [font=arial, sans-serif][font=arial, sans-serif]Client IPv6 Address[/font][/font] [font=arial, sans-serif][font=arial, sans-serif][font=arial, sans-serif]Routed /64[/font][/font][/font] [font=arial, sans-serif][font=arial, sans-serif][font=arial, sans-serif] ![]() [font=arial, sans-serif][font=arial, sans-serif][font=arial, sans-serif]We need to compile and install a tiny program that we will use to tunnel[/font][/font][/font] Code: cd ~ #Lets Go to our home Dir Code: nano /etc/init.d/ipv6hetb Code: #!/bin/bash An example of the settings would be here Spoiler Expand Then we should make it executable then run the service! Code: chmod +x /etc/init.d/ipv6hetb Now we have IPv6 on our server! Now lets verify it using Code: ifconfig Lets try pinging an IPv6 Server! Code: ping6 -c 4 google.com Now, on to adding IPv6 to Nginx Nginx: We just need to add this to our server block Code: listen [::]:80; A typical example for the server block would be Spoiler Expand Apache Users: I intentionally didn't add this because I don't use Apache lol Thanks to 4810 I used some of his guides as a "template" (Not literally) for making this RE: HE IPv6 Tunnel for OpenVZ Containers - Conan - 09-16-2015 I'm gonna try updating it later with info from your post. RE: HE IPv6 Tunnel for OpenVZ Containers - Conan - 09-22-2015 Here is a simple installation script that I made Just run this command to install ipv6 tunneler NOTES: Run it as root (It checks the user though) You should have TUN/TAP Enabled (I think the tun/tap checking works) NOTE: init.d systems only (Not tested since I don't have an available OpenVZ system to mess with. (Still adding a tun/tap adapter on my KVM vps)) Code: wget https://dev.1conan.com/workspace/ShellScripts/ipv6hetb.sh --no-check-certificate && bash ipv6hetb.sh This should probably work on a CentOS 6 System Please use at your own risk This shouldn't do any harm to your VPS. It only adds 2 files which you can delete to reverse it. RE: HE IPv6 Tunnel for OpenVZ Containers - Unixfy - 09-27-2015 (09-22-2015, 03:20 PM)Conan Wrote: Here is a simple installation script that I made If you wanna mess with an OpenVZ VPS I have one from Layer.ae. I'll be wiling to give you the panel details if you wanna mess around with it. RE: HE IPv6 Tunnel for OpenVZ Containers - Conan - 09-28-2015 (09-27-2015, 08:13 PM)karatekidmonkey Wrote:(09-22-2015, 03:20 PM)Conan Wrote: Here is a simple installation script that I made It needs an IPv4 address since this tutorial ads a 6in4 tunnel. An IPv6-only VPS would be useless for this script. It should work. IDK my KVM VPS had some problems. RE: HE IPv6 Tunnel for OpenVZ Containers - Unixfy - 09-28-2015 Yeah, it is IPv6 only....I have too many KVM boxes. I was going to buy an OpenVZ box soon from HostUS but that went down once the promo was over. I'll go search around in my LastPass vault and see if I can dig up any more panel login details. Sorry about that. EDIT: There are some trial VPSs on FreedomainClub as well as FreeVPS. Like: https://freevps.us/thread-16979.html RE: HE IPv6 Tunnel for OpenVZ Containers - KBStorm - 09-29-2015 (09-16-2015, 10:42 PM)Conan Wrote: I'm gonna try updating it later with info from your post. It's not too hard to setup an IPv6 tunnel inside an OpenVZ container. RE: HE IPv6 Tunnel for OpenVZ Containers - Conan - 09-29-2015 (09-29-2015, 06:01 AM)KBStorm Wrote:(09-16-2015, 10:42 PM)Conan Wrote: I'm gonna try updating it later with info from your post. No one is asking you. This was meant to make it easier. Adding 6in4 tunnels on OpenVZ isn't as easy as adding it on a KVM/Dedicated server. RE: HE IPv6 Tunnel for OpenVZ Containers - Unixfy - 09-29-2015 (09-29-2015, 10:26 AM)Conan Wrote:(09-29-2015, 06:01 AM)KBStorm Wrote:(09-16-2015, 10:42 PM)Conan Wrote: I'm gonna try updating it later with info from your post. Yes, I have to agree with that. Tried it with both my ZXPlay box as well as VisiChat's free trial VPS, the KVM one was definitely easier ![]() |