LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid: acl'ing range of IPs (https://www.linuxquestions.org/questions/linux-software-2/squid-acling-range-of-ips-319631/)

ivanatora 05-03-2005 04:29 AM

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 ?

linuxxed 05-04-2005 08:14 AM

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 ?

ivanatora 05-04-2005 12:01 PM

192.168.0.45/255.255.255.225 => That means only one host - 192.168.0.45 itself.

linuxxed 05-04-2005 01:44 PM

Quote:

Originally posted by ivanatora
192.168.0.45/255.255.255.225 => That means only one host - 192.168.0.45 itself.
read again - last octet is 225 and not 255

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)

ivanatora 05-05-2005 02:43 AM

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.