From owner-freebsd-questions@FreeBSD.ORG Sun May 9 19:24:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09F2D16A4CE for ; Sun, 9 May 2004 19:24:54 -0700 (PDT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCE2643D4C for ; Sun, 9 May 2004 19:24:52 -0700 (PDT) (envelope-from itetcu@apropo.ro) Received: (qmail 14888 invoked by uid 89); 10 May 2004 02:18:56 -0000 Received: from unknown (HELO rdsnet.ro) (62.231.74.131) by 0 with SMTP; 10 May 2004 02:18:56 -0000 Received: (qmail 16903 invoked from network); 10 May 2004 02:24:51 -0000 Received: from unknown (HELO buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 10 May 2004 02:24:51 -0000 Received: from it.buh.cameradicommercio.ro (it.buh.cameradicommercio.ro [192.168.0.10]) by buh.cameradicommercio.ro (Postfix) with ESMTP id F2D6C60D0; Mon, 10 May 2004 05:24:45 +0300 (EEST) Received: from localhost (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with ESMTP id B4D3E383; Mon, 10 May 2004 05:28:27 +0300 (EEST) Received: from it.buh.cameradicommercio.ro ([127.0.0.1])port 10024) with ESMTP id 44514-02; Mon, 10 May 2004 05:28:27 +0300 (EEST) Received: from it.buh.cameradicommercio.ro (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 37E53381; Mon, 10 May 2004 05:28:27 +0300 (EEST) Date: Mon, 10 May 2004 05:28:26 +0300 From: Ion-Mihai Tetcu To: "Jeffrey P. Toth" Message-Id: <20040510052826.02711d1b@it.buh.cameradicommercio.ro> In-Reply-To: <409EE0BA.8080807@attech.net.au> References: <409ED2F7.9080200@attech.net.au> <000401c4362b$3a962ab0$0200a8c0@satellite> <409EE0BA.8080807@attech.net.au> X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at it.buh.cameradicommercio.ro cc: "freebsd-questions@FreeBSD.org" Subject: Re: Network Help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 02:24:54 -0000 On Mon, 10 May 2004 11:24:02 +0930 "Jeffrey P. Toth" wrote: > Thanks Dave, > > I am sure the problem is that I do not have the networking on the > FreeBSD box setup correctly. Anyway, 3 computers on the network, 1 > FreeBSD, 1 XP and 1 Win98. All connected to router at IP xxx.xxx.xxx.1. > The FreeBSD machine is set and should be set to xxx.xxx.xxx.150. OK, all > work fine until, I try to call up the the static IP xxx.xxx.xxx.xxx, or > call up and of the websites by http: from a browser or using lynx on the > FreeBSD box, I get an error: Alert!: Unexpected network read error; > connection aborted or on the Win boxes the browser just times out. > Shortly after or at the timeout, the router freezes and I have to power > reboot it. This shouldn't happen what ever you configured you box (I mean from networking point of view). > I am very sure that this is because I have not properly set it up > and the error is just a symptom of that. In rc.conf for settings all I > have right now is: > > ifconfig_xl0="inet 192.168.0.150 netmask 255.255.255.0" > defaultrouter="192.168.0.1" > > I have read a lot about it and suspect this isn't right but > really not sure how to make the change. I think it should be: > > ifconfig_xl0="xxx.xxx.xxx.xxx" #static IP address > ifconfig_rl0="inet 192.168.0.150 netmask 255.255.255.0" Well, I don't understand if you use you FreeBSD box as a router or not. If yes, then you should have something like: hostname="buh.cameradicommercio.ro" ifconfig_rl0="inet 81.196.25.19 netmask 255.255.255.0" ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0" defaultrouter="81.196.25.1" where rl0 would be your outside interface connencted to your upstream provider's router with ip address 81.196.25.1 and rl1 would be the inside interface connected to a hub/switch with the internal machines. You would also want to use natd on the router, because 192.168/24 is a private address space. So you would add to you rc.conf: natd_enable="YES" natd_interface="rl0" firewall_enable="YES" firewall_type="OPEN" You need FIREWALL="YES" for natd to work. All this is very well explained in the FreeBSD Handbook, tahe a look at: 6.8 Setting Up Network Interface Cards 19.3 Wireless Networking -- IOnut Unregistered ;) FreeBSD "user"