Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2002 22:09:01 +0000
From:      "Christophe Simon" <titof3000@hotmail.com>
To:        randall@ucsb.edu, dkelly@hiwaay.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Internet connection sharing
Message-ID:  <F7R0wzGDCvPeSHvnNFm00004fa2@hotmail.com>

next in thread | raw e-mail | index | archive | help
>From: randall ehren <randall@ucsb.edu>
>To: David Kelly <dkelly@hiwaay.net>
>CC: Christophe Simon <titof3000@hotmail.com>,  
><freebsd-questions@FreeBSD.ORG>
>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F7R0wzGDCvPeSHvnNFm00004fa2>