Skip to content

Instantly share code, notes, and snippets.

@feczo
Last active June 6, 2018 09:37
Show Gist options
  • Save feczo/67f27187ef0f8205f91fbdc1a27e5dc2 to your computer and use it in GitHub Desktop.
Save feczo/67f27187ef0f8205f91fbdc1a27e5dc2 to your computer and use it in GitHub Desktop.

This takes about 15 minutes to set up all steps inclusive server/client.

  1. GCP VM with CoreOS (or any docker capable) image + network / firewall config
  2. install server image https://hub.docker.com/r/johnae/pritunl/
    sudo echo -n >/etc/systemd/resolved.conf && systemctl stop systemd-resolved
    docker pull johnae/pritunl
    docker run -d --privileged -p 53:53/udp -p 53:53/tcp -p 443:443/tcp johnae/pritunl
    docker ps
    docker exec -it $HEXA /bin/bash

ps uaxw | grep pitunl
kill -9 $PID

vi /etc/pritunl.conf # change admin port to 443
/usr/bin/pritunl start --daemon --pidfile /var/run/pritunl.pid

  1. configure server as per docs at https://docs.pritunl.com/docs/connecting
    on https://$VM_PUBLIC_IP
    default l/p: pritunl:pritunl
    change default pass :0)

just in case: https://docs.pritunl.com/docs/commands#section-unset
pritunl reset-password

  1. download the client https://client.pritunl.com/

  2. copy last link from server on the user page as per https://docs.pritunl.com/docs/connecting#section-downloading-user-profile
    from the last box "Temporary uri link for Pritunl Client, expires after 24 hours" to the client "Import profile URI"
    connect -> magic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment