Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2001 08:51:40 -0600
From:      Eric Long <eric@metrotv.com>
To:        Patrick Soltani <psoltani@ultradns.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: natd redirect_address
Message-ID:  <B81A841C.53A0%eric@metrotv.com>
In-Reply-To: <3DBB075EEB95944492E127F2B9A96FAF0CE02E@ultra-exchange.UltraDNS.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Patrick,

Thank you for the information, it is almost working now.

I can successfully ping 66.100.208.36 and it reaches 192.168.1.6.  However,
I have the following two problems:

1.)  The box running natd can't ping 66.100.208.36 (it can ping 192.168.1.6,
though).  Any machines other than the natd box (whether it be on the LAN or
WAN) can ping 66.100.208.36.

2.)  None of my workstations (all on 192.168.1.0/24) can access the services
running on 66.100.208.36 by connecting to that IP.  However, if I connect
using 192.168.1.6 (which is what 66.100.208.36 is redirected to), things are
fine.

-Eric

on 11/15/01 7:56 PM, Patrick Soltani at psoltani@ultradns.com wrote:

> Hi,
> Make sure you have defined a sub-interface to route the traffic thru in
> your rc.conf:
> ifconfig_fxp1_alias0="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
> 


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?B81A841C.53A0%eric>