LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-18-2010, 11:57 AM   #1
warint06
LQ Newbie
 
Registered: May 2010
Posts: 8

Rep: Reputation: 0
SQUID and XP box


i have installed Squid as proxy server on my machine running centos

i have edit squid.conf file with most basic editing


acl UNET_networks src 10.0.0.0/8
http_access allow UNET_networks

visible_hostname server01.unet.com

and then service squid restart



my server/local machine has two network card installed
eth0-10.0.0.1 255.0.0.0
eth2-192.168.15.1 255.255.255.0

etho is local subnet
where as eth2 connects to adsl router

squid is working fine in my local machine when i put proxy address of 10.0.0.1 in my browser


but when i configure my xp machine browser
with 10.0.0.1 port 3128

its not working

i scroll the access.log file and there is nothing about xp machine

if i summarize
squid is working if i browse the internet from local machin "machine on which squid is configure" and access log is also maintain

squid or interner is not working if i browse from xp machine havng network address of 10.0.0.2 255.0.0.0
and no access log is maintained

plz help me out
http_access allow UNET_networks

visible_hostname server01.unet.com

and then service squid restart



my server/local machine has two network card installed
eth0-10.0.0.1 255.0.0.0
eth2-192.168.15.1 255.255.255.0

etho is local subnet
where as eth2 connects to adsl router

squid is working fine in my local machine when i put proxy address of 10.0.0.1 in my browser


but when i configure my xp machine browser
with 10.0.0.1 port 3128

its not working

i scroll the access.log file and there is nothing about xp machine

if i summarize
squid is working if i browse the internet from local machin "machine on which squid is configure" and access log is also maintain

squid or interner is not working if i browse from xp machine havng network address of 10.0.0.2 255.0.0.0
and no access log is maintained

plz help me out
 
Old 05-18-2010, 10:29 PM   #2
morphix
Member
 
Registered: Nov 2007
Location: Newcastle, Australia
Distribution: Ubuntu, Debian, Arch
Posts: 53

Rep: Reputation: 15
Can you please provide what you have placed for "http_port" configuration section?

Have you made sure you have no firewall (iptables) rules in place that is blocking the connections being made from LAN clients?
 
Old 05-19-2010, 03:27 AM   #3
warint06
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
yup thnx

my port was block in iptables
after enabling it. squid works at client end too..


thnx for the help


one question more
i want to make cache file at /cache ....
where /cache is a different partition

when i edit

cache_dir directive with
cache_dir ufs /cache 4000 16 256

saving file

chmod 777 /cache -R
squid -z


then when i hit service squid restart

selinux blocks the opertation and squid then never starts...


what ll be the problem

i ll be grtfull for your help
 
Old 05-20-2010, 12:13 AM   #4
morphix
Member
 
Registered: Nov 2007
Location: Newcastle, Australia
Distribution: Ubuntu, Debian, Arch
Posts: 53

Rep: Reputation: 15
You will need to add the applicable rule in the configuration file in /etc/apparmor.d/

Might i suggest keeping the same directory but mounting the other partition at this point, this way as long as you put the correct permissions to begin with there are no other problems.

Also, if for some reason that partition doesn't end up getting mounted, squid would simply use its normal directory on the current drive.

Eg. i have a 40GB drive mounted to my squid cache directory.
 
  


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
how to configure firewall squid box mattjamal Linux - Networking 2 09-30-2008 11:34 AM
iptables -> squid -> dansguardian (same box) knichel Linux - Security 1 05-14-2007 01:16 PM
squid NTLM question box paul_mat Linux - Networking 0 02-09-2006 12:11 AM
trying to install squid on a solaris 10 box krayz1e Solaris / OpenSolaris 33 05-24-2005 09:55 AM
dial-in server in a squid box mchitrakar Linux - Software 0 11-20-2004 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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