Skip to content
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

StructuredStats fails to parse negated source/dest CIDRs #109

Open
jroper opened this issue Aug 23, 2023 · 1 comment
Open

StructuredStats fails to parse negated source/dest CIDRs #109

jroper opened this issue Aug 23, 2023 · 1 comment

Comments

@jroper
Copy link

jroper commented Aug 23, 2023

I have the following chain:

target     prot opt source               destination         
RETURN     all  --  anywhere             192.168.0.0/16      
RETURN     all  --  anywhere             172.16.0.0/12       
RETURN     all  --  anywhere            !127.0.0.0/8    

Invoking StructuredStats returns the following error:

invalid CIDR address: !127.0.0.0/8%!(EXTRA string=could not parse destination)
@itsmomchilovtsi
Copy link

try out this lib: https://github.com/singchia/go-xtables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants