From owner-freebsd-questions Sun Dec 22 14:10:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B606537B401 for ; Sun, 22 Dec 2002 14:10:24 -0800 (PST) Received: from hotmail.com (f7.pav1.hotmail.com [64.4.31.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A0B543EE6 for ; Sun, 22 Dec 2002 14:10:24 -0800 (PST) (envelope-from titof3000@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 22 Dec 2002 14:09:01 -0800 Received: from 212.198.0.93 by pv1fd.pav1.hotmail.msn.com with HTTP; Sun, 22 Dec 2002 22:09:01 GMT X-Originating-IP: [212.198.0.93] From: "Christophe Simon" To: randall@ucsb.edu, dkelly@hiwaay.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Internet connection sharing Date: Sun, 22 Dec 2002 22:09:01 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Message-ID: X-OriginalArrivalTime: 22 Dec 2002 22:09:01.0420 (UTC) FILETIME=[BBA0D2C0:01C2AA06] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >From: randall ehren >To: David Kelly >CC: Christophe Simon , > >Subject: Re: Internet connection sharing >Date: Sun, 22 Dec 2002 11:15:17 -0800 (PST) > > > > I'm trying to configure an old K6 200 as a gateway to share my >internet > > > connection at home. My LAN connected interface is xl0 (192.168.0.1), >and my > > > internet connected interface is ed0 (DHCP). > > > I followed the instructions to make a filtering bridge : > > [...] > > > > IMO you don't want a filtering bridge. You want a NAT Gateway. Enable > > the gateway kernel option, may have to compile divert sockets into the > > kernel, ipfw is needed to divert packets to natd, run natd. > >or you can use IPFILTER, less involved setup: > http://www.isber.ucsb.edu/~randall/wireless/ipnat.html > >in your case, fxp0 = ed0 and xl0 = wi0 (corresponding to the guide above) > > -randall > >-- > :// randall s. ehren :// voice 805.893.5632 > :// systems administrator :// isber|survey|avss.ucsb.edu > :// institute for social, behavioral, and economic research I succeeded in configuring my pc as an internet gateway. I had problems with the the page you indicated me (but it's very well done and documented). Here's the method i used : * In the kernel configuration file for compilation: options IPFILTER options IPDIVERT options IPFIREWALL options IPFIREWALL_VERBOSE (to log firewall) options IPFIREWALL_VERBOSE_LIMIT=100 (log limits) * In the rc.conf file (on a 192.168.0.0 network) ifconfig_xl0="inet 192.168.0.1 netmask 0xffffff00" (LAN connection" ifconfig_ed0="DHCP" gateway_enable="YES" natd_enable="YES" natd_interface=ed0 firewall_enable="YES" firewall_type="open" (or any firewall rules) firewall_quiet="YES" firewall_logging="YES" I hope it will be of any utility... Thanks a lot for your help ! _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message