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

Allow searching/listing bans from caUtils #1646

Open
goetzk opened this issue Nov 5, 2024 · 0 comments
Open

Allow searching/listing bans from caUtils #1646

goetzk opened this issue Nov 5, 2024 · 0 comments

Comments

@goetzk
Copy link
Contributor

goetzk commented Nov 5, 2024

caUtils provides a convenient way to remove all bans (clear-bans) but no way to list or query.

It would be great to have a list-bans which outputs all bans in the DB, ideally with an option to query for a specific IP/netblock.

eg listing bans (yes, these are example addresses)

./support/bin/caUtils list-bans
192.168.48.8
192.168.8.9
127.0.0.1
...

and querying a specific block (i imagine a single address would be the same but specified in full instead of wildcard)

./support/bin/caUtils list-bans --address='10.0.4.*'
10.0.4.74
10.0.4.122
10.0.4.229
10.0.4.8

I don't know if it would be easy or not, but it would be helpful if the date+time of banning (perhaps format '%FT%T') and reason for ban were included too.

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

1 participant