File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/sh
2
+ # # first argument will be name of client whose config file you generating
3
+ # ./client.sh client_name client/server proto tcp/udp remote url/ip port dev tun/tap
4
+ CER_KEYS=/etc/easy-rsa/keys
5
+ OVN_DIR=./clients
6
+
7
+ echo " Generating .ovpn config file.."
8
+
9
+
10
+
11
+ echo $' \b ' ${1} $' \n ' \
12
+ < echo ${2} $' \n ' \
13
+ < echo ${3} ${4} $' \n ' \
14
+ < echo ${5} ${6} $' \n ' \
15
+ < echo ${7} ${8} $' \n ' \
16
+ > ${OVN_DIR} /${1} .ovpn
17
+
18
+ echo " ...Complete. Config file available in clients"
19
+ # <(echo -e '<ca>') \
20
+ # ${KEY_DIR}/ca.crt \
21
+ # <(echo -e '</ca>\n<cert>') \
22
+ # ${KEY_DIR}/${1}.crt \
23
+ # <(echo -e '</cert>\n<key>') \
24
+ # ${KEY_DIR}/${1}.key \
25
+ # <(echo -e '</key>\n<tls-auth>') \
26
+ # ${KEY_DIR}/ta.key \
27
+ # <(echo -e '</tls-auth>') \
You can’t perform that action at this time.
0 commit comments