mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-04 21:23:31 +03:00
Indentation fixes
This commit is contained in:
parent
9f3f90b5e8
commit
285a83ac3f
1 changed files with 16 additions and 16 deletions
|
@ -190,24 +190,24 @@ if [[ ! -e /etc/openvpn/server/server.conf ]]; then
|
|||
echo " 4) OpenDNS"
|
||||
echo " 5) Quad9"
|
||||
echo " 6) AdGuard"
|
||||
echo " 7) custom"
|
||||
echo " 7) custom"
|
||||
read -p "DNS server [1]: " dns
|
||||
until [[ -z "$dns" || "$dns" =~ ^[1-7]$ ]]; do
|
||||
echo "$dns: invalid selection."
|
||||
read -p "DNS server [1]: " dns
|
||||
done
|
||||
if [[ "$dns" == 7 ]]; then
|
||||
read -p "Enter custom DNS server 1: " dns_custom_1
|
||||
until [[ -z "$dns_custom_1" || "$dns_custom_1" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; do
|
||||
echo "$dns_custom_1: invalid DNS server."
|
||||
read -p "Enter custom DNS server 1: " dns_custom_1
|
||||
done
|
||||
read -p "Enter custom DNS server 2: " dns_custom_2
|
||||
until [[ -z "$dns_custom_2" || "$dns_custom_2" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; do
|
||||
echo "$dns_custom_2: invalid DNS server."
|
||||
read -p "Enter custom DNS server 2: " dns_custom_2
|
||||
done
|
||||
fi
|
||||
if [[ "$dns" == 7 ]]; then
|
||||
read -p "Enter custom DNS server 1: " dns_custom_1
|
||||
until [[ "$dns_custom_1" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; do
|
||||
echo "$dns_custom_1: invalid DNS server."
|
||||
read -p "Enter custom DNS server 1: " dns_custom_1
|
||||
done
|
||||
read -p "Enter custom DNS server 2: " dns_custom_2
|
||||
until [[ "$dns_custom_2" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; do
|
||||
echo "$dns_custom_2: invalid DNS server."
|
||||
read -p "Enter custom DNS server 2: " dns_custom_2
|
||||
done
|
||||
fi
|
||||
echo
|
||||
echo "Enter a name for the first client:"
|
||||
read -p "Name [client]: " unsanitized_client
|
||||
|
@ -334,9 +334,9 @@ server 10.8.0.0 255.255.255.0" > /etc/openvpn/server/server.conf
|
|||
echo 'push "dhcp-option DNS 94.140.14.14"' >> /etc/openvpn/server/server.conf
|
||||
echo 'push "dhcp-option DNS 94.140.15.15"' >> /etc/openvpn/server/server.conf
|
||||
;;
|
||||
7)
|
||||
echo 'push "dhcp-option DNS '$dns_custom_1'"' >> /etc/openvpn/server/server.conf
|
||||
echo 'push "dhcp-option DNS '$dns_custom_2'"' >> /etc/openvpn/server/server.conf
|
||||
7)
|
||||
echo 'push "dhcp-option DNS '$dns_custom_1'"' >> /etc/openvpn/server/server.conf
|
||||
echo 'push "dhcp-option DNS '$dns_custom_2'"' >> /etc/openvpn/server/server.conf
|
||||
esac
|
||||
echo 'push "block-outside-dns"' >> /etc/openvpn/server/server.conf
|
||||
echo "keepalive 10 120
|
||||
|
|
Loading…
Add table
Reference in a new issue