LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2005, 04:29 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
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 ?
 
Old 05-04-2005, 08:14 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
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 ?
 
Old 05-04-2005, 12:01 PM   #3
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
192.168.0.45/255.255.255.225 => That means only one host - 192.168.0.45 itself.
 
Old 05-04-2005, 01:44 PM   #4
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
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)
 
Old 05-05-2005, 02:43 AM   #5
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid can listen in 2 different Ips xrtc Linux - Networking 1 11-15-2005 12:32 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
Squid proxy and real IPs ivanatora Linux - Networking 2 07-19-2004 01:08 PM
how squid find ips mchitrakar Linux - Networking 3 06-11-2004 07:50 AM
Using IPCHAINS to allow only a range of IPs ganninu Linux - Security 1 01-13-2004 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration