Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2010 17:46:32 -0400
From:      Tony <rigstars@gmail.com>
To:        freebsd-ipfw@freebsd.org
Subject:   All in one machine running w/ Dansguardian+Squid+IPFW
Message-ID:  <AANLkTi=9r4OK0brNKFzGC42joqa1U%2B_PTaXQU8y%2BE-%2Bx@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I have one computer that has Dansguardian (127.0.0.1:8888) and Squid
(127.0.0.1) and IPFW installed. From the same computer, I'm trying to
redirect port 80 to Dansguardian's port 8888 using the rulesets below.
Is this possible? I read that ipfw does not allow forwarding from the same
machine. Is this true? I'm have tried both these ruleset separately and are
not getting any hits when I do ipw show. Something wrong with my rules?

Ruleset #1

ipfw add fwd 127.0.0.1:8888 tcp from 192.168.0.154 to any 80 in recv en1
ipfw add allow tcp from me to any 80 out xmit en1
ipfw add allow tcp from any 80 to me in recv en1


Ruleset#2

ipfw add allow tcp from 192.168.0.154 to any 80 out xmit en1
ipfw add fwd 127.0.0.1,8888 tcp from 192.168.0.154 to any dst-port 80
ipfw add allow tcp from any 80 to 192.168.0.154 in recv en1 established



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=9r4OK0brNKFzGC42joqa1U%2B_PTaXQU8y%2BE-%2Bx>