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
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,10 +90,25 @@ ports:
90
90
- <host_port>:1080
91
91
```
92
92
93
-
###### `PROXY_USERNAME_SECRET`, `PROXY_PASSWORD_SECRET`, and `VPN_AUTH_SECRET`
93
+
##### `PROXY_USERNAME_SECRET`, `PROXY_PASSWORD_SECRET`, and `VPN_AUTH_SECRET`
94
94
Compose has support for [Docker secrets](https://docs.docker.com/engine/swarm/secrets/#use-secrets-in-compose).
95
95
See the [Compose file](docker-compose.yml) in this repository for example usage of passing proxy credentials as Docker secrets.
96
96
97
+
### VPN Authentication
98
+
To provide the VPN user and password credentials, create a file called `passfile` in the config folder being mounted, right next to the vpn .conf (or .ovpn) file.
99
+
100
+
In the passfile, enter the username in the first line and password in the second line. For example:
101
+
```
102
+
gilbert
103
+
p@sswd123
104
+
```
105
+
Now in the vpn configuration file, such as my_vpn.ovpn, create a new line and enter the following:
106
+
```
107
+
auth-user-pass passfile
108
+
```
109
+
That should be enough. You can refer to this link for more details: https://help.yeastar.com/en/s-series/topic/openvpn-username-password-authentication.html#openvpn-create-account-password-for-each-client__section_uyg_sps_33b
110
+
111
+
97
112
### Using with other containers
98
113
Once you have your `openvpn-client` container up and running, you can tell other containers to use `openvpn-client`'s network stack which gives them the ability to utilize the VPN tunnel.
99
114
There are a few ways to accomplish this depending how how your container is created.
0 commit comments