Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 17:56:33 -0800
From:      "Patrick Soltani" <psoltani@ultradns.com>
To:        "Eric Long" <eric@metrotv.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: natd redirect_address
Message-ID:  <3DBB075EEB95944492E127F2B9A96FAF0CE02E@ultra-exchange.UltraDNS.com>

next in thread | raw e-mail | index | archive | help
Hi,
Make sure you have defined a sub-interface to route the traffic thru in
your rc.conf:
ifconfig_fxp1_alias0=3D"inet 66.100.208.36 netmask 255.255.255.0", etc

Then in natd.conf file add the following line only:
redirect_address 192.168.1.6:8668 66.100.208.36:8668

That's it, now the traffic bound for 66.100.208.36 will be redirected to
192.168.1.6 on port 8668

Regards,
Patrick Soltani

-----Original Message-----
From: Eric Long [mailto:eric@metrotv.com]
Sent: Thursday, November 15, 2001 11:49 AM
To: freebsd-questions@FreeBSD.ORG
Subject: natd redirect_address


Running FreeBSD 4.4-STABLE, natd, ipfw, etc. etc.

NATD is working fine, however, I can't figure out how to get the natd
redirect_address to work.

My natd.conf file is as follows:

port 8668
interface xl0
use_sockets yes
same_ports yes
redirect_address 192.168.1.6 66.100.208.36

Without 66.100.208.36 bound to xl0, the above simply does not work.
Traffic
to 66.100.208.34 does not get redirected to 192.168.1.6.  Pings do not
go
through, etc.

With 66.100.208.36 bound to xl0, it is saying that no alias address
(using
the alias_address command) is specified, and natd won't launch.

I'm looking for clarification on what the alias_address should be (yes,
I
read man natd) and whether or not I should be binding this public ip the
interface xl0 for use with natd address redirection.

-Eric


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

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?3DBB075EEB95944492E127F2B9A96FAF0CE02E>