Can't enable transparent squid on localhost using iptables.
Setup:
OS: Ubuntu 8.04 ==> squid & squidGuard on localhost. Goal: Force traffic through squid using iptables thereby eliminating need for FF preferences. The intended host to proxy is the box housing squid & co. Squid works fine if I use the settings in Firefox but does not work if I try to use it transparently. Here's my squid.conf sans comments. Code:
acl all src all Code:
sudo iptables -A PREROUTING -t nat -p tcp –dport 80 -j REDIRECT –to-port 3128 It does not work as expected. Any thoughts? Thanks for reading! Bub UPDATE: I gave up on IPTABLES and installed the firehol package. It works and that is good. Here is my firehol.conf for those also struggling with this: Code:
version 5 |
Hi, welcome to LQ!
Quote:
like it's a firewalling solution in its own right - it's a iptables front-end. Cheers, Tink |
Thank you and ...
Thanks for your response, I'll give that a shot.
For the small task of routing traffic through a locally hosted proxy it seems clumsy to install fireHOL rather than just type one or two IPTABLES rules. It seems like that's what everyone is doing for DansGuardian and squidGuard though. Anyway ...thanks for the response. Bub |
All times are GMT -5. The time now is 02:27 PM. |