mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-12-16 05:19:43 +01:00
- Implemented `exportFirewallRules` method in `FirewallManager` to export custom firewall rules to a JSON file, excluding default rules. - Added `importFirewallRules` method to handle the import of firewall rules from a JSON file, with validation and error handling. - Updated `urls.py` to include routes for exporting and importing firewall rules. - Created corresponding view functions in `views.py` to manage requests for exporting and importing rules. - Enhanced the frontend with buttons for exporting and importing rules, along with appropriate loading and error handling in `firewall.js`. - Updated the HTML template to include export/import buttons and loading indicators for better user experience.