Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 07:18:13 +0200
From:      "Michael Nottebrock" <michaelnottebrock@gmx.net>
To:        "Adam LaBarge" <phinger@best.com>, <freebsd-newbies@FreeBSD.ORG>
Subject:   Re: port forwarding with natd
Message-ID:  <019201c127a5$375837e0$0408a8c0@localdomain>
References:  <Pine.BSF.4.21.0108142206460.1190-100000@shell18.ba.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "Adam LaBarge" <phinger@best.com>


> Hi, I am trying to forward port 25 from a FreeBSD router, running natd
> with an open firewall to an internal machine running FreeBSD set up as a
> sendmail server.
> [...]
> natd -redirect_port internalmachne:25 myIP:25 25

I suppose that natd is started automatically on bootup. Edit your rc.conf and
add a line:

natd_flags="-redirect_port tcp <IP-of-internalmachine>:25 25"

That should cater for your next boot.
Then kill natd and restart it:

natd -redirect_port tcp <IP-of-internalmachine>:25 25



Greetings,

Michael Nottebrock


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?019201c127a5$375837e0$0408a8c0>