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

Fixed rdr rule directive error when a jail has both ipv4 and ipv6 addresses #831

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

Conversation

sinclairday
Copy link

@sinclairday sinclairday commented Jan 29, 2025

When a jail has both an ipv4 and ipv6 address, the PF rdr directive needs to differentiate between inet and inet6 address families; otherwise, the firewall rule for the ipv6 interface will fail to load on starting the jail:

stdin:3: no translation address with matching address family found.
pfctl: Syntax error in config file: pf rules not loaded

This commit changes the address family for ipv6 addresses from inet to inet6. Specifications for ipv4 addresses are unchanged.

…resses

When a jail has both an ipv4 and ipv6 address, the PF rdr directive needs to differentiate between inet4 and inet6 address families; otherwise, the firewall rule for the ipv6 interface will fail to load on starting the jail:

"stdin:3: no translation address with matching address family found.
pfctl: Syntax error in config file: pf rules not loaded"

This change changes the address family for ipv6 addresses from "inet" to "inet6". Specifications for ipv4 addresses are unchanged.
@tschettervictor
Copy link
Collaborator

Can you test #765?

It has all this and more...

@sinclairday
Copy link
Author

Can you test #765?

It has all this and more...

I did a quick smoke test of #765, and dual-stack worked nicely. I will comment more on the #765 thread.

@bmac2
Copy link
Collaborator

bmac2 commented Jan 29, 2025

@sinclairday if you can comment with what you tested on the other PR it would help. Especially since you are using dual stack

@tschettervictor @yaazkal

@sinclairday
Copy link
Author

sinclairday commented Jan 29, 2025

@sinclairday if you can comment with what you tested on the other PR it would help. Especially since you are using dual stack

@tschettervictor @yaazkal

I added #765 (comment) detailing my test and results.

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.

3 participants