pull/1200/merge
StrajnarFilip 2024-05-17 11:42:23 +07:00 committed by GitHub
commit d3fe67f1f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -310,6 +310,18 @@ function installQuestions() {
PROTOCOL="tcp"
;;
esac
if command -v "firewall-cmd" &> /dev/null
then
SUGGESTION=y
echo "Command \"firewall-cmd\" has been detected."
until [[ $ADDPORT =~ (y|n) ]]; do
read -rp "Would you like to open port ${PORT} on firewalld? [y/n]: " -e -i $SUGGESTION ADDPORT
done
if [[ $ADDPORT == "y" ]]; then
firewall-cmd --add-port "${PORT}"/"${PROTOCOL}"
firewall-cmd --permanent --add-port "${PORT}"/"${PROTOCOL}"
fi
fi
echo ""
echo "What DNS resolvers do you want to use with the VPN?"
echo " 1) Current system resolvers (from /etc/resolv.conf)"