moving iptables install
This commit is contained in:
parent
27f419c2b6
commit
5f808ab965
@ -4,6 +4,8 @@ printf "Better to run as root, because of permisions handeling.\n"
|
||||
|
||||
sleep 2
|
||||
|
||||
sudo apt update &
|
||||
|
||||
printf "Do you want to set up firewall rules by iptables? [Y/n]: \n"
|
||||
read ansFirewallSetup
|
||||
|
||||
@ -14,7 +16,9 @@ if [[ "$ansFirewallSetup" =~ ("N"|"n") ]]; then
|
||||
printf "+ Thanks, working on next bit\n"
|
||||
|
||||
else
|
||||
|
||||
|
||||
apt install iptables -y
|
||||
|
||||
printf "Do you want to block non-LAN ssh connections? [Y/n/castom]: "
|
||||
read sshBlockRange
|
||||
|
||||
@ -53,12 +57,11 @@ sleep 2
|
||||
# Just to be shure
|
||||
printf "\n+ Starting to upgrade base system\n\n"
|
||||
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
|
||||
# Installing depandencies
|
||||
printf "\n+ Installing depandencies \n\n"
|
||||
sudo apt install openjdk-17-jre-headless screen p7zip-full iptables -y
|
||||
sudo apt install openjdk-17-jre-headless screen p7zip-full -y
|
||||
|
||||
# User and groupe managment
|
||||
printf "\n+ Creating user minecraft and basic file structure"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user