Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 15:18:28 -0800 (PST)
From:      "K. Greenwood" <k_greenwood1@yahoo.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Resolving internal IP's through NAT.
Message-ID:  <20011110231828.93029.qmail@web14103.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hello.  I currently have a FreeBSD 4.2 box which is
running NAT and
need to have some internal systems which can be
accessible
from the other side of the network.  NAT is being run
on the 
following xl2 (192.168.50.21) address.

I've done some searching, but the nearest thing I've
found is this:

http://lists.openresources.com/FreeBSD/freebsd-net/msg00454.html

Unfortunately, whenever I tried to run multiple NATd's
I learned
that NAT can only run on one interface at a time.

Here are the parts that I think are pertinent.

rc.conf
network_interfaces="xl0 xl1 xl2 lo0"
ifconfig_xl0="inet 121.141.254.3 netmask
255.255.255.0"
ifconfig_xl1="inet 121.141.254.2 netmask
255.255.255.0"
ifconfig_xl2="inet 192.168.50.21 netmask
255.255.255.0"
ifconfig_xl2_alias0="inet 192.168.50.15 netmask
255.255.255.0"
ifconfig_xl2_alias1="inet 192.168.50.18 netmask
255.255.255.0"
ifconfig_xl2_alias2="inet 192.168.50.19 netmask
255.255.255.0"
defaultrouter="192.168.50.1"
firewall_enable="YES"
firewall_script="/etc/rc.ipfw"
firewall_type="open"
natd_program="/sbin/natd"
natd_enable="YES"
natd_interfaces="xl2"
natd_flags="-f /etc/natd.conf"

natd.conf
use_sockets yes
same_ports yes
redirect_address 121.141.254.34 192.168.50.15
redirect_address 121.141.254.31 192.168.50.18
redirect_address 121.141.254.30 192.168.50.19

From all of this, the other side of the NAT interface
can 
successfully access 192.168.50.15 (internally,
121.141.254.34) 
but the other two don't resolve.

If you can point me to a how-to, or type it very
slowly (and use small 
words) I would appreciate it.

Thanks for taking the time to read this.

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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?20011110231828.93029.qmail>