Merge 38d39b254a
into e2d4990ae1
This commit is contained in:
commit
ce73f595fc
1 changed files with 12 additions and 0 deletions
|
@ -398,6 +398,14 @@ function installQuestions() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo ""
|
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."
|
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
|
until [[ $COMPRESSION_ENABLED =~ (y|n) ]]; do
|
||||||
read -rp"Enable compression? [y/n]: " -e -i n COMPRESSION_ENABLED
|
read -rp"Enable compression? [y/n]: " -e -i n COMPRESSION_ENABLED
|
||||||
|
@ -809,6 +817,10 @@ function installOpenVPN() {
|
||||||
echo "proto ${PROTOCOL}6" >>/etc/openvpn/server.conf
|
echo "proto ${PROTOCOL}6" >>/etc/openvpn/server.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $MULTI_CLIENT == "y" ]]; then
|
||||||
|
echo "duplicate-cn" >>/etc/openvpn/server.conf
|
||||||
|
fi
|
||||||
|
|
||||||
echo "dev tun
|
echo "dev tun
|
||||||
user nobody
|
user nobody
|
||||||
group $NOGROUP
|
group $NOGROUP
|
||||||
|
|
Loading…
Reference in a new issue