From owner-freebsd-net Sun May 10 20:50:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA01108 for freebsd-net-outgoing; Sun, 10 May 1998 20:50:39 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from softweyr.com ([204.68.178.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA01072 for ; Sun, 10 May 1998 20:50:28 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (localhost.softweyr.com [127.0.0.1]) by softweyr.com (8.8.8/8.8.7) with ESMTP id VAA10704; Sun, 10 May 1998 21:50:16 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <35567577.3AFFEA12@softweyr.com> Date: Sun, 10 May 1998 21:50:15 -0600 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: Evren Yurtesen CC: freebsd-net@FreeBSD.ORG Subject: Re: router References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Evren Yurtesen wrote: > > how can I use freebsd like a router between 2 interfaces > or gateway > like ed0 and ed1 ? > hmm, my network configuration is like > ed1: flags=8843 mtu 1500 > inet 195.174.18.16 netmask 0xffffff00 broadcast 195.174.18.255 > ether 00:80:48:eb:ac:2b > ed0: flags=8843 mtu 1500 > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:20:18:10:86:1b > I want to connect my windows boxes to ed0 > and set gateway to 192.168.1.1 > > hmm how can I do that? > I tried it with natd and ipfw and it is working > but I want to do it withoud using ipfw! > how can I do it? In /etc/rc.conf, setup your machine to be a gateway: ### Network routing options: ### defaultrouter="204.68.178.2" # Set to default gateway (or NO). static_routes="" # Set to static route list (or leave empty). gateway_enable="NO" # Set to YES if this host will be a gateway. Change gateway_enable to "YES". This will turn on IP packet forwarding on the next system boot. In the meantime, you can turn it on (as root) with: sysctl -w net.inet.ip.forwarding=1 -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message