LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-07-2003, 12:04 AM   #1
grimlock
LQ Newbie
 
Registered: Apr 2003
Location: TX
Distribution: Red Hat 8, Mandrake 9.1
Posts: 1

Rep: Reputation: 0
Problem with Squid


I'm trying to setup a transparent proxy (gateway) using Squid using the instructions found on this board and tldp.org . I've got RH 8 running squid and it works if I set the proxy in the browser options, e.g. 192.168.0.1 Port:3128.

However, when I take it off and get it to do it transparently, I can't get online from a client.

Here is my setup:
External card (eth0) w/ static IP from ISP: 208.1XX.XXX.XXX
Internal card (eth1) w/static IP of 192.168.0.1

Squid.conf settings:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

IPtables:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128

I checked /proc/sys/net/ipv4/ip_forward and it does reply "1"

Windows clients are setup with 192.168.0.X IP and Gateway to 192.168.0.1

I don't see what I'm missing. From all the searching on the boards I can't find a way to fix this.

Any ideas?
 
Old 04-07-2003, 11:31 AM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
Transparent proxying is usually handled by iptables using masquerading. Run a search here for iptables masquerading and you will quickly find the rules you need. Squid requires that your client browsers aim at it, and sometimes authenticate through it to function.
 
  


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 Problem ajkannan83 Linux - Software 2 10-21-2005 09:48 AM
Some problem with Squid...? apache Linux - Networking 1 07-06-2005 06:54 PM
squid problem hansi umayangan Linux - General 0 10-25-2004 08:35 AM
squid problem supon Linux - Networking 0 10-05-2004 10:24 AM
Squid problem. hiplainsdrifter Linux - Networking 2 04-24-2004 08:50 AM


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

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