LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2003, 02:05 AM   #1
mwj
LQ Newbie
 
Registered: Sep 2003
Location: Pakistan. Islamabad
Distribution: Red Hat-9
Posts: 24

Rep: Reputation: 15
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
 
Old 10-27-2003, 04:01 AM   #2
RickyJaff
Member
 
Registered: Oct 2003
Distribution: RedHaT, ELX, DragonLinux, Knoppix.
Posts: 89

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Citrix Clients Behind Squid Proxy jamminblue Linux - Networking 0 02-16-2005 10:03 AM
How can i block msn through squid linuxeagle Linux - Networking 5 04-08-2004 09:08 AM
Squid not loading images on clients mikeaustn Linux - Software 0 03-17-2004 04:33 PM
linux squid and iptables for secure lan for internet access. pune_abhishek Linux - Networking 4 11-30-2003 07:20 PM
Secure Proxy Configuration(squid) for a LAN to access Internet pune_abhishek Linux - Networking 5 11-30-2003 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:49 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