LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-24-2010, 07:10 AM   #1
satish
Member
 
Registered: Jan 2006
Posts: 172

Rep: Reputation: 15
Squid Mac Blocking


Hello All

Anyone help me to configure mac based acl in squid. I am using Red Hat Linux 9. What is the procidure to configure mac based acl. Pls give me setp by setp information about mac based acl.

Any one in office configure the ip address of internet subnet and browse the net using the settings of proxy server. I want to give only 10 users the net connection so i want the mac binding through the squid proxy.

In this way my bandwidth will save and only authorized users will surf the net so i request you to give any help for this.

My Squid Proxy server Ip: 192.168.1.2
My Authorized Users Ip: 192.168.1.3 to 192.168.1.13

Note: The squid package is installed from rpm stub

Regards

Satish
 
Old 09-24-2010, 11:37 AM   #2
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, Kali Linux, Raspbian
Posts: 166

Rep: Reputation: 10
As you are using RHE 9 it might not help you but still try below link if it works.

Courtesy : http://wiki.squid-cache.org/SquidFaq/SquidAcl

MAC address is only available for clients that are on the same subnet. If the client is on a different subnet, then Squid can not find out its MAC address as the MAC is replaced by the router MAC when a packet is router.

To use ARP (MAC) access controls, you first need to compile in the optional code. Do this with the --enable-arp-acl configure option:

% ./configure --enable-arp-acl ...
% make clean
% make

If src/acl.c doesn't compile, then ARP ACLs are probably not supported on your system.

If everything compiles, then you can add some ARP ACL lines to your squid.conf:

acl M1 arp 01:02:03:04:05:06
acl M2 arp 11:12:13:14:15:16
http_access allow M1
http_access allow M2
http_access deny all

Last edited by kaushalpatel1982; 09-24-2010 at 11:41 AM.
 
  


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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
problems Blocking by Mac address maginotjr *BSD 4 08-27-2007 02:21 PM
MAC address blocking ridwan77 Linux - Newbie 1 04-22-2007 12:08 PM
blocking mac address and NAT com90185 Linux - Security 6 03-07-2005 06:37 PM

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

All times are GMT -5. The time now is 06:13 PM.

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