Pritunl is the most secure VPN server available and the only VPN server to offer up to five layers of authentication.
from pritunl.com
To be able to make all of the Pritunl configurations persistent, a Docker volume is required to store the MongoDB data.
Creating volumes can be done using the docker
tool. Two create a volume for
the MongoDB data use the following command:
docker volume create --name pritunl_mongodb
Note: A local folder can also be used instead of a volume. Use the path to the folder in place of the volume name.
Starting the Pritunl server can be done with the folowing command.
docker container run --volume pritunl_mongodb:/data/mongodb:rw --detach --publish 1194:1194/udp --publish 1194:1194 --publish 443:443 --privileged --device=/dev/net/tun moveyourdigital/pritunl
The Docker options --privileged
and--device=/dev/net/tun
are required for
the container to be able to start.
Note: Replace pritunl_mongodb
with the full path of a local folder to use
that instead of a volume.
To use an external MongoDB server, instead of the internal one, the MongoDB
address will have to be specified using the environment variable MONGODB_URI
.
docker container run --env MONGODB_URI=mongodb://address:port/db_name --detach --publish 1194:1194/udp --publish 1194:1194 --publish 443:443 --privileged --device=/dev/net/tun moveyourdigital/pritunl
To access the Pritunl administration console open a web browser on your
computer, and navigate to https://PRITUNL_ADDRESS
Login with the following information:
- Username:
pritunl
- Password:
pritunl
The Pritunl server status can be check by looking at the server output using the following docker command:
docker container logs CONTAINER_ID