Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 10:06:08 -0500 (EST)
From:      Thomas David Rivers <rivers@dignus.com>
To:        Jeff.Bond@nectech.co.uk, questions@FreeBSD.ORG
Subject:   Re: Setting up a FreeBSD box as a gateway to my ISP
Message-ID:  <199901281506.KAA13328@lakes.dignus.com>
In-Reply-To: <084DD226F592D211988800A024AC583B2692DB@exchange.nectech.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hello,
> 
> I would like to know how I can setup an old 486 running 2.2.7 to act as a
> 'gateway' to my ISP, so that other PCs (running Win98 or FreeBSD) on my LAN
> can access the internet. 
> 
> I can get the 2.2.7 machine to dial and connect to my ISP (Freeserve BTW),
> with no problem using pppd, but how do I get it to route data from the other
> machines on my LAN to the ISP via my modem? Also, what do I need to setup on
> the other machines? (Do I just need to set the 'Gateway' box in win98 to the
> ethernet IP of my FreeBSD machine?) The LAN is just a simple ethernet, using
> IP's such as 10.0.0.X. The FreeBSD machine with the modem is 10.0.0.1. I get
> a dynamic IP address for the ppp0 interface each time I dial my ISP. 
> 
> I'm not so bothered with dial-on-demand and such like at the moment, just
> the actual routing of the packets. 
> 
> What's the easiest way to do this?
> 

 1) Turn the GATEWAY option on in /etc/rc.conf

 2) If you have a set of IP addresses for the internal machines, you're
    all done.

    If not - you'll need to use Network Address Translation (NAT) to
    make the machines on your interior network "appear the same as" the
    single machine you have connected to the external network.

    To set up nat; you need to get IPFW (the firewall stuff) going,
    which will mean a kernel build.  Then, after that's done, you can
    set up natd - the network translation deamon.

    Or - I believe a much simpler approach, since you're using ppp is
    to investigate the -alias option on ppp.


	- Dave Rivers -




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?199901281506.KAA13328>