Updated to Match latest configurations on server.
This commit is contained in:
parent
fe2554a241
commit
e1c7dc5efc
1 changed files with 5 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Secure OpenVPN server installer for Debian, Ubuntu, CentOS, Fedora and Arch Linux
|
# Secure OpenVPN server installer for Debian, Ubuntu, CentOS, Fedora and Arch Linux
|
||||||
# https://github.com/angristan/openvpn-install
|
# https://github.com/tuckyapps/openvpn-install
|
||||||
|
|
||||||
function isRoot () {
|
function isRoot () {
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
|
|
@ -186,7 +186,7 @@ private-address: ::ffff:0:0/96' > /etc/unbound/openvpn.conf
|
||||||
|
|
||||||
function installQuestions () {
|
function installQuestions () {
|
||||||
echo "Welcome to the OpenVPN installer!"
|
echo "Welcome to the OpenVPN installer!"
|
||||||
echo "The git repository is available at: https://github.com/angristan/openvpn-install"
|
echo "The git repository is available at: https://github.com/tuckyapps/openvpn-install"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "I need to ask you a few questions before starting the setup."
|
echo "I need to ask you a few questions before starting the setup."
|
||||||
|
|
@ -229,7 +229,6 @@ function installQuestions () {
|
||||||
until [[ $IPV6_SUPPORT =~ (y|n) ]]; do
|
until [[ $IPV6_SUPPORT =~ (y|n) ]]; do
|
||||||
read -rp "Do you want to enable IPv6 support (NAT)? [y/n]: " -e -i $SUGGESTION IPV6_SUPPORT
|
read -rp "Do you want to enable IPv6 support (NAT)? [y/n]: " -e -i $SUGGESTION IPV6_SUPPORT
|
||||||
done
|
done
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Ask the user for its public IPv6 address.
|
# Ask the user for its public IPv6 address.
|
||||||
if [[ "$IPV6_SUPPORT" = 'y' ]]; then
|
if [[ "$IPV6_SUPPORT" = 'y' ]]; then
|
||||||
|
|
@ -341,7 +340,7 @@ function installQuestions () {
|
||||||
echo "Do you want to customize encryption settings?"
|
echo "Do you want to customize encryption settings?"
|
||||||
echo "Unless you know what you're doing, you should stick with the default parameters provided by the script."
|
echo "Unless you know what you're doing, you should stick with the default parameters provided by the script."
|
||||||
echo "Note that whatever you choose, all the choices presented in the script are safe. (Unlike OpenVPN's defaults)"
|
echo "Note that whatever you choose, all the choices presented in the script are safe. (Unlike OpenVPN's defaults)"
|
||||||
echo "See https://github.com/angristan/openvpn-install#security-and-encryption to learn more."
|
echo "See https://github.com/tuckyapps/openvpn-install#security-and-encryption to learn more."
|
||||||
echo ""
|
echo ""
|
||||||
until [[ $CUSTOMIZE_ENC =~ (y|n) ]]; do
|
until [[ $CUSTOMIZE_ENC =~ (y|n) ]]; do
|
||||||
read -rp "Customize encryption settings? [y/n]: " -e -i n CUSTOMIZE_ENC
|
read -rp "Customize encryption settings? [y/n]: " -e -i n CUSTOMIZE_ENC
|
||||||
|
|
@ -970,7 +969,7 @@ function newClient () {
|
||||||
echo " 2) Use a password for the client"
|
echo " 2) Use a password for the client"
|
||||||
|
|
||||||
until [[ "$PASS" =~ ^[1-2]$ ]]; do
|
until [[ "$PASS" =~ ^[1-2]$ ]]; do
|
||||||
read -rp "Select an option [1-2]: " -e -i 1 PASS
|
read -rp "Select an option [1-2]: " -e -i 2 PASS
|
||||||
done
|
done
|
||||||
|
|
||||||
cd /etc/openvpn/easy-rsa/ || return
|
cd /etc/openvpn/easy-rsa/ || return
|
||||||
|
|
@ -1185,7 +1184,7 @@ function removeOpenVPN () {
|
||||||
function manageMenu () {
|
function manageMenu () {
|
||||||
clear
|
clear
|
||||||
echo "Welcome to OpenVPN-install!"
|
echo "Welcome to OpenVPN-install!"
|
||||||
echo "The git repository is available at: https://github.com/angristan/openvpn-install"
|
echo "The git repository is available at: https://github.com/tuckyapps/openvpn-install"
|
||||||
echo ""
|
echo ""
|
||||||
echo "It looks like OpenVPN is already installed."
|
echo "It looks like OpenVPN is already installed."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue