Date: Tue, 5 Mar 2002 00:01:14 -0800 From: "Crist J. Clark" <crist.clark@attbi.com> To: Jeff Koftinoff <jeffkoftinoff@mac.com> Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: Transparent proxy for connections originating on localhost Message-ID: <20020305000114.U87533@blossom.cjclark.org> In-Reply-To: <556A6480-300B-11D6-A2D9-003065709198@mac.com>; from jeffkoftinoff@mac.com on Mon, Mar 04, 2002 at 11:33:48PM -0800 References: <20020304231157.T87533@blossom.cjclark.org> <556A6480-300B-11D6-A2D9-003065709198@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 04, 2002 at 11:33:48PM -0800, Jeff Koftinoff wrote:
>
> On Monday, March 4, 2002, at 11:11 PM, Crist J. Clark wrote:
>
> >>
> >> When I originate the connection on an external computer, the fwd works.
> >> When I originate the connection on the same computer that has the fwd
> >> rule, the fwd rule causes the connect to hang.
> >
> > Hmmm... Wouldn't happen to have a,
> >
> > pass ip from any to any via lo0
> >
> > At the top of your rules?
> >
>
> The only other rule I have is the default allow at the end.
> sudo /sbin/ipfw show
> 65535 23381230 14310099719 allow ip from any to any
>
> Do I have to make my fwd rule operate in reverse or something? Or should
> I explicitely specify the network interfaces? Or could it be that the
> following is happening:
> 1) OS-X has the older ipfw code which requires the packets to
> be headed to an external interface
The packet just has to be leaving.
> 2) My initial request comes from an internal process and is
> going to an external IP
> 3) ipfw fwd redirects the first outgoing packet to 127.0.0.1:9999
> 4) the response packet is heading back to the internal address
> 5) because the response packet is internal, it is not properly
> munged by the ipfw fwd code.
>
> Does that sound feasable? So betcha what I am trying to do would work
> fine on a new FreeBSD system, right?
Accessing external webservers from the machine running the proxy
should work. Any time the packets are leaving the system, it should
work.
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020305000114.U87533>
