Configuring Firewall Rules in dPanel
Aug 26, 2026
·
1 views
Configuring Firewall Rules
dPanel includes an integrated firewall management system that allows you to secure your server without needing to touch the command line. By properly configuring your firewall rules, you can protect sensitive services while keeping necessary ports open for your websites and applications.
Accessing the Firewall Manager
To manage your server's firewall settings:
- Log in to your dPanel dashboard.
- Navigate to the Security tab in the left sidebar.
- Click on Firewall to view the active rules and status.
Adding a New Rule
You can easily whitelist specific ports or IP addresses. Click the Add Rule button and fill out the required parameters:
- Port: The network port you wish to open or close (e.g.,
443for HTTPS). - Protocol: Choose between
TCP,UDP, orBOTH. - Action: Select
ALLOWorDENY. - Source IP (Optional): Restrict access to a specific IP address for enhanced security.
# Example of a ufw command executed automatically by dPanel behind the scenes
sudo ufw allow 443/tcp
Best Practices
Always follow the principle of least privilege when configuring your server environment:
- Keep SSH access restricted to trusted IP addresses where possible.
- Regularly audit your open ports to ensure no deprecated services remain exposed.
- Test rule changes carefully to avoid accidentally locking yourself out of the dPanel interface.