Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 1999 08:49:14 +1300
From:      Jonathan Chen <jonc@logisticsoftware.co.nz>
To:        Capriotti <capriotti@geocities.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NATd and diverting a port
Message-ID:  <19991123084914.A93526@jonc.logisticsoftware.co.nz>
In-Reply-To: <3.0.6.32.19991122080622.0096fb40@pop.mpcnet.com.br>; from capriotti@geocities.com on Mon, Nov 22, 1999 at 08:06:22AM -0200
References:  <3.0.6.32.19991122080622.0096fb40@pop.mpcnet.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 22, 1999 at 08:06:22AM -0200, Capriotti wrote:

[...]
> I was trying to use NATd to forward any traffic to ports 25 and 110 to the
> NT box like this:
> 
> (called from .../rc.d/nats.sh during boot)
> 
> natd -n ed1 -redirect_port 192.16.1.100:25 25
> natd -n ed1 -redirect_port 192.16.1.100:110 110

Try putting it all on one line. ie:

    natd -n ed1 -redirect_port 192.16.1.100:25 25 -redirect_port 192.16.1.100:110 110

Or use a configuration file:

    natd -n -f /etc/natd.conf

With /etc/natd.conf having:

    #
    #   Redirects to NT machine
    #
    redirect_port 192.16.1.100:25 25
    redirect_port 192.16.1.100:110 110

Jonathan Chen
----------------------------------------------------------------------
          When everything's coming your way, you're in the wrong lane.


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?19991123084914.A93526>