transparent proxy
Hi,
I'm trying to use a machine as a transparent firewall/proxy, using iptables as described in the transparent proxy mini howto:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
where eth0 is my internal interface (eth1 is connected directly to the router). Now, when I try to browse the web, i always get the squid error page saying that the url "/" cannot be retrieved. For example, going to www.google.com is translated as /.
Any idea?
Thanks,
Luca
Signature · 2 lines
Luca Ferrari, [email protected]
Quoted 11 lines · Luca Ferrari
Hi,
I'm trying to use a machine as a transparent firewall/proxy, using iptables as described in the transparent proxy mini howto:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080where eth0 is my internal interface (eth1 is connected directly to the router). Now, when I try to browse the web, i always get the squid error page saying that the url "/" cannot be retrieved. For example, going to www.google.com is translated as /. Any idea?
Thanks,
Luca
That sounds like a faulty squid configuration. What does squids logfile say?
Jen
Don't know if you still have this problem. But maybe you are missing some lines in your squid configuration. You must tell squid, that it should act als httpd accellerator...
httpd_accel_host virtualhttpd_accel_port 80httpd_accel_with_proxy onhttpd_accel_uses_host_header on
Quoted 21 lines · Jens Knoell
Quoted 5 lines · Luca Ferrari
Hi,
I'm trying to use a machine as a transparent firewall/proxy, using iptables as described in the transparent proxy mini howto:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 8080Quoted 7 lines
where eth0 is my internal interface (eth1 is connected directly to the router). Now, when I try to browse the web, i always get the squid error page saying that the url "/" cannot be retrieved. For example, going to www.google.com is translated as /. Any idea?
Thanks,
LucaThat sounds like a faulty squid configuration. What does squids logfile say?
Jen
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Don't know why but all of my squid accel ateempts turned out pretty unstable (as in crash for no apparent reason). I have tried both squid 2.5 and 3.0. Maybe you guys had more luck than me. Is there something i miss? Without the httpd_accel it works fine.
--Adrian.
Quoted 43 lines · Andreas Unterkircher
Don't know if you still have this problem. But maybe you are missing some lines in your squid configuration.
You must tell squid, that it should act als httpd accellerator...
httpd_accel_hostvirtualhttpd_accel_port80httpd_accel_with_proxyonhttpd_accel_uses_host_headeronQuoted 18 lines · Jens Knoell
Quoted 6 lines · Luca Ferrari
Hi,
I'm trying to use a machine as a transparent firewall/proxy, using iptables as described in the transparent proxy mini howto:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080Quoted 10 lines
where eth0 is my internal interface (eth1 is connected directly to the router). Now, when I try to browse the web, i always get the squid error page saying that the url "/" cannot be retrieved. For example, going to www.google.com is translated as /. Any idea?
Thanks,
LucaQuoted 8 lines
That sounds like a faulty squid configuration. What does squids logfile say?
Jen
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
i'm currently using squid 2.5.7 from debian sid with ldap authentication and redirectors (squidGuard and antivirus scanning) - have no problem with this - also in transparent-proxy mode.
as far as i know you must (?) use these options in the squid.conf, because squid has to passthru the http-headers of the client - has something todo with http/1.1 I guess. more infos you can find here:
http://squid-docs.sourceforge.net/latest/book-full.html#AEN2457
Andreas
Quoted 70 lines · Adrian C.
Don't know why but all of my squid accel ateempts turned out pretty unstable (as in crash for no apparent reason). I have tried both squid 2.5 and 3.0. Maybe you guys had more luck than me. Is there something i miss? Without the
httpd_accelit works fine.--Adrian.
Quoted 45 lines · Andreas Unterkircher
Don't know if you still have this problem. But maybe you are missing some lines in your squid configuration.
You must tell squid, that it should act als httpd accellerator...
httpd_accel_hostvirtualhttpd_accel_port80httpd_accel_with_proxyonhttpd_accel_uses_host_headeronQuoted 22 lines · Jens Knoell
Quoted 6 lines · Luca Ferrari
Hi,
I'm trying to use a machine as a transparent firewall/proxy, using iptables as described in the transparent proxy mini howto:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080Quoted 12 lines
where eth0 is my internal interface (eth1 is connected directly to the router). Now, when I try to browse the web, i always get the squid error page saying that the url "/" cannot be retrieved. For example, going to www.google.com is translated as /. Any idea?
Thanks,
LucaQuoted 10 lines
That sounds like a faulty squid configuration. What does squids logfile say?
Jen
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 7 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
before someone asks - authentication naturally not working (and can't be used) within transparent-proxy mode :)
Quoted 86 lines · Andreas Unterkircher
i'm currently using squid 2.5.7 from debian sid with ldap authentication and redirectors (squidGuard and antivirus scanning) - have no problem with this - also in transparent-proxy mode.
as far as i know you must (?) use these options in the squid.conf, because squid has to passthru the http-headers of the client - has something todo with http/1.1 I guess. more infos you can find here:
http://squid-docs.sourceforge.net/latest/book-full.html#AEN2457
Andreas
Quoted 64 lines · Adrian C.
Don't know why but all of my squid accel ateempts turned out pretty unstable (as in crash for no apparent reason). I have tried both squid 2.5 and 3.0. Maybe you guys had more luck than me. Is there something i miss? Without the
httpd_accelit works fine.--Adrian.
Quoted 45 lines · Andreas Unterkircher
Don't know if you still have this problem. But maybe you are missing some lines in your squid configuration.
You must tell squid, that it should act als httpd accellerator...
httpd_accel_hostvirtualhttpd_accel_port80httpd_accel_with_proxyonhttpd_accel_uses_host_headeronQuoted 22 lines · Jens Knoell
Quoted 6 lines · Luca Ferrari
Hi,
I'm trying to use a machine as a transparent firewall/proxy, using iptables as described in the transparent proxy mini howto:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080Quoted 11 lines
where eth0 is my internal interface (eth1 is connected directly to the router). Now, when I try to browse the web, i always get the squid error page saying that the url "/" cannot be retrieved. For example, going to www.google.com is translated as /. Any idea?
Thanks,
LucaQuoted 9 lines
That sounds like a faulty squid configuration. What does squids logfile say?
Jen
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html