Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 19:07:51 -0700 (MST)
From:      Nick Rogness <nick@rapidnet.com>
To:        Joshua Goodall <joshua@roughtrade.net>
Cc:        Christoph Sold <so@server.i-clue.de>, ipfw@FreeBSD.ORG
Subject:   Re: freebsd-ipfw@FreeBSD.org
Message-ID:  <Pine.BSF.4.21.0102071902250.25691-100000@rapidnet.com>
In-Reply-To: <Pine.BSF.4.32.0102080202580.30578-100000@juice.shallow.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Feb 2001, Joshua Goodall wrote:

> > Hi folks,
> >
> > for the first time, I need to do some redirect:
> >
> > On a box with a single interface I want to run an untrusted application
> > on port 23. I know, I can run it suid root, but i did not want to for
> > obvious reasons.
> >
> > Q: How to redirect from interface ed0, port 80, to the very same
> > machine, untrusted port, e.g. 1234?
> 
> possibly,
> 
> ipfw add divert 23 tcp from any to localhost:1234

	ipfw fwd may also be a possiblity...depending on the
	circumstances:

	ipfw add fwd 127.0.0.1,1234 tcp from any to any 80 via ed0

	But like I said, it depends on the circumstances and what you are
	actually trying to do.  See the ipfw(8) manpage for more details.

Nick Rogness
- Keep on routing in a Free World...  
  "FreeBSD: The Power to Serve "



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?Pine.BSF.4.21.0102071902250.25691-100000>