|
||
---|---|---|
src | ||
.drone.star | ||
.gitignore | ||
LICENSE | ||
README.md |
Dockerized Barracuda VPN client
Usage with docker compose
version: '3.9'
services:
vpn:
image: docker.asperti.com/paspo/barracudavpn:latest
restart: "no"
network_mode: "host" # needed to permit host access to vpn
cap_add:
- NET_ADMIN # needed for tap access
devices:
- /dev/net/tun # needed for tap access
environment:
VPN_PASSWORD: "ThePassw0rd"
# VPN_PASSWORD_FILE: /run/secrets/MYPASSWD # example with docker secrets file
SERVER: vpn.server.it
LIC_FILE: /config/vpn.lic
volumes:
- ./my_license.lic:/config/vpn.lic:ro
Usage with docker
docker run --rm --name vpn \
--cap-add NET_ADMIN --device /dev/net/tun --net host \
-e "VPN_PASSWORD=ThePassw0rd" \
-e "SERVER=vpn.server.it" \
-e "LIC_FILE=/config/vpn.lic" \
-v "$PWD/my_license.lic:/config/vpn.lic:ro"
-ti docker.asperti.com/paspo/barracudavpn:latest
TODO
- add support for docker secrets
- add ability to customize other parameters
- add health check
- set client binary release from drone