Articles on: WitherPanel
This article is also available in:

How to use the firewall on your server to block incoming connections

🤔 What use is a firewall? 🤔



A firewall can help you to protect your server from bot attacks, and ban IP addresses of your choosing from accessing your server!


💡 How to use it 💡



Navigate to WitherPanel, and select a server of your choosing
Click on the Firewall tab.



You can now see where we can add firewall rules.

Click on the BAN IP button you can see above; this will bring up the popup



Here, you can specify what IP address or subnet of IP addresses to ban. Once you're satisifed with your selection, click the BAN IP button in the popup.
The IP will be succesfully banned! You will be able to view detailed geolocation information about this IP address, and also have the option to unban the IP with the click of a button




👍 Some useful examples of IP address formatting 👍



Block all incoming connections:


0.0.0.0/0 with DROP.

Block all connections from the IP 123.45.67.89:


123.45.67.89 with DROP

Block all connections from all IPs in 123.45.67.0-123.45.67.255:


123.45.67.0/24 with DROP

To figure out the subnet of an IP address, go to IpInfo , put in the IP address in question, and search for the "network" field!

Updated on: 13/11/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!