Re: Squid - transparent proxy + apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nicolas Canepa wrote:
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
I wish you didn't.

Google thus:
http://www.google.co.uk/search?q=%22How+to%22+transparent+proxy&ie=UTF-8&oe=UTF-8

The answer is in the first document on _my_ list.

Part of the answer is to have a rule that accepts connexions to your box before you deal with those going elsewhere.

I don't suppose your DNAT rule is wrong, but it's not what is usually recommended, and usual practice is to have squid listening on its default port, 3128. I suspect the usual iptables rule doesn't cause the conflict you see.


--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

Please do not reply off-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux