Skip to content

xtrime-ru/antizapret-vpn-docker

Repository files navigation

antizapret-vpn-docker

Easy-to-start docker container with antizapret-vpn for selfhosting.

About

Docker image converted from original LXD image.

Installation

  1. Install docker

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
  2. Copy this repository, build container, and run it.

    git clone https://github.com/xtrime-ru/antizapret-vpn-docker.git antizapret
    cd antizapret
    docker compose up -d --build
  3. Download configuration file for your openvpn client from client_keys folder. There will be udp and tcp versions of the config. For better performance use upd. Tcp version will be better for unstable conditions.

Keys menagment

Server keys are stored in easyrsa3/pki/ folder and client keys are copied to client_keys/. Keys are persistent between container and host restarts.

To generate new keys remove files and start container again:

docker-compose down
rm -rf easyrsa3/pki/
rm -rf client_keys/
docker-compose up -d

Links