LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2012, 01:49 AM   #1
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
Squid Configuration help


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 Click image for larger version

Name:	snapshot1.png
Views:	15
Size:	166.5 KB
ID:	10872
Click image for larger version

Name:	snapshot2.png
Views:	11
Size:	123.0 KB
ID:	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.
 
Old 10-05-2012, 06:32 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
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
 
Old 10-06-2012, 10:58 AM   #3
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
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 View Post
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
 
Old 10-07-2012, 03:19 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
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
 
Old 10-08-2012, 10:05 AM   #5
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Original Poster
Rep: Reputation: 13
he he Glenn its working, great
thanks a lot ..
 
  


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
Squid Configuration Help bryanmuts2000 Linux - Newbie 5 10-05-2011 07:31 AM
Squid Configuration yadunandan Linux - Newbie 1 04-14-2011 02:32 AM
Problem with configuration of Squid server behind a squid ajitup Linux - Server 13 08-12-2009 11:55 PM
Squid configuration katvis Linux - Server 2 04-03-2008 12:14 PM
Squid: special configuration for remote Squid server hamish Linux - Software 0 12-06-2005 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration