| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
06-27-2011, 06:09 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Rep:
|
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
|
|
|
|
06-27-2011, 06:30 AM
|
#2
|
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
|
06-27-2011, 06:45 AM
|
#3
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
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
|
|
|
|
06-28-2011, 02:02 AM
|
#4
|
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
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
|
|
|
|
06-28-2011, 02:47 AM
|
#5
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
Well, I guess this is because both your OS (RHEL 3) and squid (2.6.6) are quite old.
What is your kernel version:
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
|
|
|
|
06-28-2011, 03:27 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
hi
os kernel ver 2.4.21-4.EL
|
|
|
|
06-28-2011, 03:45 AM
|
#7
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
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)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|