[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Servers Support  |  Topic: Restricting internet access with there IP addresses in squid
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Restricting internet access with there IP addresses in squid  (Read 1402 times)
0 Members and 1 Guest are viewing this topic.
moqthiyar
New Member

Offline Offline

Posts: 2


View Profile
« on: April 06, 2004, 02:07:51 AM »

Sir I am using squid as my proxy server I have given the “http access to allow all” entry in squid.conf file. And they are using it with proxy servers IP address and port number.
I want to restrict internet for some computers with there IP address.
Can you tell me how to configure it in squid.conf?
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #1 on: April 06, 2004, 03:00:20 AM »

first of all .u should have not used the allow all because then any one even from internet can access your proxy. ..
So first see that your squid.conf should look like this.
Squid Proxy configuration then to disallow some ips. then simply make an acl..
say you want to block 192.168.4.4 then
Code:
acl bad_ips src 192.168.4.4
http_access deny bad_ips
here bad_ips is a name for acl i have used.. u can use any thing ...
BTW.. ur type of questions has been already answered.. try to search the few threads related to squid.. Smiley
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #2 on: April 06, 2004, 06:53:01 AM »

Ricky, why not teach him to block a eth MAC address, this will permanently block the PC he wishes.
Logged
moqthiyar
New Member

Offline Offline

Posts: 2


View Profile
« Reply #3 on: April 06, 2004, 09:43:27 AM »

Thanks for your replay I am trying to setup with MAC addresses
But when I tried this
%  ./configure –enable-arp-acl…

It says “bash: fg: %: no such job”
I saw it in a squid documentation there it say if src/acl.c doesn’t compile, then ARP ACLs are probably not supported on your system.
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #4 on: April 06, 2004, 11:01:45 AM »

SO, did u start arp's service? Or have it installed?
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #5 on: April 07, 2004, 06:12:48 AM »

moqthiyar> do you know wht does they mean by compiling it with arp-acl it means you have to again recompile the squid.
I think you are using ".. " don't use them.
only use.. ./configure --enable-arp-acl --enable-linux-netfilter --enable-snmp --enable-delay-pools  and all the options u want.  

If that don't work then simply you can use iptables to block the users. Smiley
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 02:09:22 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]

[November 28, 2008, 06:47:09 AM]

[November 26, 2008, 11:53:32 AM]

[November 26, 2008, 04:00:22 AM]

[November 25, 2008, 06:44:47 PM]
Members
Total Members: 6252
Latest: rash31
Stats
Total Posts: 8285
Total Topics: 2257
Online Today: 34
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 18
Total: 18
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc