ritsu / ipset-fail2ban Goto Github PK
View Code? Open in Web Editor NEWBash script to convert fail2ban IP addresses to an ipset blacklist
Bash script to convert fail2ban IP addresses to an ipset blacklist
In fail2ban v0.8.13 banned ips text pattern is different. In ipset-fail2ban.sh line 264 script is looking for "Banned IP list:", but the output of fail2ban-client is "IP list" without the word "Banned":
Status for the jail: xxxxx
|- filter
| |- File list: /xxxxxx/rejectlog
| |- Currently failed: 7
| - Total failed: 7175
- action
|- Currently banned: 4
| `- IP list: xxxx.xxxx.xxxx.xxxx
What should be the banaction in the jails? can it be iptables-multiport, iptables-ipset-proto6 or any others?
The title pretty much explains it. The ipset get's created but no addresses added to it unless I change the bantime to another value.
Hi all,
thanks for the great project. Currently the ipset-fail2ban.sh block the entire IP op in- and outbound. Is it possible to modify the ipset-fail2ban.sh, that only incoming connections are blocked but not outgoing? Or as an alternative top block e.g. only port 22 from the blacklisted IP's?
Thanks.
Hello, thanks for the great script! I use it on my server, and it worked wonders. I was wondering whether there is a script to uninstall the changes? For example, I would like a way to completely remove everything, in case I would need it for the future.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.