From owner-freebsd-questions Sun Dec 17 21:52:31 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 21:52:27 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 6A28937B400 for ; Sun, 17 Dec 2000 21:52:27 -0800 (PST) Received: from rfx-64-6-211-149.users.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 17 Dec 2000 21:50:48 -0800 Received: (from cjc@localhost) by rfx-64-6-211-149.users.reflexcom.com (8.11.0/8.11.0) id eBI5qG292332; Sun, 17 Dec 2000 21:52:16 -0800 (PST) (envelope-from cjc) Date: Sun, 17 Dec 2000 21:52:15 -0800 From: "Crist J. Clark" To: "Don O'Neil" Cc: Moses Backman III , "Walter W . Hop" , Kenneth Wayne Culver , Quetstions FreeBSD Subject: Re: ip aliasing Message-ID: <20001217215215.Q96105@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <20001217201453.A674@cg22413-a.adubn1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from don@whtech.com on Sun, Dec 17, 2000 at 07:32:23PM -0800 Sender: cjc@rfx-64-6-211-149.users.reflexcom.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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