Page 1 of 1

VestaCP Firewall

Posted: Tue Mar 15, 2016 6:58 pm
by codemasterxv
Hello,

I would like to get some information regarding to allow and deny access to specific IP or specific range of IPs

In any rule configuration follows,

Action- A/D
Protocol- TCP/UDP
Port (ranges are acceptable)- any number of port
IP address (CIDR format is supported) <- Problem is here
Comment (optional)

1.How can I add multiple IP to allow or deny action. I tried by separating by , ; / but it is not working
2. How to block IP range?
3.How to block multiple IP ranges?

Thank you.

Re: VestaCP Firewall

Posted: Fri Mar 18, 2016 8:01 am
by mike08
Hello codemasterxv,

That proper way to block an ip is by going to Firewall --> List fail2ban --> Ban IP Address, the CIDR format should be the subnet like 104.236.66.100/29 which contains:

Code: Select all

104.236.66.96
104.236.66.97
104.236.66.98
104.236.66.99
104.236.66.100
104.236.66.101
104.236.66.102
104.236.66.103
Regards,

Re: VestaCP Firewall

Posted: Mon Mar 28, 2016 4:58 am
by codemasterxv
HEllo,

I am asking how to add multiple IP's or multiple IP ranges on same port with allow and disallow.
Example,

1> If I want to open 22 port for only 103.251.249.xx IP disallow expect from all.
2> If I want to open 22 port for specific range and disallow from all IP's.


Thank you.

Re: VestaCP Firewall

Posted: Tue Apr 12, 2016 10:25 am
by codemasterxv
Hello,

Someone replay please.

Thanks.

Re: VestaCP Firewall

Posted: Tue Sep 06, 2016 5:32 am
by jobilo
Hi
We have the same problem here, in fail2ban list i add
the range of ip to block but vesta show this error:
Error: invalid ip format :: 185.129.148.0/24
any idea?