From owner-freebsd-questions Sat Sep 12 13:43:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09614 for freebsd-questions-outgoing; Sat, 12 Sep 1998 13:43:15 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09594 for ; Sat, 12 Sep 1998 13:43:10 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id NAA20168; Sat, 12 Sep 1998 13:42:41 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Sat, 12 Sep 1998 13:42:40 -0700 (PDT) From: Doug White To: Rolandas Miseikis cc: questions@FreeBSD.ORG Subject: Re: how to use natd just for redirect'ing? In-Reply-To: <01c901bddda2$905a0120$1501a8c0@rolandas.init.lt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 11 Sep 1998, Rolandas Miseikis wrote: > Is it possible to prevent natd from aliasing > with specified interface and use only > redirect_port and/or redirect_address? > For example: > > natd -redirect_port a.b.c.d:80 80 -interface ed2 > > (where a.b.c.d is on ed1) I just need to redirect > gateway machine's port 80 to the real web server, > and nothing else. I tried playing with ipfw rules > with very little luck. Any hints? You don't want to use natd. Write a small program to use the socket command to issue a redirect. See the FAQ for details. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message