LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-10-2007, 01:21 AM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Squid Transparent Proxy


Hey if you have setup squid transparent proxy how do you know if its working? or do you still have to configure something like the browsers on the clients computer for it to work?
 
Old 07-10-2007, 03:25 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,956

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
If you're using transparent proxy there is no need to configure anything in the browsers. You just redirect the http traffic (i.e. the traffic to port 80) to the port squid is listening.
 
Old 07-10-2007, 09:52 PM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
How do you redirect http traffic? is it through firewall? what if i dont have a firewall?
 
Old 07-10-2007, 11:08 PM   #4
jusupov
LQ Newbie
 
Registered: Apr 2007
Distribution: ubuntu
Posts: 4

Rep: Reputation: 0
If you are talking about Proxy,at this point Squid, you must have it installed in your LAN. Then on your clients just point to that Squid server.

Now on the Squid server you will need to redirect all port 80 traffic to the squid port.
 
Old 07-11-2007, 01:17 AM   #5
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
how do you do this

Quote:
redirect all port 80 traffic to the squid port
 
Old 07-11-2007, 02:42 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,956

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
You can use the following iptables rule:
Code:
/usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
assuming that squid is listening on eth0 on port 3128. There is no need to configure anything on the client side.

Last edited by bathory; 07-11-2007 at 02:45 AM.
 
Old 07-11-2007, 04:54 AM   #7
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
oh so you use firewalls... ok now everything is clear .... thank you
 
  


Reply

Tags
squid, squidproxy


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 transparent proxy + logging varun_saa Mandriva 7 11-03-2006 09:21 PM
Squid as a transparent proxy kemplej Linux - Software 2 12-08-2004 06:00 PM
Squid Transparent Proxy 1jamie Linux - Security 7 09-26-2003 07:09 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 03:51 PM
squid transparent proxy...... hitesh_linux Linux - Networking 1 06-13-2003 04:24 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration