File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ auth-user-pass-verify /usr/lib/openvpn/plugins/openvpn-auth via-env
55
55
client-disconnect "/usr/bin/docker-entrypoint.sh addhistory"
56
56
script-security 3
57
57
status $OVPN_DATA /openvpn-status.log
58
+ client-config-dir $OVPN_DATA /ccd
59
+ keepalive 10 60
58
60
duplicate-cn
61
+ client-to-client
59
62
max-clients $OVPN_MAXCLIENTS
60
63
management ${OVPN_MANAGEMENT/:/ }
61
64
verb 2
@@ -330,6 +333,8 @@ add_history(){
330
333
# ###############################################################################################
331
334
332
335
if [ " $1 " == " --init" ]; then
336
+ mkdir -p $OVPN_DATA /ccd
337
+
333
338
init_pki
334
339
init_config
335
340
exit 0
@@ -346,6 +351,10 @@ case $1 in
346
351
exit 1
347
352
fi
348
353
354
+ if [ -n " $5 " ]; then
355
+ echo -e " $5 " > $OVPN_DATA /ccd/$2
356
+ fi
357
+
349
358
$( genclient $2 $3 " $4 " )
350
359
exit 0
351
360
;;
You can’t perform that action at this time.
0 commit comments