Pritunl Tutorial

Pritunl
Pritunl
Oct 1, 2015 · 3 min read

Connect to IPv6 over IPv4 with Pritunl

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 a droplet with the settings below and copy the text below to the user data field. This will automatically install Pritunl to the server.

Image for post
Image for post
#!/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

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.

Image for post
Image for post

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.

Image for post
Image for post

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.

Image for post
Image for post

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.

Image for post
Image for post

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

Pritunl Tutorials

Tutorials for Pritunl VPN Server

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store