[arm-allstar] Script to ban IP

David McGough kb4fxc at inttek.net
Mon Jul 1 01:49:16 EDT 2019



Personally, I don't recommend fail2ban on the RPi platform. While this
utility can be very useful, it can also be VERY, VERY HEAVY!  It can
unexpectedly consume lots of CPU cycles and memory, causing more of a
headache than the problem it should solve.

BTW, I run and manage fail2ban across a large PC server farm. 


Just my $0.02.


73, David KB4FXC





On Sun, 30 Jun 2019, "WH6AV Jesse via ARM-allstar" wrote:

>  From SSH CLI prompt, type the following without the <> of course.
> 
> iptables -I INPUT 1 -s <IPADDRESS>/32 -j DROP
> 
> Above iptables statement will insert the rule as the first entry into 
> the INPUT table.
> 
> My advise is to run FAIL2BAN along with IPTABLES.  Set your BANTIME to a 
> large number to your satisfaction.
> 
> ---
> WH6AV
> Gescio Alpuro
> Hamshack Hotline
> Senior Engineer
> Asia Pacific Vice President
> PBX Line: 3234872461
> HHUS Ext: 4532
> HHAP Ext: 30001
> 
> On 2019-06-30 07:05, "Rachid Karroo via ARM-allstar" wrote:
> > Dear all
> > 
> > Is there a script that I could insert into my Hamvoip/Supermon on my PI 
> > to
> > block an IP access?
> > Checking my web access log, I saw an IP (reported as abuse) trying to 
> > get
> > into here.
> > 
> > Thanks
> > 73s
> > Rachid
> > 3B8FP
> > _______________________________________________
> > 
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > 
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> _______________________________________________
> 
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
> 



More information about the ARM-allstar mailing list