Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 1998 13:42:40 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Rolandas Miseikis <rol@init.lt>
Cc:        questions@FreeBSD.ORG
Subject:   Re: how to use natd just for redirect'ing?
Message-ID:  <Pine.BSF.4.03.9809121342020.19785-100000@resnet.uoregon.edu>
In-Reply-To: <01c901bddda2$905a0120$1501a8c0@rolandas.init.lt>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9809121342020.19785-100000>