Closed xujunjie-cover closed 7 months ago
@xujunjie-cover Thanks for digging into this and being willing to contribute a fix.
When I tested it in my environment, I found that there was still a small problem where it was trying to delete the valid inet6 prefixed ipsets on cleanup.
It looks like this is because the ipset needed to be prefixed correctly when it was generated. I also added some unit tests to this to hopefully prevent regression.
ipset name has prefix "inet6:" for ipv6. so ip6tables rule also need to convert ipset name.
Issue: #1653