more cleaning and limiting of ip's

This commit is contained in:
godot 2024-07-02 22:48:37 +00:00
parent 9f9e046627
commit cd3ff6f589
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ To switch user use: `su minecraft -s /bin/bash`
- [ ] Basic commands
- [ ] Permisionss of files in this git
- [x] server.properties + run.sh + eula.txt
- [ ] iptable commands
- [x] iptable commands
- [x] my own .service file
- [x] modification of run.sh
- [x] screen usege

View File

@ -19,7 +19,7 @@ iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#Allow ssh, adjust port if you run it on non-default
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 --source 172.18.42.0/24 -j ACCEPT
#Allow minecraft, adjust port if you run it on non-default
iptables -A INPUT -p tcp --dport 25565 -j ACCEPT

View File

@ -8,7 +8,8 @@ sudo apt upgrade -y
ssh-copy-id -f -i mc-perfect.pub godot@localhost
# Dependencies
sudo apt install qemu-guest-agent openjdk-17-jre-headless neofetch btop screen wget curl vim grep vim p7zip-full -y
sudo apt install qemu-guest-agent neofetch btop vim tmux -y # I like these
sudo apt install openjdk-17-jre-headless screen p7zip-full -y # Realy needed
#User and groupe managment
groupadd minecraft
@ -37,10 +38,9 @@ systemctl enable mc-forge
# Permision handeling
chown -R minecraft:minecraft /opt/minecraft
# **TODO!**
# ipTable script integration
# **TODO!**
# **Integration of script**
# CloudFlare integration
# **TODO!**