[FEATURE] Export/Import Firewall Rules

Hello CyberPanel Team,

I would like to propose a new feature for CyberPanel that would greatly enhance its usability and efficiency.

Currently, when setting up a new server, it is time-consuming and cumbersome to manually copy and add each firewall rule one by one. This process is not only tedious but also prone to errors.

To streamline this process, I suggest the addition of an Export/Import functionality for firewall rules.

This feature would allow users to easily export all custom firewall rules from an existing server and import them into a new server. This functionality should exclude the default CyberPanel rules to avoid conflicts and maintain system integrity.

Key Benefits:

  • Time Efficiency: Significantly reduces the time required to replicate firewall rules on new servers.
  • Error Reduction: Minimizes the risk of human error when manually copying firewall rules.
  • Ease of Use: Simplifies the process of setting up new servers with consistent security policies.

Proposed Implementation:

  • Export Function: A feature that allows users to export all custom firewall rules to a file.
  • Import Function: A feature that allows users to import firewall rules from a previously exported file.
  • Exclusion of Default Rules: Ensure that the export and import process excludes the default CyberPanel firewall rules to prevent conflicts.

Thank you for considering this feature request. I believe it will be a valuable addition to CyberPanel, enhancing its functionality and user experience.

[FEATURE] Export/Import Firewall Rules · Issue #1299 · usmannasir/cyberpanel (github.com)