Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions firewall_cmd.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion install_bareos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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