From owner-freebsd-questions Mon Dec 18 12:11:46 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 18 12:11:41 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from www.newsindex.com (www.newsindex.com [64.71.138.178]) by hub.freebsd.org (Postfix) with ESMTP id 5D4CD37B69F for ; Mon, 18 Dec 2000 12:11:41 -0800 (PST) Received: from localhost (speck@localhost) by www.newsindex.com (8.9.3/8.9.3) with ESMTP id MAA06505; Mon, 18 Dec 2000 12:11:14 -0800 (PST) (envelope-from speck@www.newsindex.com) Date: Mon, 18 Dec 2000 12:11:14 -0800 (PST) From: Sean Peck To: Moses Backman III Cc: Quetstions FreeBSD Subject: Re: ip aliasing In-Reply-To: <20001217183930.A419@cg22413-a.adubn1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: speck@www.newsindex.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just did something similar but only used 1 NIC card with an alias.. put the IP of your public address, not the rl0 in NATD_INTERFACE, and make sure you recompile the kernel with firewall and the ipdivert options if you haven't already. On Sun, 17 Dec 2000, Moses Backman III wrote: > let me begin by saying i am somewhat familiar w/BSD, but i am no guru. i > have accomplished the basic > things i want to learn : user & group management, text editors, cvs, > compiling and upgrading. and now i > am trying to figure out ip aliasing. > > i have 2 nics in my 4.2-R machine one is an SMC 1211 (rl0) and a 3com 905 > (xl0) the 3com is my > internal nic and the 1211 gets me out through a cable modem. my hub feeds > only the 3com, the 1211 is > direct to the modem. > > i am able to ping my BSD from my laptop 192.168.0.1 from 192.168.0.2 and > vice-versa. i have made sure > that natd starts. i have added the following... > > to /etc/rc.conf > > gateway_enable="YES" > defaultrouter=(my isp's preassigned gateway for me) > natd_enable="YES" > natd_interface="rl0" > firewall_enable="YES" > firewall_type="simple" > > *note - i have set my ip statically > > to /etc/rc.firewall > > /sbin/ipfw -f flush > /sbin/ipfw add divert natd all from any to any via rl0 > /sbin/ipfw add pass all from any to any > > i have changed my ip's and mask add's in all appropriate places (i think) > > i watch activity lights on my hub and modem and i can see that when i try > to ping my isp's gateway > from my other machine it looks like my modem is xmitting and recieving, but > nothing comes through > the hub i don't know > > i would like to know how i can test xmit and recieve between the xl0 and > the rl0 and then where else > are there natd rules > > HELP!!!!!!!!!!!!!!!!!!!!! > i'm getting frustrated > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message