Repository navigation
fix(migration): rename NS7 hairpin zones and drop VPN ones - #2035
Open
gsanchietti wants to merge 3 commits into
Open
gsanchietti wants to merge 3 commits into
gsanchietti wants to merge 3 commits into
Conversation
NethServer 7 exports port forwards with the blue zone in their hairpin NAT zones, but the blue zone is migrated as guest. fw4 rejects the unknown zone and skips every port forward. Assisted-by: Claude Code:claude-opus-5-5 Claude-Session: https://claude.ai/code/session_01MSZ8Qo9Px5cXUv61AxqVcT
m-dilorenzi
marked this pull request as ready for review
November 20, 2026 16:40
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a NethServer 7 system with a blue or orange interface and hairpin NAT enabled is migrated, every port forward lists the blue or orange zone as a hairpin zone.
The blue zone becomes guest and the orange zone becomes dmz on NethSecurity, so the firewall rejects the unknown zone and skips all port forwards.
The migration now renames blue to guest and orange to dmz in the hairpin zones of each port forward.
VPN zones are no longer added as hairpin zones: the firewall cannot determine their addresses, so it disabled reflection on them anyway and logged "internal rewrite IP cannot be determined" for each rule, zone and protocol.
Fixes #2034
How to test
ns-importfw4 check: no port forward is skipped,reflection_zonelistsguestanddmzinstead ofblueandorange, and no VPN zone is listedGenerated by Claude Code:claude-opus-5-5 with nethserver-pr
https://claude.ai/code/session_01MSZ8Qo9Px5cXUv61AxqVcT