1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2025-05-14 01:23:13 +02:00

Compare commits

..

No commits in common. "4981b75511b8cf920ea74cb608d4fd1f1fe3e88b" and "2a8ffcc9d2629342f3ece3a33b5e313750af40d4" have entirely different histories.

2 changed files with 1 additions and 31 deletions

View File

@ -23,7 +23,7 @@ By default the script will not install MFA support (QR code for Google/Microsoft
Here's a cool PowerShell module for using the Guacamole API: https://github.com/UpperM/guacamole-powershell
Does not work if you have MFA turned on (however, you can authenticate via the gui and get a token to use it that way)
Does not work if you have MFA turned on
## How to Run:

View File

@ -635,36 +635,6 @@ service guacd start
systemctl enable guacd
echo
# Deal with ufw and/or iptables
# Check if ufw is a valid command
if [ -x "$( command -v ufw )" ]; then
# Check if ufw is active (active|inactive)
if [[ $(ufw status | grep inactive | wc -l) -eq 0 ]]; then
# Check if 8080 is not already allowed
if [[ $(ufw status | grep "8080/tcp" | grep "ALLOW" | grep "Anywhere" | wc -l) -eq 0 ]]; then
# ufw is running, but 8080 is not allowed, add it
ufw allow 8080/tcp comment 'allow tomcat'
fi
fi
fi
# It's possible that someone is just running pure iptables...
# Check if iptables is a valid running service
systemctl is-active --quiet iptables
if [ $? -eq 0 ]; then
# Check if 8080 is not already allowed
# FYI: This same command matches the rule added with ufw (-A ufw-user-input -p tcp -m tcp --dport 22 -j ACCEPT)
if [[ $(iptables --list-rules | grep -- "-p tcp" | grep -- "--dport 22" | grep -- "-j ACCEPT" | wc -l) -eq 0 ]]; then
# ALlow it
iptables -A INPUT -p tcp --dport 8080 --jump ACCEPT
fi
fi
# I think there is another service called firewalld that some people could be running instead
# Unless someone opens an issue about it or submits a pull request, I'm going to ignore it for now
# Cleanup
echo -e "${BLUE}Cleanup install files...${NC}"
rm -rf guacamole-*