Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 22:50:37 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "Matthew, Kristina and Ethan" <mcgrawfam@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: your mail
Message-ID:  <20040219225037.GA50013@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040219220232.76606.qmail@web41609.mail.yahoo.com>
References:  <20040219220232.76606.qmail@web41609.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 19, 2004 at 02:02:32PM -0800, Matthew, Kristina and Ethan wrote:

> i have a mac osx machine and a freebsd 4.4 machine
> connected via a crossover cable for a small network.=20
> i have been able to figure out NFS, Apache, FTP etc.=20
> and so far it's really fun.  what i'd like to be able
> to do is as follows:
>=20
> i have a modem on my bsd box and it connects via ppp
> to a dial-up isp.  i would like to configure such that
> when i request an internet site from my mac, the bsd
> box dials up the isp and acts as a gateway until i'm
> done online, then disconnects...=20
>=20
> is this possible, is it really complicated?

It's certainly possible, and it's not too difficult.  Start by setting
up PPP on the FreeBSD box -- there's plenty of examples and howtos
around to help you do that, particularly:

    ppp(8)

    http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html

    /usr/share/examples/ppp

I recommend you use the user-mode PPP if you're just using a standard
POTS dialup.  You will want to use the ppp -nat command line option.

Now, put:

    gateway_enable=3D"YES"

into /etc/rc.conf, and either reboot or run:

    # sysctl net.inet.ip.forwarding=3D1

On your MacOS X machine, set the default route to the IP number of the
FreeBSD box on your X-over cable.  Set the nameserver IP numbers in
/etc/resolv.conf or whatever the MacOS X eqivalent is to the same
numbers as on your FreeBSD box (these will either have been provided
for you in your ISP's documentation, or automatically as part of the
PPP dialup process).

That should be pretty much all you need to do: try looking at some
Internet sites and see how well it works.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--Kj7319i9nmIyA2yE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFANT29dtESqEQa7a0RAkj8AJ4x2rUjv+7K5U2fJrfYX85kNYnu5ACfQ+WW
yPMbCjgAYvo9bYnJu/LdreA=
=NN6z
-----END PGP SIGNATURE-----

--Kj7319i9nmIyA2yE--



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