Skip to content

firewall: fix DNS accept rule port on internal networks with custom dns_port - #1509

Open
ajoshua2004 wants to merge 1 commit into
containers:mainfrom
ajoshua2004:dns_port
Open

firewall: fix DNS accept rule port on internal networks with custom dns_port#1509
ajoshua2004 wants to merge 1 commit into
containers:mainfrom
ajoshua2004:dns_port

Conversation

@ajoshua2004

Copy link
Copy Markdown
Contributor

The INPUT accept rule was hardcoded to check port 53, but when a custom dns_port is configured the DNAT redirect rewrites the destination port before the packet reaches INPUT, so the accept rule never matched. Changed it to use network_setup.dns_port instead.

Fixes: #1508

…ns_port

the INPUT accept rule was hard coded to check port 53, but when
a custom dns_port is configured the DNAT redirect rewrites the
destination port before the packet reaches INPUT, so the accept
rule never matched.

Fixes: containers#1508

Signed-off-by: Joshua Arrevillaga <2004jarrevillaga@gmail.com>
@mheon

mheon commented Aug 20, 2026

Copy link
Copy Markdown
Member

Sure, LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal networks missing mark-masquerade rule for DNS under drop policy

2 participants