Open chrislittle opened 7 years ago
Sure, I'll take a look.
I had a look at this and you can specify multiple CIDR as source restrictions. I used the following command:
clc server update-public-ip-address --server-name MYSERVERNAME --public-ip xxx.xxx.xxx.xxx --ports port=80,protocol=tcp --source-restrictions "CIDR=70.100.60.140/32" "CIDR=71.100.60.0/24"
@richardcase so the space vs. a comma was the trick.
I was issuing clc server update-public-ip-address --server-name MYSERVERNAME --public-ip xxx.xxx.xxx.xxx --ports port=80,protocol=tcp --source-restrictions "CIDR=70.100.60.140/32","CIDR=71.100.60.0/24"
should we maybe put something in the code as the command is accepted with a comma but doesn't do anything but the last ip listed. not what we should have I'd think.
That's a good point. I'll see what I can do.
can you look into the issue around CIDR on source IP filter on public ips:
if you add multiple CIDR (basically a list) it only sends the last item listed to the API