Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2001 12:18:28 -1000
From:      "Wai Chan" <waichan@hpu.edu>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: natd configuration
Message-ID:  <0BB212B622428C45AE42F295EEA242740422A0@leka.admin.hpu.edu>
In-Reply-To: <0BB212B622428C45AE42F295EEA242740424DC@leka.admin.hpu.edu>

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

I figured out a bit, but not very sure my idea is right.  Please
help/correct me.

	10.2.0.1 will go out as 10.1.0.1 by default.

	Can I do following in the natd.conf to force 10.3.0.x to go out
as 10.1.0.2?
		redirect_address 10.3.0.1/24 10.1.0.2
	If not how about:
		redirect_address 10.3.0.1 10.1.0.2
		redirect_address 10.3.0.2 10.1.0.2
		redirect_address 10.3.0.3 10.1.0.2
		...
		redirect_address 10.3.0.254 10.1.0.2
	Will 192.168.1.1 (all IPs before the last IP) get the returning
traffic correctly when 192.168.1.1 initiates a http request?  I don't
care about the any connection initiates from outside.

Thanks!

best wishes,
Wai Chan


-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Wai Chan
Sent: Thursday, July 26, 2001 08:07 PM
To: freebsd-questions@FreeBSD.ORG
Subject: natd configuration


Hi All,

I have trouble in natd configuration.

My FreeBSD box has the follwing configuration.

    10.1.0.2/24
    10.1.0.1/24
         |
         |
         |nic#1
|-------------------|
|   FreeBSD 4.3R    |
|      natd         |
|-------------------|
    |nic#2      |nic#3
    |           |
    |           |
    |           |
10.2.0.1/24  10.3.0.1/24

I want all 10.2.0.x traffic go out as 10.1.0.1 and 10.3.0.x traffic go
out as 10.1.0.2.  Is it possible?  How?  I would appreciate if someone
could show me a similar natd.conf sample.  Thank you all in advance!
Have a nice day!!

Wai.

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?0BB212B622428C45AE42F295EEA242740422A0>