On 9/13/05, Thaths <[EMAIL PROTECTED]> wrote: > On 9/13/05, Saju A P <[EMAIL PROTECTED]> wrote: > > On 9/12/05, Thaths <[EMAIL PROTECTED]> wrote: > > > iptables -t nat -A PREROUTING -i eth1 -p tcp --destination ! > > > ip.addr.or.eth1 --dport 80 -j REDIRECT --to-port 3128 > > > > > > Replace ip.addr.of.eth1 as appropriate. You are basically saying that > > > all accesses to port 80 other than to the machine itself will be > > > rerouted through squid. > > In my network all user need apache and they need to force use squid. > > Now I am facing the problem is I can't use port 80 for apache. Can I > > use port 80 for transparent proxy setup. > > Are you saying that requests to the web server (apache) running on > your proxy box needs to be chached? The solution I gave you enables > cacheing of all other web requests /except/ the ones to the web server > running on the box itself. That is not a bad solution, really. > > Why do you need accesses to the web server running on the proxy box to > go through squid? What do you mean by "can't use port 80 for apache"? >
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. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ linux-india-help mailing list linux-india-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-india-help