From owner-freebsd-questions Mon Nov 16 04:20:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA01534 for freebsd-questions-outgoing; Mon, 16 Nov 1998 04:20:30 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA00763 for ; Mon, 16 Nov 1998 04:17:24 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id OAA00879; Mon, 16 Nov 1998 14:14:40 +0200 (EET) (envelope-from ru) Date: Mon, 16 Nov 1998 14:14:40 +0200 From: Ruslan Ermilov To: ?ukasz Misiuda Cc: freebsd-questions@FreeBSD.ORG Subject: Re: natd not working Message-ID: <19981116141440.E1664@ucb.crimea.ua> Mail-Followup-To: ?ukasz Misiuda , freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.15i In-Reply-To: ; from ?ukasz Misiuda on Mon, Nov 16, 1998 at 12:47:48PM +0100 X-Operating-System: FreeBSD 2.2.7-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! In order to help you I would like to see the output of: 1. ifconfig -a 2. ipfw list 3. sysctl net.inet.ip On Mon, Nov 16, 1998 at 12:47:48PM +0100, ?ukasz Misiuda wrote: > > Hello! > > I've decided to write to You, because all possibilities that I could > tried faild. > > Shortly - my network > > > LAN - ed0 - ethrnet > WAN - ppp0 - leased line (pppd) > > when system starts rc.network starts pppd to my provider, and I get > address of his and mine. > > > I followed all suggestions in 'man', e.g.: > > -kernel with IPFIREWALL, and IPDIVERT > -ip forwarding > -ipfw rule: ipfw add divert natd all from any to any via ppp0 > -starting natd (from console): natd -v -n ppp0 > > > My system is 2.2.7-stable > > > To be correct. So far all computers in LAN have inet addresses, > so I've assigned the same IP to ed0 (from ppp0). I've assigned > 192.168.1.1 address to ethernet also. Now some computers have > addresses from 192.168.1.0 network, and some still have > inet addressess to network work continuosly, > and what I expect is to translate that addresses (192.168.1.0/24) to the > address of ppp0. > > Unfortunally it works in quite strange way. > > Addressess from inet are aliased to themselves, > and addresses from 192.. are not even beinig noticed, and are > passed with 192. in their headres to the world, natd enen don't see it. > > I don't know what to do. > > I've tried to make rules for ipfw so that packets received from ed0 > are passed to port of natd, but this did not work. I've tried to put the > intet address of ed0 down (so that packets could not go through lo0 in > some way ?) and leave only 192... address on the ethernet, failed. > > I've read that user ppp can do it internally (-alias option ?), > but it does not help me, because we plan to move from leased line to > ethernet to access the world. > > Please help me spot the problem, or maybe it does not work yet?? It works great. Best regards, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message