-
Notifications
You must be signed in to change notification settings - Fork 259
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
Issues when parsing output from NFTables #49
Comments
Taking a look at this. |
Ideally we switch |
Really, we should move the whole library over to using |
More immediately, when using
However, when it is in nftables mode, the output includes the counters in
So we just have to detect that and work around. |
FWIW, I just posted a fix for the counters upstream. edit: Applied upstream, |
Running on a system using nftables for firewalling (IPTables version
iptables v1.8.0 (nf_tables)
), go-iptables causes aslice out of bounds
panic while trying to adjust some firewall rules.Relevant error message (generated by CNI portmap plugin): https://paste.fedoraproject.org/paste/Lt73H2OSbAzJJoc5eNJqRQ
This is seemingly caused by https://github.com/containernetworking/plugins/blob/master/plugins/meta/portmap/chain.go#L80 returning a slice with fewer than 2 entries.
I'm told this is likely a result of an error parsing the output of nftables-backed IPTables which seems to have slightly different field arrangement.
The text was updated successfully, but these errors were encountered: