From owner-freebsd-questions Sat Jan 25 16: 1:15 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D15437B401 for ; Sat, 25 Jan 2003 16:01:14 -0800 (PST) Received: from skywalker.rogness.net (skywalker.rogness.net [64.251.173.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8426B43F5B for ; Sat, 25 Jan 2003 16:01:13 -0800 (PST) (envelope-from nick@rogness.net) Received: from skywalker.rogness.net (localhost [127.0.0.1]) by skywalker.rogness.net (8.12.5/8.12.5) with ESMTP id h0Q01GFH060992; Sat, 25 Jan 2003 17:01:16 -0700 (MST) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by skywalker.rogness.net (8.12.5/8.12.5/Submit) with ESMTP id h0Q0193N060989; Sat, 25 Jan 2003 17:01:15 -0700 (MST) X-Authentication-Warning: skywalker.rogness.net: nick owned process doing -bs Date: Sat, 25 Jan 2003 17:01:07 -0700 (MST) From: Nick Rogness To: Vikash Badal Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Source nat question (ipfw and natd) In-Reply-To: <000b01c2c49b$47aeacc0$4b0a0a0a@my.domain> Message-ID: <20030125165456.T60949-100000@skywalker.rogness.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 25 Jan 2003, Vikash Badal wrote: > Greetings, > > I currently have a box (4.7p3) that i want to connect to four different > networks According to the man page i can only nat on one interface using > natd. > > My current natd.conf is as follows : > -------------------------------------------------------------------------- > redirect_address 10.136.236.18 192.168.28.61 > redirect_address 10.136.236.20 192.168.20.47 > redirect_address 10.136.236.19 192.167.11.47 > -------------------------------------------------------------------------- > > When i add the following maping : > redirect_address 10.136.236.18 192.168.15.47 > > the source address for connections to 192.168.15.0/24 is 192.168.25.61 > is there any way i can setup natd and ipfw so that if packets are > destined for 192.168.15.0/24 then the source address should be > 192.168.15.47 > Yes, it is possible...just a pain in the butt. I am not clear exactly what your mean. If you wish to pursue this, you need to send the output of: # cat /etc/rc.conf # ipfw -a l # netstat -rn # ps -aux |grep nat And any additional nat configuration files or settings. That would greatly improve the chances of your questions getting answered. Nick Rogness - How many people here have telekenetic powers? Raise my hand. -Emo Philips To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message