mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-09 16:20:04 +01:00
Merge branch 'master' into 486
This commit is contained in:
commit
e835138f4d
14
README.md
14
README.md
@ -70,6 +70,19 @@ Other variables can be set depending on your choice (encryption, compression). Y
|
|||||||
|
|
||||||
Password-protected clients are not supported by the headless installation method since user input is expected by Easy-RSA.
|
Password-protected clients are not supported by the headless installation method since user input is expected by Easy-RSA.
|
||||||
|
|
||||||
|
### Headless User Addition
|
||||||
|
|
||||||
|
It's also possible to automate the addition of a new user. Here, the key is to provide the (string) value of the `MENU_OPTION` variable along with the remaining mandatory variables before invoking the script.
|
||||||
|
|
||||||
|
The following Bash script adds a new user `foo` to an existing OpenVPN configuration
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
export MENU_OPTION="1"
|
||||||
|
export CLIENT="foo"
|
||||||
|
export PASS="1"
|
||||||
|
./openvpn-install.sh
|
||||||
|
```
|
||||||
|
|
||||||
### Headless User Removal
|
### Headless User Removal
|
||||||
|
|
||||||
The removal of an existing user can also be fully automated. Again, the key is to provide the (string) value of the `MENU_OPTION` variable along with the remaining mandatory variables before invoking the script.
|
The removal of an existing user can also be fully automated. Again, the key is to provide the (string) value of the `MENU_OPTION` variable along with the remaining mandatory variables before invoking the script.
|
||||||
@ -82,7 +95,6 @@ export CLIENT="bar"
|
|||||||
./openvpn-install.sh
|
./openvpn-install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Installs and configures a ready-to-use OpenVPN server
|
- Installs and configures a ready-to-use OpenVPN server
|
||||||
|
Loading…
Reference in New Issue
Block a user