From owner-freebsd-questions Fri Mar 24 7:23:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 6FC4837B526 for ; Fri, 24 Mar 2000 07:23:15 -0800 (PST) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.9.3/8.9.3) id HAA15069; Fri, 24 Mar 2000 07:22:55 -0800 (PST) (envelope-from bhishan) From: Bhishan Hemrajani Message-Id: <200003241522.HAA15069@cytosine.dhs.org> Subject: Re: Help NAT configuration In-Reply-To: <38DB6A97.55C0056E@innova.rcanaria.es> from Jesus at "Mar 24, 2000 01:16:07 pm" To: Jesus Date: Fri, 24 Mar 2000 07:22:55 -0800 (PST) Cc: "freebsd-questions@freebsd.org" X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You basically need to do exactly what it says at the bottom of the natd man page. Since you said you have read this, heres some things to check for: Make sure you have this line in rc.firewall: $fwcmd add 10 divert natd all from any to any via fxp0 And this in rc.conf: natd_enable="YES" natd_interface="fxp0" gateway_enable="YES" firewall_enable=YES Also, make sure that your kernel is built with the options: options IPFIREWALL options IPDIVERT Then, you can restart, or if you don't want to, do the following: # cd /etc # sh rc.firewall (The line above will reset all current connections to be careful!) # natd -n fxp0 Hope this helps. --bhishan > Hello: > > I try configure my network, it consist in a machine with FreeBSD > containing diferent internet servers (apache, database , realaudi,ftp > ...) and other LAN server (Samba). > > The server have two NIC: > fxp0 for public addresses ip=195.x.x.38 Lan=195.x.x.32 > mask=255.255.255.224 > > fxp1 private lan ip=192.168.1.1 Lan=192.168.1.0 mask=255.255.255.0 > > I need how to configure my network to my host in local lan see the > internet and samba server. > > I read the natd and ipfw documentation and try configurate the natd but > it not well. > > Thanks. > > Jesus Fernandez > VENTO IP > > > > 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