Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Dec 2000 21:52:15 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        "Don O'Neil" <don@whtech.com>
Cc:        Moses Backman III <penguinjedi@home.com>, "Walter W . Hop" <walter@binity.nl>, Kenneth Wayne Culver <culverk@wam.umd.edu>, Quetstions FreeBSD <questions@FreeBSD.ORG>
Subject:   Re: ip aliasing
Message-ID:  <20001217215215.Q96105@149.211.6.64.reflexcom.com>
In-Reply-To: <MOBBIPGJKBNNPGLGMFHFGECLFNAA.don@whtech.com>; from don@whtech.com on Sun, Dec 17, 2000 at 07:32:23PM -0800
References:  <20001217201453.A674@cg22413-a.adubn1.nj.home.com> <MOBBIPGJKBNNPGLGMFHFGECLFNAA.don@whtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 17, 2000 at 07:32:23PM -0800, Don O'Neil wrote:
> >
> > -----Original Message-----
> > From: owner-freebsd-questions@FreeBSD.ORG
> > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Moses Backman
> > III
> > Sent: Sunday, December 17, 2000 12:15 PM
> > To: Walter W . Hop
> > Cc: Moses Backman III; Kenneth Wayne Culver; Quetstions FreeBSD
> > Subject: Re: ip aliasing
> >
> >
> > On 2000.12.18 01:10:58 +0000 Walter W. Hop wrote:
> > > [in reply to penguinjedi@home.com, 17-12-2000]
> > >
> > > >> options IPFIREWALL
> > > >> options IPDIVERT
> > > > ok i did not add those 2 options to my kernel, but i did just now and i got
> > > > an error when i compile
> > >
> > > I believe you should add this as well:
> > >
> > > options         IPFIREWALL_FORWARD
> > >
> >
> > i'm sure we're on the right path here, but i'm still getting the
> > same error
> > message
> > by the way, i have 2 machines for now on my internal network and then i
> > have my BSD box, my
> > subnet for the 192.168.0.1/2/3 addresses should be 255.255.255.0 right?
>
> Actually... the netmask for the first IP should be /24 (255.255.255.0) but
> the aliases should be 255.255.255.255....

Aliases? He's talking about three different machines I assume. And to
your remark about 32-bit netmasks, that is not always true...

> Here's an example for /etc/rc.conf:
> 
> ifconfig_fxp0="inet 10.10.10.1  netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.10.11.1  netmask 255.255.255.255"
> ifconfig_fxp0_alias1="inet 10.10.12.1  netmask 255.255.255.255"

Like in this case. Here each should have a 255.255.255.0 netmask. One
uses a 255.255.255.255 netmask on aliases when the alias address lies
on the same network as the "real" address.

> Unless you're going to setup packet filtering or the kernel based firewall,
> then there is no need to activate the options you were told you needed....

He want's do do NAT. He needs IPFIREWALL and IPDIVERT.

> The basic kernel supports mutiple IP address aliases by default.

His subject line is skewed from the real topic. I'll change it in this
reply.

Anyway, on to the compile problem. Please humor me. Go to the build
diretory and try,

  # make clean depend all

Again. If you get that error, please send your kernel config file to
the list. As well as the error message including the few lines leading
up to it. Where did you get your source tree?
-- 
Crist J. Clark                           cjclark@alum.mit.edu


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?20001217215215.Q96105>