Pritunl Tutorial

Connect to IPv6 over IPv4 with Pritunl


Introduction

This tutorial will show you how to connect your IPv4 computer to the IPv6 internet with Pritunl and DigitialOcean. DigitalOcean does not offer routed IPv6 subnets so NAT will be used. It is also possible to obtain a public IPv6 address for each VPN client using Linode which offers a routed IPv6 subnet. More information on using a routed IPv6 subnet with Linode can be found in the Routed IPv6 VPN Server with Linode tutorial.

Create Droplet

Create a droplet with the settings below and copy the text below to the user data field. This will automatically install Pritunl to the server.

#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.0.list
echo "deb http://repo.pritunl.com/stable/apt trusty main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7F0CEB10
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
service pritunl start

Configure Pritunl

More information on setting up a new Pritunl server can be found in the Getting Started tutorial. When IPv6 is added to your Droplet an IPv6 address should be shown in the Initial Setup dialog.

Create IPv6 VPN Server

When creating a VPN server select Enable IPv6 in the Add Server dialog. This will allow clients to connect over IPv6 and also all IPv4 clients to access the IPv6 internet.

Connect and Test

After the server is created, download your profile and connect to the server. This can be done by opening the Google IPv6 Test, if IPv6 is working the message below will be shown.

To allow IPv6 to function properly an IPv6 dns server must also be used. This will be done automatically but some computers will ignore the dns servers sent by the VPN server or have a static dns server configured which will override the VPN dns server. Check the network settings of your computer and ensure it is using an IPv6 dns server if not Google’s dns service can be used by adding 2001:4860:4860::8888 as your dns server.

@pritunl

Follow Pritunl on Twitter | Find us on GitHub | Subscribe to our mailing list