coreos / go-iptables

Go wrapper around iptables utility
Apache License 2.0
1.11k stars 257 forks source link

Skip warning about rules in legacy iptables. #105

Closed kuroa-me closed 1 year ago

kuroa-me commented 1 year ago

After iptables support nft backend, it will emit the following warning if there are rules in the legacy iptables. "# Warning: iptables-legacy tables present, use iptables-legacy to see them". This cause the header skipping to fail in the following loop.