fviolence/amneziawg-go

By fviolence

Updated 4 months ago

AmneziaWG VPN server

Image
Networking
0

1.8K

fviolence/amneziawg-go repository overview

Contanerised AmneziaWG VPN server with AmneziaWG-go used as a backbone.

ENVs:

VariableDescriptionDefault Value
AMNEZIAWG_IPIP address of the VPN server with mask.10.9.9.1/24
AMNEZIAWG_PORTUDP port for WireGuard to use.49666
AMNEZIAWG_INTERFACETUN interface name, better leave default.awg0

Deploy:

AMNEZIAWG_IP=$YOUR_IP_WITH_MASK AMNEZIAWG_PORT=$YOUR_PORT docker compose up --force-recreate --no-deps -d

Add new client

docker exec -it amneziawg-go python3 /etc/amnezia/awgcfg.py --addcl $CLIENT_NAME
docker exec -it amneziawg-go python3 /etc/amnezia/awgcfg.py --confgen $CLIENT_NAME
docker container restart amneziawg-go

Need to restart container for new config to catch up.

Optionally --allowed flag to set list allowed IPs for the client and --dns flag can be passed along with --confgen:

docker exec -it amneziawg-go python3 /etc/amnezia/awgcfg.py --confgen $CLIENT_NAME --allowed 0.0.0.0/24,100.100.100.0/24 --dns 1.1.1.1

By default 8.8.8.8 DNS used

Delete client:

docker exec -it amneziawg-go python3 /etc/amnezia/awgcfg.py --delete $CLIENT_NAME

Build and push:

docker buildx build --platform linux/amd64,linux/arm64 -t fviolence/amneziawg-go:v1.0 -t fviolence/amneziawg-go:latest --push .

Compose file and all sources: https://github.com/fviolence/amneziawg-go-docker

Tag summary

Content type

Image

Digest

sha256:f990e70d2

Size

29.9 MB

Last updated

4 months ago

docker pull fviolence/amneziawg-go:v1.2