From owner-freebsd-net Mon May 11 04:09:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA22578 for freebsd-net-outgoing; Mon, 11 May 1998 04:09:36 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from avrasya.ispro.net.tr (avrasya.ispro.net.tr [195.174.18.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA22040 for ; Mon, 11 May 1998 04:08:35 -0700 (PDT) (envelope-from yurtesen@ispro.net.tr) Received: from localhost (yurtesen@localhost) by avrasya.ispro.net.tr (8.8.6/8.7.3) with SMTP id PAA03790; Mon, 11 May 1998 15:04:32 +0300 Date: Mon, 11 May 1998 15:04:32 +0300 (EET DST) From: Evren Yurtesen To: Wes Peters cc: freebsd-net@FreeBSD.ORG Subject: Re: router In-Reply-To: <35567577.3AFFEA12@softweyr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I did it but it is not working as a gateway.... I do not know what I am doing wrong, what should I do? +--------------------------------------------------------+ | Name : Evren Yurtesen - yurtesen@ispro.net.tr | | S-mail: Mithatpasa Cad. No:1079/13 35290 Guzelyali | | Home:+90-232-2857604 Work:+90-232-2463992 Izmir/TURKEY | +--------------------------------------------------------+ On Sun, 10 May 1998, Wes Peters wrote: > 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