From owner-freebsd-stable Wed Jan 24 6:36:20 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lunatic.oneinsane.net (lunatic.oneinsane.net [207.113.133.231]) by hub.freebsd.org (Postfix) with ESMTP id D919E37B6A1 for ; Wed, 24 Jan 2001 06:36:01 -0800 (PST) Received: by lunatic.oneinsane.net (Postfix, from userid 1000) id 0F31415551; Wed, 24 Jan 2001 06:36:01 -0800 (PST) Date: Wed, 24 Jan 2001 06:36:00 -0800 From: Ron 'The InSaNe One' Rosson To: freebsd-stable@freebsd.org Subject: Re: ipnat problem? Message-ID: <20010124063600.A46017@lunatic.oneinsane.net> Reply-To: Ron Rosson Mail-Followup-To: freebsd-stable@freebsd.org References: <20010124143026.A61137@freenix.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010124143026.A61137@freenix.no>; from morten@freenix.no on Wed, Jan 24, 2001 at 02:30:26PM +0100 X-Operating-System: FreeBSD lunatic.oneinsane.net 4.1.1-STABLE X-Moon: The Moon is New X-Opinion: What you read here is my IMHO X-WWW: http://www.oneinsane.net X-GPG-FINGERPRINT: 3F11 DB43 F080 C037 96F0 F8D3 5BD2 652B 171C 86DB X-Uptime: 6:33AM up 87 days, 8:48, 1 user, load averages: 0.16, 0.07, 0.07 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Morten A . Middelthon (morten@freenix.no) wrote: > > I'm currently using a FreeBSD box with ipf/ipnat as a gateway for our internal > network (10.0.0/24), and this, ofcourse, works like a charm. But(!) today I set > up an extra net internally (10.0.1/24) for some testing purposes. Talking > between 10.0.0/24 and 10.0.1/24 is easy, but I couldn't get any hosts on > 10.0.1/24 to go through my ipf/ipnat box. In my ipnat config I've already got > 'map fxp0 10.0.0/24 -> xxx.xxx.xxx.xxx/32', and so now I added > map fxp0 10.0.1/24 -> xxx.xxx.xxx.xxx/32' for the new net, but that didn't help. > xxx.xxx.xxx.xxx is ofcourse not in my actual config... > > 'ipnat -l' doesn't show the new mapping I added. > > The network layout looks roughly like this: > > inet <-- [Host A, ipnat gateway] <-- 10.0.0/24 <-- [Host B, gateway] <-- 10.0.1/24 > > Any suggestions to how I might fix this problem? > I would try replacing this entry: map fxp0 10.0.0/24 -> xxx.xxx.xxx.xxx/32 with map fxp0 10.0.0/23 -> xxx.xxx.xxx.xxx/32 I assume you are using class C subnets. Hope this helps TIA -- ------------------------------------------------------------------------------ Ron Rosson ... and a UNIX user said ... The InSaNe One rm -rf * insane@oneinsane.net and all was /dev/null and *void() ------------------------------------------------------------------------------ Just because I'm moody doesn't mean you're not irritating. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message