Re: [squid-users] transparent proxying

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Tue, 9 Oct 2007 14:43:31 +0530

On 10/9/07, Indunil Jayasooriya <indunil75@gmail.com> wrote:
> >
> > Hi Indunil,
> > Thank you so much for your kind help. I am
> > using squid 2.6. Where do I add these lines.
> > iptables -t nat -A PREROUTING -p tcp -i eth2 --dport 80
> > -j REDIRECT --to-port 3128.
>
> OH, SORRY for the above rule. u r using ROCK SOLID FreeBSD. Free BSD
> comes with pf or ip filter firewall. Just ask BSD gurus how to write
> that rule in BSD.
>
> just look at belwo URL.
>
> http://www.squid-cache.org/mail-archive/squid-users/200106/0633.html

R u runnig ip filter?

then, you need thse.

 Configure transparent proxy with ipfilter
 Edit /etc/rc.conf

        # add these lines to enable ipfilter
        ipfilter_enable="YES"
        ipnat_enable="YES"
        ipmon_enable="YES"
        ipfs_enable="YES"

 Edit /etc/ipnat.rules

        # add this line
        # I assume rl0 is your internal nic
        # Redirect everything else to squid on port 3128
        rdr rl0 0/0 port 80 -> 127.0.0.1 port 3128 tcp

have a look at below URL.

http://ezine.daemonnews.org/200209/squid.html

pls try , if it solves, pls reply to the list by appending SOLVED to
the subject line as others can beneit form it.

Hope ot hear from you.

-- 
Thank you
Indunil Jayasooriya
Received on Tue Oct 09 2007 - 03:13:34 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT