[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:

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
7,483
1,396
164
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
 

tesreal

New Member
May 6, 2022
2
0
1
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?
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
7,483
1,396
164
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 your own in 60 seconds.

Buy now!