diff --git a/Setting up a Minecraft server.md b/Setting up a Minecraft server.md index 7c460ec..a737e02 100644 --- a/Setting up a Minecraft server.md +++ b/Setting up a Minecraft server.md @@ -58,7 +58,10 @@ The first time you will get an error about an EULA, you need to look for `EULA.t # Allowing minecraft through the firewall This may or may not be needed, depending on your distro, and the command syntax will vary slightly depending on the distro. - +iptables: +``` +iptables -A INPUT -p tcp --dport 25565 -j ACCEPT +``` This enables minecraft to run in the background, restart if it crashes, etc etc. In `/etc/systemd/system`, place this file and tailor it to your liking.