LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SQUID:How can I block my LAN clients accessing Internet (https://www.linuxquestions.org/questions/linux-networking-3/squid-how-can-i-block-my-lan-clients-accessing-internet-108953/)

mwj 10-27-2003 02:05 AM

SQUID:How can I block my LAN clients accessing Internet
 
Hi
How can I block Maximum of my clients accessing the Internet.I want to allow only few of my clients.
mwj

RickyJaff 10-27-2003 04:01 AM

if you wanna allow few Lan user to use squid then find the ip address of those users and
Do the following in your squid.conf
-----------------------------------------------------------------------------------------------
acl validuser src 192.168.0.4/255.255.255.0 #Line 1
acl rangeofvaliduser 192.168.0.6-192.168.0.20/255.255.255.0 #Line 2

http_access deny all
http_access allow validuser
http_access allow rangeofvaliduser
----------------------------------------------------------------------------

Now in line u can give the ip of a specific user which u wanna give access to net.
And from Line2 you can specify a range of user who are allowed to connect internet thruogh proxy

Also here validuser and rangeofvaliduser are the user defined variable assigned to the range of ip address or a specific ip address.


All times are GMT -5. The time now is 01:00 PM.