-
Notifications
You must be signed in to change notification settings - Fork 20
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
fw4: when ipset matches MAC, allow set family to 'any' #35
base: master
Are you sure you want to change the base?
Conversation
When filtering by MAC address, it is usually necessary to filter both IPv4 and IPv6. If it is not allowed to set the family of ipset to any, it will be necessary to create a separate, identical ipset for both IPv4 and IPv6. Fixes: openwrt#16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does what it says.
So I just stumbled upon this PR while looking again at #16 and after testing it I don't see how it "fixes" anything. The |
@f00b4r0 To maintain compatibility with the configuration, the default value for the ipset family is still ipv4. I tested the configuration from #16 as follows:
The generated nftables rules are:
It can be seen that this modification is effective. |
I know, it duly prints warning when that is employed. |
@zsien unfortunately while the test you performed works, this one doesn't:
It fails to load the firewall with:
I also don't think that HTH |
When filtering by MAC address, it is usually necessary to filter both IPv4 and IPv6.
If it is not allowed to set the family of ipset to any, it will be necessary to create a separate, identical ipset for both IPv4 and IPv6.
Fixes: #16