From owner-freebsd-net Mon Mar 18 23:31:34 2002 Delivered-To: freebsd-net@freebsd.org Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by hub.freebsd.org (Postfix) with ESMTP id 6739637B404; Mon, 18 Mar 2002 23:31:28 -0800 (PST) Received: from svzserv.kemerovo.su (kost [213.184.65.82]) by www.svzserv.kemerovo.su (8.11.6/8.11.6) with ESMTP id g2J7VN580859; Tue, 19 Mar 2002 14:31:23 +0700 (KRAT) (envelope-from eugen@svzserv.kemerovo.su) Message-ID: <3C96E940.95335672@svzserv.kemerovo.su> Date: Tue, 19 Mar 2002 14:31:12 +0700 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: "Crist J. Clark" Cc: net@FreeBSD.ORG Subject: Re: natd and static nat for different subnets References: <3C96CCDA.C54342F5@svzserv.kemerovo.su> <20020318225141.I60554@blossom.cjclark.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Crist J. Clark" wrote: > > Suppose we have many tens of separated private networks each having its own > > public address and own gateway. Is is possible to configure natd to do > > static nat for network masks, not only for sets of hosts? I'd like to > > say: > > > > redirect_address 172.20.2.0/24 123.45.56.78 > > redirect_address 172.20.2.1 123.45.56.78 > > > > so incoming traffic for 123.45.56.78 is translated to 172.20.2.1 > > and all outgoing traffic from the whole net 172.20.2.0/24 is aliases > > to appear from 123.45.56.78? > > > > It seems natd can't do that now. So how can it be achived without > > flooding config of natd with all those IPs from all those networks? > > You can run multiple natd(8)s and control which block each one > translates with their firewall divert(4) rules. I think running tens copies of natd is not wise. Would it be hard to implement this? Is it issue of natd itself or of libalias? Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message