Skip to content
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

Add handling for firewalld's StrictForwardPorts setting #1165

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mheon
Copy link
Member

@mheon mheon commented Jan 21, 2025

This mostly amounts to throwing a sensible error in cases where the setting is enabled and the user has requested ports be forwarded.

There are no tests at present because firewalld 2.3.x is currently restricted to Rawhide, and is required for effective testing.

A manpage has also been added with details on how to work with the StrictForwardPorts setting (as well as some other tidbits on firewalld + Podman integration).

Copy link
Contributor

openshift-ci bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mheon mheon force-pushed the firewalld_detect_strict_port_forward branch from ade567a to 9114d77 Compare January 21, 2025 19:57
@mheon
Copy link
Member Author

mheon commented Jan 21, 2025

I don't think this actually generates + installs the manpage, need to figure that bit out, but the contents should be solid

@mheon mheon force-pushed the firewalld_detect_strict_port_forward branch 2 times, most recently from b3a0733 to 33d2a4a Compare January 22, 2025 19:45
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

1 similar comment
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

@mheon mheon force-pushed the firewalld_detect_strict_port_forward branch from 33d2a4a to 59f93a4 Compare January 22, 2025 20:24
This mostly amounts to throwing a sensible error in cases where
the setting is enabled and the user has requested ports be
forwarded.

There are no tests at present because firewalld 2.3.x is
currently restricted to Rawhide, and is required for effective
testing.

A manpage has also been added with details on how to work with
the StrictForwardPorts setting (as well as some other tidbits on
firewalld + Podman integration).

Signed-off-by: Matt Heon <[email protected]>
@mheon mheon force-pushed the firewalld_detect_strict_port_forward branch from 59f93a4 to 6995211 Compare January 22, 2025 20:47
@mheon
Copy link
Member Author

mheon commented Jan 23, 2025

@Luap99 PTAL, particularly at the manpage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant