LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid help require - allowing internet access (http://www.linuxquestions.org/questions/linux-server-73/squid-help-require-allowing-internet-access-545355/)

klmn1 04-12-2007 03:05 AM

Squid help require - allowing internet access
 
Hi there,

I am right now configuring Squid as my proxy server and I would only want to allow 15 out of 35 computers in our LAN to access the Internet.

My doubt here, the 15 computers IP addresses are in random order and we have the LAN on DHCP. With this how should I include the 15 random IPs into the internet allowed syntax and the other IPs will be automatically rejected?

Thanks
Law

carl0ski 04-12-2007 07:34 AM

Quote:

Originally Posted by klmn1
Hi there,

I am right now configuring Squid as my proxy server and I would only want to allow 15 out of 35 computers in our LAN to access the Internet.

My doubt here, the 15 computers IP addresses are in random order and we have the LAN on DHCP. With this how should I include the 15 random IPs into the internet allowed syntax and the other IPs will be automatically rejected?

Thanks
Law

Squid Supports creating rules based on a computers hostname as well and IP address

IP keep changing? use the hostname.

Download and install Webmin on the squid server to make configuring it easier.

manual example John Me cant use net
Jake Jill can
Code:

acl BadHostname srcdomain john me
acl goodHostnames srcdomain Jake Jill


Code:

http_access deny all BadHostname
http_access allow all goodHostnames



All times are GMT -5. The time now is 07:45 PM.