From owner-freebsd-questions Mon Apr 10 23:28:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 797F637B6BA for ; Mon, 10 Apr 2000 23:27:28 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12emKB-000DD0-00; Mon, 10 Apr 2000 23:06:27 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12emKA-000FAZ-00; Mon, 10 Apr 2000 23:06:26 +0100 Date: Mon, 10 Apr 2000 23:06:26 +0100 From: Ben Smithurst To: Robert Small , freebsd-questions@FreeBSD.org Subject: Re: FreeBSD networking Message-ID: <20000410230626.R60798@strontium.scientia.demon.co.uk> References: <20000410225503.Q60798@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Robert Small wrote: > I've already got my bsd box up and running on the internet, so now, you're > saying, is just plug in the win98 box, and use mine as a "gateway" and it'll > cruise? No, it's not quite that simple, but not far off. First, you need to set gateway_enable="YES" in /etc/rc.conf, to let your BSD box route packets from your LAN to the Internet and vice-versa. Second, if you only have a single IP address available to you (this is probably the case, as you don't say otherwise) you'll need to use network address translation (NAT). Are you using a modem to connect to the Internet? If so, just run "ppp -nat" and whatever other options you normally use to "ppp" (e.g. "ppp -nat -auto yourisp"), and with the above setting in /etc/rc.conf, it should work. (If you don't want to reboot, execute "sysctl -w net.inet.ip.forwarding=1" as root to make the gateway_enable change take effect straight away.) I assume your Win98 box is using an RFC1918 address (i.e. something in 192.168/16, 172.16/12, or 10/8) as it's address? If you're not using a modem, you'll need to use natd, which I'm not familiar with, so hopefully someone else can help if the information in "man natd" doesn't help you. -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message