Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 015ebab

Browse files
authored
Merge pull request #58 from rsgilbert/master
documented on how to perform VPN authentication
2 parents d1806f8 + 6150534 commit 015ebab

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,25 @@ ports:
9090
- <host_port>:1080
9191
```
9292

93-
###### `PROXY_USERNAME_SECRET`, `PROXY_PASSWORD_SECRET`, and `VPN_AUTH_SECRET`
93+
##### `PROXY_USERNAME_SECRET`, `PROXY_PASSWORD_SECRET`, and `VPN_AUTH_SECRET`
9494
Compose has support for [Docker secrets](https://docs.docker.com/engine/swarm/secrets/#use-secrets-in-compose).
9595
See the [Compose file](docker-compose.yml) in this repository for example usage of passing proxy credentials as Docker secrets.
9696

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+
97112
### Using with other containers
98113
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.
99114
There are a few ways to accomplish this depending how how your container is created.

0 commit comments

Comments
 (0)