wg-easy/run.sh

9 lines
253 B
Bash
Raw Normal View History

2021-05-22 17:12:26 +08:00
docker run \
--name wg-easy \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
--mount type=bind,source="$(pwd)"/config,target=/etc/wireguard \
-p 51820:51820/udp \
2021-05-23 18:02:56 +08:00
-p 51821:51821/tcp \
2021-05-22 17:12:26 +08:00
wg-easy