more cleaning and limiting of ip's
This commit is contained in:
parent
9f9e046627
commit
cd3ff6f589
@ -4,7 +4,7 @@ To switch user use: `su minecraft -s /bin/bash`
|
|||||||
- [ ] Basic commands
|
- [ ] Basic commands
|
||||||
- [ ] Permisionss of files in this git
|
- [ ] Permisionss of files in this git
|
||||||
- [x] server.properties + run.sh + eula.txt
|
- [x] server.properties + run.sh + eula.txt
|
||||||
- [ ] iptable commands
|
- [x] iptable commands
|
||||||
- [x] my own .service file
|
- [x] my own .service file
|
||||||
- [x] modification of run.sh
|
- [x] modification of run.sh
|
||||||
- [x] screen usege
|
- [x] screen usege
|
||||||
|
|||||||
2
iptables
2
iptables
@ -19,7 +19,7 @@ iptables -A INPUT -i lo -j ACCEPT
|
|||||||
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||||
|
|
||||||
#Allow ssh, adjust port if you run it on non-default
|
#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
|
#Allow minecraft, adjust port if you run it on non-default
|
||||||
iptables -A INPUT -p tcp --dport 25565 -j ACCEPT
|
iptables -A INPUT -p tcp --dport 25565 -j ACCEPT
|
||||||
|
|||||||
@ -8,7 +8,8 @@ sudo apt upgrade -y
|
|||||||
ssh-copy-id -f -i mc-perfect.pub godot@localhost
|
ssh-copy-id -f -i mc-perfect.pub godot@localhost
|
||||||
|
|
||||||
# Dependencies
|
# 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
|
#User and groupe managment
|
||||||
groupadd minecraft
|
groupadd minecraft
|
||||||
@ -37,10 +38,9 @@ systemctl enable mc-forge
|
|||||||
|
|
||||||
# Permision handeling
|
# Permision handeling
|
||||||
chown -R minecraft:minecraft /opt/minecraft
|
chown -R minecraft:minecraft /opt/minecraft
|
||||||
# **TODO!**
|
|
||||||
|
|
||||||
# ipTable script integration
|
# ipTable script integration
|
||||||
# **TODO!**
|
# **Integration of script**
|
||||||
|
|
||||||
# CloudFlare integration
|
# CloudFlare integration
|
||||||
# **TODO!**
|
# **TODO!**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user