[squid-users] Transparent proxy transfers control to my port 80

From: Gurdeep Singh <gurdeepsingh@dont-contact.us>
Date: Wed, 26 Sep 2001 14:04:29 +0530

Hello,

My squid transparent proxy shows the apache's default page for every URL
accessed.

For eg. if I go to www.google.com, it shows the default page of apache

and for www.google.com/news, it tries to get http://192.168.1.10/news
and responds with error saying, The requested URL could not be
retrieved.

192.168.1.10 is my proxy server.

Following is my ipchains file.

How should I make transparent proxy work.

If I access port 3128 directly through browser's proxy settings, squid
works fine.

Regards,

Gurdeep

# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
# firewall; such entries will *not* be listed here.
:input ACCEPT
:forward ACCEPT
:output ACCEPT
-A input -p tcp -d 127.0.0.1/24 www -j ACCEPT
-A input -p tcp -d 192.168.1.10/24 www -j ACCEPT
-A input -p tcp -d any/0 www -j REDIRECT 3128
-A input -s 0/0 -d 0/0 25 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 80 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 22 -p tcp -y -j ACCEPT
-A input -s 0/0 -d 0/0 -i lo -j ACCEPT
-A input -s 0/0 -d 0/0 -i eth0 -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 0:1023 -y -j REJECT
-A input -p tcp -s 0/0 -d 0/0 2049 -y -j REJECT
-A input -p udp -s 0/0 -d 0/0 0:1023 -j REJECT
-A input -p udp -s 0/0 -d 0/0 2049 -j REJECT
-A input -p tcp -s 0/0 -d 0/0 6000:6009 -y -j REJECT
-A input -p tcp -s 0/0 -d 0/0 7100 -y -j REJECT
Received on Wed Sep 26 2001 - 02:25:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:29 MST