mirror of
https://git.koehlerweb.org/frodovdr/guac-install
synced 2024-11-22 17:37:13 +01:00
fix 22 to 8080
This commit is contained in:
parent
4981b75511
commit
e2cc87dbe3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user