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
|
sleep 2
|
||||||
|
|
||||||
|
sudo apt update &
|
||||||
|
|
||||||
printf "Do you want to set up firewall rules by iptables? [Y/n]: \n"
|
printf "Do you want to set up firewall rules by iptables? [Y/n]: \n"
|
||||||
read ansFirewallSetup
|
read ansFirewallSetup
|
||||||
|
|
||||||
@ -15,6 +17,8 @@ if [[ "$ansFirewallSetup" =~ ("N"|"n") ]]; then
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
apt install iptables -y
|
||||||
|
|
||||||
printf "Do you want to block non-LAN ssh connections? [Y/n/castom]: "
|
printf "Do you want to block non-LAN ssh connections? [Y/n/castom]: "
|
||||||
read sshBlockRange
|
read sshBlockRange
|
||||||
|
|
||||||
@ -53,12 +57,11 @@ sleep 2
|
|||||||
# Just to be shure
|
# Just to be shure
|
||||||
printf "\n+ Starting to upgrade base system\n\n"
|
printf "\n+ Starting to upgrade base system\n\n"
|
||||||
|
|
||||||
sudo apt update
|
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
|
|
||||||
# Installing depandencies
|
# Installing depandencies
|
||||||
printf "\n+ Installing depandencies \n\n"
|
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
|
# User and groupe managment
|
||||||
printf "\n+ Creating user minecraft and basic file structure"
|
printf "\n+ Creating user minecraft and basic file structure"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user