[arm-allstar] Script to ban IP

WH6AV Jesse wh6av at allpuremedia.com
Mon Jul 1 01:30:48 EDT 2019


 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


More information about the ARM-allstar mailing list