diff --git a/firewall_cmd.sh b/firewall_cmd.sh new file mode 100644 index 0000000..ba62049 --- /dev/null +++ b/firewall_cmd.sh @@ -0,0 +1,17 @@ +#!/bin/bash +#Read the input + +echo "enter the first port" +read first_port +echo "enter the step" +read step +echo "enter the last port" +read last_port + +echo "first port $first_port, step $step, last port $last_port" + for i in $(seq $first_port $step $last_port) + do + echo firewall-cmd --zone=public --add-port=$i/tcp --permanent + echo "port $i added"; + done + echo firewall-cmd --reload diff --git a/install_bareos.sh b/install_bareos.sh index 1490a18..fec7600 100755 --- a/install_bareos.sh +++ b/install_bareos.sh @@ -22,6 +22,6 @@ printf "deb $URL /\n" > /etc/apt/sources.list.d/bareos.list # add package key wget -q $URL/Release.key -O- | apt-key add - -# install Bareos packages +# install Bareos packages 2 apt-get update apt-get install bareos bareos-database-postgresql