[SOLVED] cidr: invalid format - Invalid prefix, even though its valid

tesreal

New Member
May 6, 2022
2
0
1
Hello,

I was trying to add alias for my below mentioned WAN IPs for use in firewall rules:
Code:
1xx.2xx.1xx.98/27
(actual ip masked for security reasons)

but I get error as below
Code:
Parameter verification failed. (400)

cidr: invalid format - Invalid prefix 11111111111100111111111001100010/27
(randomly changed bits for security reasons)

I could clearly verify that the CIDR is correct and I am able to specify the same range on my physical firewall appliance without errors.

Am I doing something wrong?

Thanks!
 
Last edited:
it is invalid though (.98 would be an address within the /27 network) - some parsers are more lenient and automatically map this for you; the correct network is probably xx.xx.xx.96/27
 
it is invalid though (.98 would be an address within the /27 network) - some parsers are more lenient and automatically map this for you; the correct network is probably xx.xx.xx.96/27
That was indeed the issue. Thanks @fabian

P.S. Is there a way to mark a reply as answer?
 
no, but you can mark a whole thread as solved by editing the first post ;)