@@ -28,6 +28,8 @@ First, download the script on your Linux server\*:
28
28
wget -O openvpn.sh https://get.vpnsetup.net/ovpn
29
29
```
30
30
31
+ \* A cloud server, virtual private server (VPS) or dedicated server.
32
+
31
33
** Option 1:** Auto install OpenVPN using default options.
32
34
33
35
``` bash
@@ -108,8 +110,27 @@ ANSWERS
108
110
109
111
** Note:** The install options may change in future versions of the script.
110
112
</details >
113
+ <details >
114
+ <summary >
115
+ View usage information for the OpenVPN script.
116
+ </summary >
111
117
112
- \* A cloud server, virtual private server (VPS) or dedicated server.
118
+ ```
119
+ Usage: bash openvpn.sh [options]
120
+
121
+ Options:
122
+ --auto auto install OpenVPN using default options
123
+ --addclient [client name] add a new client
124
+ --exportclient [client name] export configuration for an existing client
125
+ --listclients list the names of existing clients
126
+ --revokeclient [client name] revoke an existing client
127
+ --uninstall remove OpenVPN and delete all configuration
128
+ -y, --yes assume "yes" as answer to prompts when revoking a client or removing OpenVPN
129
+ -h, --help show this help message and exit
130
+
131
+ To customize install options, run this script without arguments.
132
+ ```
133
+ </details >
113
134
114
135
## Next steps
115
136
@@ -141,6 +162,7 @@ List of enhancements over Nyr/openvpn-install.
141
162
- Supports exporting configuration for an existing VPN client
142
163
- Supports listing existing VPN clients
143
164
- Supports custom DNS server(s) for VPN clients
165
+ - Supports command-line options for managing VPN clients
144
166
- Optimizes ` sysctl ` settings for improved VPN performance
145
167
- Improved creation of client config files when using ` sudo `
146
168
0 commit comments