From e2cc87dbe372cd2e0abc2db2a5bc0c48f341d54c Mon Sep 17 00:00:00 2001 From: Chase Wright Date: Tue, 23 Jun 2020 17:54:35 -0500 Subject: [PATCH] fix 22 to 8080 --- guac-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guac-install.sh b/guac-install.sh index cc13944..86b0ab3 100755 --- a/guac-install.sh +++ b/guac-install.sh @@ -656,7 +656,7 @@ 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 + if [[ $(iptables --list-rules | grep -- "-p tcp" | grep -- "--dport 8080" | grep -- "-j ACCEPT" | wc -l) -eq 0 ]]; then # ALlow it iptables -A INPUT -p tcp --dport 8080 --jump ACCEPT fi