Skip to content

Latest commit

 

History

History
executable file
·
38 lines (33 loc) · 900 Bytes

README.md

File metadata and controls

executable file
·
38 lines (33 loc) · 900 Bytes

s-nomp-fail2ban

fail2ban filters for s-nomp

/etc/fail2ban/jails.d, add to the current active *.conf file.

[s-nomp-invalid-solution-version]
enabled = true
protocol = tcp
filter = s-nomp-invalid-solution-version
logpath = /home/pool/.pm2/logs/pool-out.log
action   = iptables-allports[name=S-NOMP, protocol=all]
maxretry = 1
# 1 hour
bantime = 3600

[s-nomp-InvalidBytes]
enabled = true
protocol = tcp
filter = s-nomp-InvalidBytes
logpath = /home/pool/.pm2/logs/pool-out.log
action   = iptables-allports[name=S-NOMP, protocol=all]
maxretry = 1
# 24 hours
bantime = 86400

[s-nomp]
enabled = true
protocol = tcp
filter = s-nomp
logpath = /home/pool/.pm2/logs/pool-out.log
action   = iptables-allports[name=S-NOMP, protocol=all]
maxretry = 10
# 10 minutes
bantime = 360

Put s-nomp.conf, s-nomp-InvalidBytes.conf and s-nomp-invalid-solution-version.conf in /etc/fail2ban/filters.d