Skip to content

Firewall: NAT: PortForward/Outbound - Refactor to MVC #8495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

preethijacobjt
Copy link

This pull request refactors the legacy code for the PortForward and Outbound functionalities in the NAT (Network Address Translation) section of the OPNsense firewall to follow the MVC (Model-View-Controller) design pattern.

Changes:

  • Migrated the PortForward and Outbound functionality to a clean MVC architecture.
  • Cleaned up legacy code to improve maintainability and readability.
  • Introduced new controllers, models, and views to separate business logic from presentation.
  • Refactored existing UI to align with the MVC structure.
  • Ensured that existing functionality, including configuration handling and rule processing, remains intact and fully functional after the refactor.

@AdSchellevis AdSchellevis self-assigned this Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants