Browse Source

* more jail samples

master
Alex 'AdUser' Z 2 years ago
parent
commit
7789256ca2
  1. 3
      configs/conf-available/20-jail-dovecot.conf.in
  2. 3
      configs/conf-available/20-jail-nginx.conf.in
  3. 3
      configs/conf-available/20-jail-postfix.conf.in
  4. 3
      configs/conf-available/20-jail-ssh.conf.in
  5. 4
      configs/f2b.conf.in
  6. 2
      debian/f2b.install

3
configs/conf-available/20-jail-dovecot.conf.in

@ -0,0 +1,3 @@
[jail:dovecot]
source = files:/var/log/mail.log
filter = preg:${CMAKE_INSTALL_FULL_DATAROOTDIR}/f2b/filters/dovecot.preg

3
configs/conf-available/20-jail-nginx.conf.in

@ -0,0 +1,3 @@
[jail:nginx]
source = files:/var/log/nginx/*access*.log
filter = pcre:${CMAKE_INSTALL_FULL_DATAROOTDIR}/f2b/filters/nginx-bots.pcre

3
configs/conf-available/20-jail-postfix.conf.in

@ -0,0 +1,3 @@
[jail:postfix]
source = files:/var/log/mail.log
filter = preg:${CMAKE_INSTALL_FULL_DATAROOTDIR}/f2b/filters/postfix.preg

3
configs/conf-available/20-jail-ssh.conf.in

@ -0,0 +1,3 @@
[jail:ssh]
source = files:/var/log/auth.log
filter = preg:${CMAKE_INSTALL_FULL_DATAROOTDIR}/f2b/filters/ssh.preg

4
configs/f2b.conf.in

@ -30,7 +30,3 @@ listen = unix:/var/run/f2b.sock
; auth used only for 'inet' connections
; if password not set - it will be generated on each restart, see logs
;password = <something-long-enough>
[jail:ssh]
source = files:/var/log/auth.log
filter = preg:${CMAKE_INSTALL_FULL_DATAROOTDIR}/f2b/filters/ssh.preg

2
debian/f2b.install vendored

@ -2,7 +2,7 @@ etc/f2b/conf-available/*-source-files.conf
etc/f2b/conf-available/*-source-portknock.conf
etc/f2b/conf-available/*-filter-preg.conf
etc/f2b/conf-available/*-backend-exec-*.conf
etc/f2b/conf-available/*-jail-global.conf
etc/f2b/conf-available/*-jail-*.conf
etc/f2b/conf-enabled
etc/f2b/f2b.conf
usr/bin/f2b-*-test

Loading…
Cancel
Save