From 8e8d9a04f8c3c6a9993667539f419a4b6dbefeec Mon Sep 17 00:00:00 2001 From: Dikshant Adhikari Date: Thu, 18 Aug 2022 01:30:57 -0400 Subject: [PATCH] add: port forward usage example --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 69d9de7..faf6149 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ services: cap_add: - NET_ADMIN - SYS_MODULE + environment: + - PORT_FORWARD_DEST=23423 + - PORT_FORWARD_TO=23421 sysctls: net.ipv4.conf.all.src_valid_mark: 1 volumes: @@ -61,7 +64,9 @@ docker run --name wireguard \ --cap-add SYS_MODULE \ --sysctl net.ipv4.conf.all.src_valid_mark=1 \ -v /path/to/conf/mullvad.conf:/etc/wireguard/mullvad.conf \ - -e LOCAL_SUBNETS=10.1.0.0/16,10.2.0.0/16,10.3.0.0/16 \ + -e LOCAL_SUBNETS=10.1.0.0/16,10.2.0.0/16,10.3.0.0/16 \ + -e PORT_FORWARD_TO=12132 \ + -e PORT_FORWARD_DEST=12131 \ jordanpotter/wireguard ```