On 9/13/05, Saju A P <[EMAIL PROTECTED]> wrote:
> My apache and squid proxy is run on same mechine. I use port 80 for
> apache. Now I face the problem is I can't access apache on my network.
> I mean "http://myproxyservername"; after I run this this script.
> iptables -A INPUT -i eth1 -m state --state NEW -p tcp --dport 80 -j ACCEPT
> iptables -t nat  -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
> I can access apache if i give another port for this eg:
> http://myproxyservername:81. My question is this can I access apache
> on port80.

Please go back and re-read my first reply to this thread. It contains
a solution to not proxy requests to http://myproxyservername but cache
all other http requests. You need to add a '--destinataion !
internal.ip.addr.of.proxy' to the second iptables line. I do not
understand why you object to this simple solution. Did you even try
that one out?

Thaths
-- 
"This is everybody's fault but mine!" -- Homer J. Simpson


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to