lichess-org / leroyjenkins Goto Github PK
View Code? Open in Web Editor NEWFollow ban logs to manage ipsets
License: GNU General Public License v3.0
Follow ban logs to manage ipsets
License: GNU General Public License v3.0
leroyjenkins might not be the best name for a software project if one of the goals is to be inclusive. For a lot people that meme is linked with racism and minstrel shows.
Maybe named pipes instead of sockets ...
mkfifo leroy_sink
cargo run --release -- ... 0<leroy_sink
And from elsewhere:
cat ips.txt > leroy_sink
Test this with nginx.
Undo this, but fix the existence test: 76591ee
Checking whether an IP is in the ipset is one of the slower parts of the program. During a DDoS, leroy will often be faced with a large list of duplicate IPs that made a huge number of simultaneous requests, it would be good to add each banned IP to an in-memory cache that is cheap to check and we skip any lines that are in that cache. This should significantly improve performance in DDoS circumstances
Any ip that shows up gets banned immediately (no rate limiter)
The idea being that we could have a more ban-happy leroy for situations where the rate of 429s from nginx hit a certain threshold. e.g, when the 429s ramp up globally, we can be more ban happy.
https://github.com/lichess-org/leroyjenkins/blob/main/src/main.rs#L52C5-L52C19 is no longer used, remove it.
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.