Hi All,

I have found that the gateway ip can get allocated to the uservms in case of 
shared networks. This is a corner case and might happen accidentally. 

This happens because we allow addition guest ip ranges containing the gateway 
ip, while creating a shared network and internally there is no check 
to see if the ip getting allocated is a gateway ip. 

Simple way to fix this would be to fail the network creation if the supplied 
guest ip range contains the gateway ip.

example
gateway=172.16.88.1
netmask=255.255.255.0
guestIpRange=172.16.88.1 to 172.16.88.20.

we fail the network creation in this case as the gateway ip is a part of the 
guest ip range.


Any concerns or suggestions regarding this fix ?

bug id CLOUDSTACK-7536

Reply via email to