Squid: acl'ing range of IPs
I want to make acl class for a range of IPs, like 192.168.0.15-45. The examples given in the Documentation are using subnet maks like /16 or /255.255.0.0 onyl. That is different from IP range.
Can IP range be acl'ed ? |
I don't get your problem but if you want 192.168.0.15 to 192.168.0.45 then what can't you not use
192.168.0.45/255.255.255.225 ? |
192.168.0.45/255.255.255.225 => That means only one host - 192.168.0.45 itself.
|
Quote:
192.168.0.45/255.255.255.255 => one host 192.168.0.45/255.255.255.225 => hosts in your range!!! (There are many calculators on the internet which you can use to determine the subnet mask and hosts if you're confused) |
Aah, my bad :)
Anyway, I found this ipcalc but it seems that these subnets are thick ordered one to another. According to the upper example: 192.168.0.45/255.255.255.225 the subnet starts at 192.168.0.33 and ends at 192.168.0.62. What happens if the IPs I need fill a part from one subnet and a part from the next subnet? |
All times are GMT -5. The time now is 11:31 PM. |