You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-16Lines changed: 11 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@ docker run --detach \
43
43
--name=openvpn-client \
44
44
--cap-add=NET_ADMIN \
45
45
--device=/dev/net/tun \
46
-
--env KILL_SWITCH=off \
47
46
--volume <path/to/config/dir>:/data/vpn \
48
47
ghcr.io/wfg/openvpn-client
49
48
```
@@ -58,32 +57,28 @@ services:
58
57
- NET_ADMIN
59
58
devices:
60
59
- /dev/net/tun
61
-
environment:
62
-
- KILL_SWITCH=off
63
60
volumes:
64
61
- <path/to/config/dir>:/data/vpn
65
62
restart: unless-stopped
66
63
```
67
64
68
-
#### Environment variables
65
+
#### Environment variables (alphabetical)
69
66
| Variable | Default (blank is unset) | Description |
70
67
| --- | --- | --- |
71
-
| `KILL_SWITCH` | `on` | The on/off status of the network kill switch. |
72
-
| `SUBNETS` | | A list of one or more comma-separated subnets (e.g. `192.168.0.0/24,192.168.1.0/24`) to allow outside of the VPN tunnel. See important note about this [below](#subnets). |
73
-
| `VPN_CONFIG_FILE` | | The OpenVPN config file to use. If this is unset, the first file with the extension .conf will be used. |
| `HTTP_PROXY` | `off` | The on/off status of Tinyproxy, the built-in HTTP proxy server. To enable, set to `on`. Any other value (including unset) will cause the proxy server to not start. It listens on port 8080. |
76
-
| `SOCKS_PROXY` | `off` | The on/off status of Dante, the built-in SOCKS proxy server. To enable, set to `on`. Any other value (including unset) will cause the proxy server to not start. It listens on port 1080. |
77
-
| `PROXY_USERNAME` | | Credentials for accessing the proxies. If `PROXY_USERNAME` is specified, you must also specify `PROXY_PASSWORD`. |
69
+
| `KILL_SWITCH` | `on` | The on/off status of the network kill switch. |
70
+
| `LISTEN_ON` | | Address the proxies will be listening on. Set to `0.0.0.0` to listen on all IP addresses. |
78
71
| `PROXY_PASSWORD` | | Credentials for accessing the proxies. If `PROXY_PASSWORD` is specified, you must also specify `PROXY_USERNAME`. |
79
-
| `PROXY_USERNAME_SECRET` | | Docker secrets that contain the credentials for accessing the proxies. If `PROXY_USERNAME_SECRET` is specified, you must also specify `PROXY_PASSWORD_SECRET`. |
80
72
| `PROXY_PASSWORD_SECRET` | | Docker secrets that contain the credentials for accessing the proxies. If `PROXY_PASSWORD_SECRET` is specified, you must also specify `PROXY_USERNAME_SECRET`. |
81
-
| `LISTEN_ON` | | Address the proxies will be listening on. Set to `0.0.0.0` to allow all IP addresses. |
73
+
| `PROXY_USERNAME` | | Credentials for accessing the proxies. If `PROXY_USERNAME` is specified, you must also specify `PROXY_PASSWORD`. |
74
+
| `PROXY_USERNAME_SECRET` | | Docker secrets that contain the credentials for accessing the proxies. If `PROXY_USERNAME_SECRET` is specified, you must also specify `PROXY_PASSWORD_SECRET`. |
75
+
| `SOCKS_PROXY` | `off` | The on/off status of Dante, the built-in SOCKS proxy server. To enable, set to `on`. Any other value (including unset) will cause the proxy server to not start. It listens on port 1080. |
76
+
| `SUBNETS` | | A list of one or more comma-separated subnets (e.g. `192.168.0.0/24,192.168.1.0/24`) to allow outside of the VPN tunnel. |
77
+
| `VPN_AUTH_SECRET` | | Docker secret that contain the credentials for accessing the VPN. |
78
+
| `VPN_CONFIG_FILE` | | The OpenVPN config file to use. If this is unset, the first file with the extension .conf will be used. |
The specified subnets will be allowed through the firewall to allow for connectivity to and from hosts on the subnets.
86
-
87
82
###### `HTTP_PROXY` and `SOCKS_PROXY`
88
83
If enabling the the proxy server(s), you'll want to publish the appropriate port(s) in order to access the server(s).
89
84
To do that using `docker run`, add `-p <host_port>:8080` and/or `-p <host_port>:1080` where `<host_port>` is whatever port you want to use on the host.
0 commit comments