2.7 KiB
sidebar_position |
---|
2 |
Firewall
View and edit firewall rules.
OpenPanel supports both ConfigServer Firewall (CSF) and Uncomplicated Firewall (UFW). By default, CSF is installed, but you can choose to install UFW instead by using the --ufw
option during installation.
Based on the installed firewall, the OpenAdmin > Firewall page will display either the ConfigServer Firewall UI or the custom UFW interface.
CSF
If ConfigServer Security & Firewall (CSF) is installed, it's integrated UI will be displayed on OpenAdmin > Firewall.
For instructions on how to use the CSF UI, please refer to ConfigServer Security & Firewall official documentation.
UFW
If Uncomplicated Firewall (UFW) is installed, our custom interface will be displayed on OpenAdmin > Firewall.
The firewall settings page provides multiple tabs:
- IPv4 - View and manage IPv4 firewall rules
- IPv6 - View and manage IPv6 firewall rules
- Settings - Manage UFW settings
- Blacklists - Enable/disable blaklists
- Logs - view the UFW service log
View existing rules
The table shows firewall rules, showcasing information such as rule ID, action, ports, source/destination IP, and the username of the user utilizing the port. For IPv6 rules, navigate to the IPv6 tab.
Add Rules
To create a new rule click on the 'Add Rule' button and in the modal choose 'ALLOW' to allow the IP address or port, and 'DENY' to block access for IP address or port.
Delete Rules
To delete a rule click on the 'Delete' link next to it, and in the confirmaiton modal click on 'Delete' button.
Settings
Blacklists
openadmin_ufw_blacklists.png
--skip-blacklists
View logs
For logs, navigate to the 'Logs' tab.
External Firewall
Some cloud providers, like Hetzner, offer their own external firewalls. If you are using an external firewall, ensure the following ports are open for OpenPanel services to be accessible: 53
80
443
2083
2087
32768:60999
If you are using a custom port for OpenPanel instead of the default 2083, ensure that port is open as well.
Restart rules
To re-open all necessary ports for OpenPanel services and users, run the command: opencli firewall-reset