Firewall: Rules: Add af-to (address family translation) to filter rules - #10638
Firewall: Rules: Add af-to (address family translation) to filter rules#10638Monviech wants to merge 1 commit into
Conversation
|
This will not work well with shared forwarding. I suggest this to be something for 27.1 otherwise it will rain bug reports. |
|
Could add a validation that when shared forwarding is enabled you cannot create af-to rules, and at some point remove that validation? |
|
No we simply need to test this rigorously and expand the kernel side code. I also expect general bugs in that area relating to shaping, route-to and related functionality. |
|
route-to and et al are not supported with af-to, the man pages states all routing decisions are overwritten by af-to. But you are right this looks like a simple change on the surface but the waters are deep indeed. |
|
Well, the issue is that all the implementation is done in pf_route/pf_route6 so even if it looks like features do not overlap they actually do. There will be more edge cases. cheers, |
|
Eventually we could flip our defaults as well for shared forwarding, when not using ipfw's rules to redirect traffic to dummynet, it should be less needed anyway. But that's more a long term discussion, do we want to maintain it in the long run, or rather have it removed at some point (not something we need to decide right now, but might make certain next steps easier). Food for thought |
Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:
If AI was used, please disclose:
Describe the problem
Fixes: #10570
This adds both NAT64 and NAT46 capabilities as it seems.
Test:
The test are the rules specified in the pf.conf(5) manpage: