LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2017, 01:11 AM   #1
raghvendra.linux
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
mac arp block in Squid proxy server 2.6


i am unable to block by mac address in squid proxy server 2.6 and i also go through with these step.......


process is here to enable mac arp in squid

1. Download ftp://ftp.redhat.com/pub/redhat/linu...n/os/SRPMS/squ...
load it with
2. rpm -ivh squid-2.6.STABLE6-5.el5_1.3.src.rpm
then
3. updatedb
4. vim /usr/src/redhat/SPECS/squid.spec
5. add two line as below at %configure section see last two lines.
%configure \
** --exec_prefix=/usr \
** --bindir=%{_sbindir} \
** --libexecdir=%{_libdir}/squid \
** --localstatedir=/var \
** --datadir=%{_datadir} \
** --sysconfdir=/etc/squid \
** --enable-epoll \
** --enable-snmp \
** --enable-removal-policies="heap,lru" \
** --enable-storeio="aufs,coss,diskd,null,ufs" \
** --enable-ssl \
** --with-openssl=/usr/kerberos \
** --enable-delay-pools \
** --enable-linux-netfilter \
** --with-pthreads \
** --enable-ntlm-auth-helpers="SMB,fakeauth" \
** --enable-external-acl-helpers="ip_user,ldap_group,unix_group,wbinfo_group" \
** --enable-auth="basic,digest,ntlm" \
** --enable-digest-auth-helpers="password" \
** --with-winbind-auth-challenge \
** --enable-useragent-log \
** --enable-referer-log \
** --disable-dependency-tracking \
** --enable-cachemgr-hostname=localhost \
** --enable-underscores \
** --enable-basic-auth-helpers="LDAP,MSNT,NCSA,PAM,SMB,YP,getpwnam,multi-domain-NTLM,SASL" \
** --enable-cache-digests \
** --enable-ident-lookups \
** %ifnarch ppc64 ia64 x86_64 s390x
** --with-large-files \
** %endif
** --enable-follow-x-forwarded-for \
** --enable-wccpv2 \
** --enable-fd-config \
** --with-maxfd=16384 \
** --enable-arp \****** <==========added line 1
** --enable-arp-acl \** <==========added line 2*********
6. rpmbuild -ba /usr/src/redhat/SPECS/squid.spec
7. Wait some time let it compile have cup of coffee
then load the rpm
rpm -ivh /usr/src/redhat/RPMS/i386/squid-2.6.STABLE6-5.3.i386.rpm
8. Then edit /etc/squid/squid.conf
*
#----the sample code-----
acl aclmac arp 00:08:A1:95:714
http_access deny aclmac
 
Old 07-19-2017, 03:17 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
That looks correct. Did you try to restart squid after you made the configuration change? And, could you please put code within [code] tags?
 
Old 07-19-2017, 04:25 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,871

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
@OP
Quote:
i am unable to block by mac address in squid proxy server 2.6 and i also go through with these step.......
<snip>
8. Then edit /etc/squid/squid.conf
*
#----the sample code-----
acl aclmac arp 00:08:A1:95:714
http_access deny aclmac
Could you post the squid.conf, or at least the acl part.
Please note that the "http_access ..." directives order is very important on how squid applies clients restrictions.

Regards
 
  


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
Block unwanted MAC address with static arp table yenn Linux - Networking 3 10-13-2014 03:39 PM
How to block udp port in squid proxy server .? skymet Linux - Server 1 12-31-2012 12:54 PM
Block a mac address on proxy server. Satyaveer Arya Linux - Server 2 03-09-2012 04:54 AM
how do i get squid proxy server to block websites using webmin baronobeefdip Linux - Software 3 07-19-2010 10:35 AM
I want to block the google talk from my squid proxy server ver 2. ameyswi2 Linux - Newbie 3 07-25-2009 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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