Squid - transparent proxy + apache

Nicolas Canepa ncanepa at fcen.uba.ar
Tue Nov 6 04:02:17 UTC 2007


Hi everyone,

I install a FC6 router in my house. I configured Squid to be a transparent
proxy. I put the rules needed in my iptables config, and everything is
working fine.
The question is, how can I configure an apache web server in the same
machine as the transparent proxy, because with iptables I redirect al
packets going to port 80 entering the LAN interface to port 8080 (squid
proxy), so I cannot reach the apache web server.

##############################################################################
This is the rule for redirection that i´m using:
(eth1 LAN iface anr 192.168.1.1 is the router.)

${IPT} -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT
--to-destination 192.168.1.1:8080

##############################################################################

I attached my squid.conf


Thanks in advance,
Nicolas Canepa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squid.conf
Type: application/octet-stream
Size: 23437 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071106/9303001c/attachment-0001.obj>


More information about the fedora-list mailing list