Date: Sat, 25 Jan 2003 17:01:07 -0700 (MST) From: Nick Rogness <nick@rogness.net> To: Vikash Badal <vikashb@mweb.co.za> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Source nat question (ipfw and natd) Message-ID: <20030125165456.T60949-100000@skywalker.rogness.net> In-Reply-To: <000b01c2c49b$47aeacc0$4b0a0a0a@my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <nick@rogness.net> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030125165456.T60949-100000>