frankiejol / snortban Goto Github PK
View Code? Open in Web Editor NEWParses the snort alert log and creates one line logs suitable for fail2ban
Parses the snort alert log and creates one line logs suitable for fail2ban
SNORTBAN Parses the snort alert log and creates one line logs suitable for fail2ban. REQUIRES - Perl - One Perl module: Proc::PID::File. On Debian, Ubuntu and derivates install it issuing: # apt-get install libproc-pid-file-perl - fail2ban - snort HOW TO INSTALL - Copy the snortban file to a place suitable, run it from /etc/rc.loca or create a service file. It must be called with an '&' so it goes to background. - Add an entry in your logrotate.d/snort file to rotate your alert.ban file. USAGE snortban [--debug] [--logfile=/var/log/snort/alert] [--banfile=/var/log/snort/alert.ban] & USING FROM fail2ban When running, snortban will log entries to the banfile like this: Thu Jan 12 09:56:07 2012 [Priority: 3] 1.2.3.4 -> 5.6.7.8 [**] [122:3:0] (portscan) TCP Portsweep [**] Filters must be created in fail2ban to check it. Two examples are in this package: snortp1.conf and snortp2.conf. Those fails should be in /etc/fail2ban/filter.d/ Add this to your jail.conf file so the rules are used: [snortp1] enabled = true port = 22 banaction= iptables-allports filter = snort_p1 maxretry = 1 logpath = /var/log/snort/alert.ban [snortp2] enabled = true port = 22 banaction= iptables-allports filter = snort_p2 maxretry = 10 logpath = /var/log/snort/alert.ban LICENSE GNU GENERAL PUBLIC LICENSE Version 3 http://www.gnu.org/licenses/gpl.html AUTHOR Francesc Guasch - frankie etsetb upc edu
github does not have message support between users but we can surely add a positive issue ๐
Thank you for this old but yet still working trick!!!
-B
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.