Skip to content

Commit 846dcda

Browse files
author
SD-ITLab
authored
Update sysadmin_tools.sh
1 parent 51989ca commit 846dcda

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

sysadmin_tools.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,6 @@ crowdsec_menu() {
563563
# Allow incoming connections on the new SSH port
564564
run_command ufw allow $new_port2
565565
run_command ufw allow 8081
566-
# Check if the host is a Proxmox host
567-
if dpkg -l | grep -q pve-manager; then
568-
run_command ufw allow 8006
569-
fi
570566
run_command apt-get install curl -y
571567
run_command curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | bash
572568
run_command apt-get install crowdsec -y
@@ -595,8 +591,12 @@ crowdsec_menu() {
595591

596592

597593
# Crowdsec-Bouncer-installation
598-
run_command apt-get install crowdsec-firewall-bouncer-iptables -y
599-
594+
if dpkg -l | grep -q pve-manager; then
595+
run_command ufw allow 8006
596+
run_command apt-get install crowdsec-firewall-bouncer -y
597+
else
598+
run_command apt-get install crowdsec-firewall-bouncer-iptables -y
599+
fi
600600
# Crowdsec-Firewall-Bouncer-Iptables-configuration
601601
firewall_bouncer_config="/etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml"
602602

0 commit comments

Comments
 (0)