[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 ;)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!