From owner-freebsd-questions Mon Apr 30 3:56: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from out-mx1.crosswinds.net (out-mx1.crosswinds.net [209.208.163.38]) by hub.freebsd.org (Postfix) with ESMTP id 942AE37B423 for ; Mon, 30 Apr 2001 03:55:57 -0700 (PDT) (envelope-from rmardo@crosswinds.net) Received: from member-mx1.crosswinds.net (member-mx1.crosswinds.net [209.208.163.43]) by out-mx1.crosswinds.net (Postfix) with ESMTP id 111FD5D313; Mon, 30 Apr 2001 06:55:57 -0400 (EDT) Received: from cpu563 (unknown [195.229.53.62]) by member-mx1.crosswinds.net (Postfix) with SMTP id 66DA14CABB; Mon, 30 Apr 2001 06:55:36 -0400 (EDT) Message-ID: <010c01c0d164$06194cb0$3e04010a@atg.altayer.com> From: "Rino Mardo" To: "Jean-Christian Imbeault" , References: Subject: Re: What's the proper way to setup two NICs on a firewall? Date: Mon, 30 Apr 2001 14:54:22 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i'm also new but i'll take a stab at this since no one is answering: > I'm new at this so please ber with me :) > ...snipped... > 1- When I use /stand/sysinstall to configure my interfaces it ask me for a > default gateway. I'm setting ed1 to use 172.25.0.1 and ed2 to use172.25.0.2 > but it seems that the last interface to brought up by /stand/sysinstall sets > the default gateway for both interfaces? If I look at my rc.conf file, the > deltas added by sysinstall have a line > > defaultrouter="..." and the ip specified is for the last interfac I brought > up. Shouldn't there be one defaultrouter entry for each interface? > there can only be one default route per *machine*. so even if you have two or more nics in your box there should only be one default route. your default gateway is correct which is your router. don't set any default gateway for ed2 as from your box it already knows where to go for which ip address. so in your /etc/rc.conf you would have something like this: ifconfig_ed1="inet 172.25.0.2 netmask 255.255.0.0" defaultrouter="172.25.0.1" ifconfig_ed2="inet 192.168.0.1 netmask 255.255.255.0" check the ip address. i think you got it all mixed up. > 2- Which interface is my natd interface? I've tried both but when I run natd > -v I can see that the real ip addresses are not really being translated but > just used as is. Is this right? > your natd is the nic facing the internet. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message