From owner-freebsd-questions Tue Mar 20 14:13:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id 1ACB137B790 for ; Tue, 20 Mar 2001 14:13:43 -0800 (PST) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id JAA28539; Wed, 21 Mar 2001 09:13:40 +1100 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id JAA17254; Wed, 21 Mar 2001 09:13:40 +1100 (EST) Message-Id: <200103202213.JAA17254@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: marwan@q8internet.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: A network betwen 2 PC's In-Reply-To: Message from "Dead Line" of "Tue, 20 Mar 2001 10:41:47 -0000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Mar 2001 09:13:40 +1100 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dead_line@hotmail.com said: > Machine one is already UP by ppp connection > its connected to a HUB and the HUB is connected to machine > B, C so all machine on the network. > what what i have to do to tell Machine A (BSD machine) to give > the internet to the other two machines ? Assuming that internet stuff is working properly on Machine A, then basically you need to set up the FreeBSD system to forward traffic, and you need to tell the other two machines to use Machine A as their default gateway. However, because you're using PPP, I would assume that you're using private addresses internally and are getting a dynamic address assignment from whoever it is you're calling with PPP. If that's true, you either need to set up proxies on Machine A for the services you wish to support, or you need to set up NAT. The aim in either case is to have only the PPP-assigned address appear in outgoing traffic since that's probably the only thing that will be routed back across your PPP connection. If you're going with proxies, you don't need to enable your kernel as a gateway; if you're going with NAT (or nothing because you have registered addresses that your ISP will route for you) then you need to make your kernel into a gateway by putting: gateway_enable="YES" in /etc/rc.conf You will also probably find that you won't get far without DNS configured properly. If you're using proxies, you'll need to run DNS on Machine A (in my opinion). If not, you could use the addresses supplied by the ISP for their name servers. Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message