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

Blacklist without using IPSet for Docker Containers #4

Open
ghost opened this issue Dec 25, 2018 · 1 comment
Open

Blacklist without using IPSet for Docker Containers #4

ghost opened this issue Dec 25, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 25, 2018

Is there a way to get the list of rules into iptables without using ipset?

One solution I've found, although it's partial and really just for port 80 and 443, is to use the very fast dbm module on Apache 2.4. It's hard to block lots of IPs fast at the web server level, but that module allow me to create a map file from a txt file and then use that to perform lookups quickly.

I could create a pull request to add this install code snippet to the README if you don't mind?

@stamparm
Copy link
Owner

stamparm commented Dec 26, 2018

You mean something like https://stackoverflow.com/a/15580768 ? I could just put a reference link to that same answer inside the README

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