mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-05-09 10:18:22 +02:00
Merge 30b7525debece728db4dbb0dce7ccb64913145c7 into e2d4990ae194e37fd5162168a8aac5e2d89e0e8d
This commit is contained in:
commit
47d159c5e6
@ -398,6 +398,13 @@ function installQuestions() {
|
||||
fi
|
||||
done
|
||||
echo ""
|
||||
read -rp "Do you want the same client .ovpn file to connect multiple clients? (This will add 'duplicate-cn' in the server.conf) [y/n]: " -e -i n MULTI_CLIENT_CHOICE
|
||||
if [[ $MULTI_CLIENT_CHOICE =~ ^[Yy]$ ]]; then
|
||||
MULTI_CLIENT="y"
|
||||
else
|
||||
MULTI_CLIENT="n"
|
||||
fi
|
||||
echo ""
|
||||
echo "Do you want to use compression? It is not recommended since the VORACLE attack makes use of it."
|
||||
until [[ $COMPRESSION_ENABLED =~ (y|n) ]]; do
|
||||
read -rp"Enable compression? [y/n]: " -e -i n COMPRESSION_ENABLED
|
||||
@ -408,7 +415,7 @@ function installQuestions() {
|
||||
echo " 2) LZ4"
|
||||
echo " 3) LZ0"
|
||||
until [[ $COMPRESSION_CHOICE =~ ^[1-3]$ ]]; do
|
||||
read -rp"Compression algorithm [1-3]: " -e -i 1 COMPRESSION_CHOICE
|
||||
read -rp"Compression algorithm [1-3]: " -e -i 1 COMPRESSION_CHOICE
|
||||
done
|
||||
case $COMPRESSION_CHOICE in
|
||||
1)
|
||||
@ -809,6 +816,10 @@ function installOpenVPN() {
|
||||
echo "proto ${PROTOCOL}6" >>/etc/openvpn/server.conf
|
||||
fi
|
||||
|
||||
if [[ $MULTI_CLIENT == "y" ]]; then
|
||||
echo "duplicate-cn" >>/etc/openvpn/server.conf
|
||||
fi
|
||||
|
||||
echo "dev tun
|
||||
user nobody
|
||||
group $NOGROUP
|
||||
|
Loading…
x
Reference in New Issue
Block a user