LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SQUID and XP box (https://www.linuxquestions.org/questions/linux-server-73/squid-and-xp-box-808638/)

warint06 05-18-2010 11:57 AM

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

morphix 05-18-2010 10:29 PM

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?

warint06 05-19-2010 03:27 AM

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

morphix 05-20-2010 12:13 AM

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.


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