From cd3ff6f5899304b1235be3614761921baaa3bb6f Mon Sep 17 00:00:00 2001 From: godot Date: Tue, 2 Jul 2024 22:48:37 +0000 Subject: [PATCH] more cleaning and limiting of ip's --- README.md | 2 +- iptables | 2 +- podklady.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5e89ce5..ead182b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/iptables b/iptables index 742ade4..737793f 100644 --- a/iptables +++ b/iptables @@ -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 diff --git a/podklady.md b/podklady.md index 69e1c37..d251ac8 100644 --- a/podklady.md +++ b/podklady.md @@ -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!**