From owner-freebsd-questions Mon Feb 19 17:58:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mt.digitran.com (nwmq0101a.mt.digitran.com [12.3.21.13]) by hub.freebsd.org (Postfix) with ESMTP id BFDED37B491 for ; Mon, 19 Feb 2001 17:58:49 -0800 (PST) Received: from cm-206-31-81-96.gulfbreeze.mediacom.ispchannel.com [206.31.81.96] by mt.digitran.com with Novonyx SMTP Server $Revision: 2.71 $; Mon, 19 Feb 2001 20:54:19 -0500 (EDT) Date: Mon, 19 Feb 2001 19:59:35 -0600 (CST) From: Steve X-Sender: vandena@testbed.com To: Chuck Rider Cc: questions@FreeBSD.ORG Subject: Re: Gateway woes.... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Check out www.mostgraveconcern.com/freebsd and www.freebsddiary.org. Each of these sites have nearly step-by-step instructions on how to set up your dual-homed network and ipfw. ____ _ / ___|| |_ _____ _____ \___ \| __/ _ \ \ / / _ \ ___) | || __/\ V / __/ |____/ \__\___| \_/ \___| ========================= steve@nwf-soccer.com On Mon, 19 Feb 2001, Chuck Rider wrote: > I am trying to set up a firewall using a FreeBSD machine. The first step I > am trying is a basic gateway and am not having much luck. > > I am running FreeBSD version 4.2 in a box with two Ethernet cards. dc0 is > connected to the DSL modem, xl0 is connected to my home network hub. From > the FreeBSD machine I can ping anything I want. On the internet using names > or ip addresses and on my home network using ip addresses. From a machine > on my home network I can ping either Ethernet address on the gateway by ip > address, but I cannot ping anything on the internet. I assume I am not > actually forwarding packets, but am at a loss as to what to try next. Any > help would be greatly appreciated. > > sysctl -a | grep forward yields: > net.inet.ip.forwarding: 1 > net.inet.ip.fastforwarding: 0 > net.inet6.ip6.forwarding: 0 > > here is my rc.conf file > # This file now contains just the overrides from /etc/defaults/rc.conf > # please make all changes to this file. > > # Enable network daemons for user convenience. > # -- sysinstall generated deltas -- # > network_interfaces="dc0 xl0 lo0" > ifconfig_dc0="inet 64.167.104.195 netmask 255.255.255.248" > ifconfig_xl0="inet 10.0.0.2 netmask 255.255.255.0" > ifconfig_lo0="inet 127.0.0.1" > defaultrouter="64.167.104.193" > static_routes="" > gateway_enable="YES" > hostname="crweb.theriders.net" > moused_port="/dev/psm0" > moused_type="auto" > moused_enable="YES" > crweb# > > > > 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