Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2001 14:54:22 +0400
From:      "Rino Mardo" <rmardo@crosswinds.net>
To:        "Jean-Christian Imbeault" <jean_christian@hotmail.com>, <freebsd-questions@freebsd.org>
Subject:   Re: What's the proper way to setup two NICs on a firewall?
Message-ID:  <010c01c0d164$06194cb0$3e04010a@atg.altayer.com>
References:  <F8ZBmFnoLntCDgSUg4K00011db4@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010c01c0d164$06194cb0$3e04010a>