LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-27-2011, 06:09 AM   #1
krish.kittu7
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
enable-arp-acl squid starting error


hi all
This is krishna ,I am using redhat 3.0 i want to configure arp-acl mac based blocking to windows clints

i have done bellow configuration but finally squd starting error is showing


can any help me on this doc

#rpm -e squid warning: /etc/squid/squid.conf saved as /etc/squid/squid.conf.rpmsave

# rpm -ivh squid-2.6.STABLE6-5.el5_1.3.src.rpm


warning: squid-2.6.STABLE6-5.el5_1.3.src.rpm: V3 DSA signature: NOKEY, key ID 37017186
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
1:squid ########################################### [100%]

[root@test12345 /]# updatedb
[root@test12345 /]#
[root@test12345 /]# vi /usr/src/redhat/SPECS/squid.spec

in this file edited

--enable-arp \
--enable-arp-acl \
:wq|
[root@test12345 /]#rpmbuild -ba /usr/src/redhat/SPECS/squid.spec

finally complited like this


Processing files: squid-debuginfo-2.6.STABLE6-5.3
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/squid-2.6.STABLE6-root
Wrote: /usr/src/redhat/SRPMS/squid-2.6.STABLE6-5.3.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/squid-2.6.STABLE6-5.3.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/squid-debuginfo-2.6.STABLE6-5.3.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.86942
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd squid-2.6.STABLE6
+ rm -rf /var/tmp/squid-2.6.STABLE6-root
+ exit 0
[root@test12345 /]#
[root@test12345 /]# rpm -ivh /usr/src/redhat/RPMS/i386/squid-2.6.STABLE6-5.3.i386.rpm
Preparing... ########################################### [100%]
1:squid ########################################### [100%]
[root@test12345 /]#

[root@test12345 /]#squid -v

Squid Cache: Version 2.6.STABLE6
configure options: '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--localstatedir=/var' '--datadir=/usr/share' '--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' '--with-large-files' '--enable-follow-x-forwarded-for' '--enable-wccpv2' '--enable-fd-config' '--with-maxfd=16384' '--enable-arp' '--enable-arp-acl' 'CFLAGS=-fPIE -Os -g -pipe -fsigned-char' 'LDFLAGS=-pie' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i386-redhat-linux-gnu'


[root@test12345 /]# vi /etc/squid/squid.conf

in this file added acl mac in our network

acl our_networks src 192.168.100.0/24
acl aclmac arp 00:E0:1C:3B:BB:EA

http_access deny aclmac
http_access allow our_networks


then squid restarted

but its showing failed with out an error


[root@test12345 /]# service squid start
Starting squid: ................. [FAILED]
[root@test12345 /]#



can any one tell me solution for this problem
plz help me
 
Old 06-27-2011, 06:30 AM   #2
krish.kittu7
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
error is showing like this

Jun 27 16:17:28 localhost squid[31092]: Squid Parent: child process 31114 started\
Jun 27 16:17:28 localhost squid[31092]: Squid Parent: child process 31114 exited due to signal 6
Jun 27 16:17:28 localhost squid[31092]: Exiting due to repeated, frequent failures
Jun 27 16:18:53 localhost sshd(pam_unix)[31030]: session closed for user root


i used also debug command but showing error like this

[root@test12345 root]# /usr/sbin/squid -d1 -N
FATAL: comm_select_init: epoll_create(): (38) Function not implemented

Squid Cache (Version 2.6.STABLE6): Terminated abnormally.
CPU Usage: 0.030 seconds = 0.010 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 518
Aborted (core dumped


help me

Last edited by krish.kittu7; 06-27-2011 at 06:54 AM.
 
Old 06-27-2011, 06:45 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Hi,

You should take a look at the various log files under /var/log and /var/log/squid
You may also try to start squid in debug mode and watch the output on screen:
Code:
/usr/sbin/squid -d1 -N
Regards
 
Old 06-28-2011, 02:02 AM   #4
krish.kittu7
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
i used also debug command but showing error like this

[root@test12345 root]# /usr/sbin/squid -d1 -N
FATAL: comm_select_init: epoll_create(): (38) Function not implemented

Squid Cache (Version 2.6.STABLE6): Terminated abnormally.
CPU Usage: 0.030 seconds = 0.010 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 518
Aborted (core dumped


help me
 
Old 06-28-2011, 02:47 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Well, I guess this is because both your OS (RHEL 3) and squid (2.6.6) are quite old.
What is your kernel version:
Code:
uname -r
If you can't upgrade RHEL, try to install a more recent squid version (perhaps compiling from source) and see if it works with your OS

Regards
 
Old 06-28-2011, 03:27 AM   #6
krish.kittu7
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
hi

os kernel ver 2.4.21-4.EL
 
Old 06-28-2011, 03:45 AM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Kernel 2.4.x does not support epoll, so if you want to use squid, remove the "--enable-epoll' option (or use --enable-poll) and recompile.
And maybe it's better to use a more recent squid version (2.6.23 is the latest in 2.6 branch)
 
  


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
add --enable-arp in squid Dalbir Singh Linux - Server 4 09-04-2010 12:35 AM
Squid cannot access ACL (strtokfile error) lieb39 Linux - Server 10 08-25-2009 11:20 AM
Squid ACL error dellthinker Linux - Server 2 08-21-2009 03:31 PM
ARP (MAC) Authentication in SQUID error farrukhndm Linux - Server 1 04-08-2008 07:27 AM
Error starting Squid mrpc_cambodia Red Hat 2 07-20-2004 03:45 AM


All times are GMT -5. The time now is 07:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration