LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid Configuration help (https://www.linuxquestions.org/questions/linux-newbie-8/squid-configuration-help-4175430616/)

zafar_dandoti 10-05-2012 12:49 AM

Squid Configuration help
 
2 Attachment(s)
hello friends.
i am very new to linux world. i need your help in configuring
squid proxy on my home network.
my laptop is connected to internet through wired connection (eth0) and wireless adaptor to my local network. i installed squid latest version through yum install command. i made some changes in squid.conf(please see the attached snapshots of configuration file Attachment 10872
Attachment 10873)but not able to browse on my other lan pc's
thanx in advance
i use fedora 17 on my laptop(squid server) and one machine with win xp and other is ubuntu 12. i made necessary changes to browser settings to use proxy server.

GlennsPref 10-05-2012 05:32 AM

Hi, check you have port-forwarding set to 1 in

/etc/sysctl.conf

Code:

net.ipv4.ip_forward=1
Add (uncomment (#)) this line if not listed.

HTH, Glenn

zafar_dandoti 10-06-2012 09:58 AM

thanx for ur kind attention GlennPref , yesterday i tried changing http_port from 3128 to 8080
now i can browse from my lan pc's . i didn't understand why squid server not listening to default 3128 port.
any way my problem is solved , thank u very much



Quote:

Originally Posted by GlennsPref (Post 4797924)
Hi, check you have port-forwarding set to 1 in

/etc/sysctl.conf

Code:

net.ipv4.ip_forward=1
Add (uncomment (#)) this line if not listed.

HTH, Glenn


GlennsPref 10-07-2012 02:19 AM

Hi, glad you have it working.

I think you may have needed to make that forwarding connecting with iptables rules.

EXT_IF=eth0 INT_IF=eth1
Code:

## -- Transparent proxy to Squid --- ##
#

        $IPTABLES -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

        $IPTABLES -t nat -A PREROUTING -i $INT_IF -p tcp --dport 80 -j REDIRECT --to-port 3128


zafar_dandoti 10-08-2012 09:05 AM

he he Glenn its working, great
thanks a lot ..


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