

The following commands enables port forwarding for firewalld: firewall-cmd -permanent -add-port=25565/tcp firewall-cmd -reload Step 10: Point a Domain at Your Minecraft Server The commands to enable port forwarding for iptables are: iptables -I INPUT -p tcp -dport 25565 -j ACCEPT iptables-save >/etc/sysconfig/iptablesĬentOS 7.X and newer comes with firewalld by default.

The following command enables port forwarding for ufw: sudo ufw allow 25565ĬentOS 6.X and older comes with iptables by default. To allow incoming connections from Minecraft, you need to edit the firewall configuration. Note: To make changes to the default configuration, refer to the server.properties file stored in the /minecraft directory.
