How can I use fail2ban with DDWRT or a router?
I love using fail2ban, but there is no info about using fail2ban in a linux base ddwrt / optware / entware and so on.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I tried to add to the WIKI, you might wanna add in:
Right now, I use git but you can download the latest as well.
opkg install git git-http bash ca-bundle ca-certificates python cd /opt git clone https://github.com/fail2ban/fail2ban.git cd fail2ban mkdir -p /opt/log mkdir -p /opt/run/fail2ban mkdir -p /opt/lib/fail2ban/ cp /opt/fail2ban/config/jail.conf /opt/fail2ban/config/jail.local cp /opt/fail2ban/config/fail2ban.conf /opt/fail2ban/config/fail2ban.local
logtarget = /opt/log/fail2ban.log socket = /opt/run/fail2ban/fail2ban.sock pidfile = /opt/run/fail2ban/fail2ban.pid dbfile = /opt/lib/fail2ban/fail2ban.sqlite3
There will be an info that /etc/fail2ban is not writable, but it is not a problems
cd /opt/fail2ban setup.py install
#!/usr/bin/env bash /opt/bin/python /opt/fail2ban/bin/fail2ban-server -c /opt/fail2ban/config/ $1
by Patrik aka
p3x-robot / p3x / corifeus