From owner-freebsd-questions Mon Aug 30 17:22:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bantha.org (adsl-117.ntrnet.net [208.241.154.117]) by hub.freebsd.org (Postfix) with ESMTP id 61EC315391 for ; Mon, 30 Aug 1999 17:22:20 -0700 (PDT) (envelope-from krinsky@bantha.org) Received: by bantha.org (Postfix, from userid 100) id 64BC466B04; Mon, 30 Aug 1999 20:20:34 -0400 (EDT) Date: Mon, 30 Aug 1999 20:20:34 -0400 From: David Krinsky To: George Shapiro Cc: Jonathan Chen , freebsd-questions@FreeBSD.ORG Subject: Re: how to set up routing & natd with freebsd 3.1 Message-ID: <19990830202034.A67899@bantha.org> References: <3.0.6.32.19990830101750.0079c8f0@pps.k12.or.us> <3.0.6.32.19990830151712.0079a100@pps.k12.or.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <3.0.6.32.19990830151712.0079a100@pps.k12.or.us>; from George Shapiro on Mon, Aug 30, 1999 at 03:17:12PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Aug 30, 1999 at 03:17:12PM -0700, George Shapiro (gshapiro@pps.k12.or.us) wrote: > Here are some more clues... I am actually just trying to route off a group > of computers on a LAN which has a dedicated gateway (a public high school). > Since there are only a small number of machines in my (hopefull) subnet, i > am doing static routing... i.e. > > #route add -interface 159.191.33.148 vr1 > > is one machine on the subnet. However, i can't ping this machine nor can > the machine ping the interface connected to the subnet (they are on a hub > together, so i shouldn't even need routing.) What am i doing wrong? Are both interfaces properly ifconfigged? My machine has two interfaces, one of which goes to the outside world and the other of which goes to a small private network. The following is an excerpt from my /etc/rc.conf: ifconfig_fxp0="inet 208.241.154.117 netmask 255.255.255.192" defaultrouter="208.241.154.66" network_interfaces="fxp0 ed1 lo0" ifconfig_ed1="inet 192.168.0.1 netmask 255.255.0.0" firewall_enable="YES" firewall_type="open" gateway_enable="YES" natd_enable="YES" natd_interface="fxp0" Everything not on either interface's subnet is routed to $defaultrouter; natd is up and running so the machines on the private subnet (which lack their own internet-wide IPs) can see the outside world so long as they use 192.168.0.1 as a gateway. Hope this helps... Dave. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message