Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

How to block permanent IP range on Fail2ban?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
DuronBR
Posts: 14
Joined: Tue Jul 16, 2019 12:36 pm

Os: CentOS 5x
Web: apache + nginx
How to block permanent IP range on Fail2ban?
  • Quote

Post by DuronBR » Fri Aug 16, 2019 2:15 pm

How to block permanent IP range on Fail2ban?

For example:
87.0.0.0/8
92.0.0.0/8
116.0.0.0/8
119.0.0.0/8
122.0.0.0/8
211.0.0.0/8


Searching I found something like:

Code: Select all

File: jail.local

Add:
banip 87.0.0.0/8
banip 92.0.0.0/8
banip 116.0.0.0/8
banip 119.0.0.0/8
banip 122.0.0.0/8
banip 211.0.0.0/8


For the panel has a limit of 5 tracks, I would like to know how to add more ip tracks.
https://mydomain.com:8083/list/firewall/banlist/

I did not succeed, anyone know how?
Top

Wibols
Posts: 21
Joined: Tue Jun 25, 2019 7:42 pm

Os: CentOS 6x
Web: apache + nginx
Re: How to block permanent IP range on Fail2ban?
  • Quote

Post by Wibols » Fri Aug 16, 2019 3:18 pm

You can add a new rule in "VestaCP/Firewall/Fail2Ban/+". For example, 123.123.123.0/24 blocks all IPs from 123.123.123.0 to 123.123.123.254 for ever.
Top

DuronBR
Posts: 14
Joined: Tue Jul 16, 2019 12:36 pm

Os: CentOS 5x
Web: apache + nginx
Re: How to block permanent IP range on Fail2ban?
  • Quote

Post by DuronBR » Fri Aug 16, 2019 8:14 pm

Wibols wrote: ↑
Fri Aug 16, 2019 3:18 pm
You can add a new rule in "VestaCP/Firewall/Fail2Ban/+". For example, 123.123.123.0/24 blocks all IPs from 123.123.123.0 to 123.123.123.254 for ever.
Vestacp is limiting to 5 ip ranges!
I need to block ip tracks from an entire country.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password