From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 14:50:45 2004 Return-Path: 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 482AE16A4CE for ; Thu, 19 Feb 2004 14:50:45 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8452A43D1D for ; Thu, 19 Feb 2004 14:50:44 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i1JMocFo036692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Feb 2004 22:50:38 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1JMobdJ036689; Thu, 19 Feb 2004 22:50:37 GMT (envelope-from matthew) Date: Thu, 19 Feb 2004 22:50:37 +0000 From: Matthew Seaman To: "Matthew, Kristina and Ethan" Message-ID: <20040219225037.GA50013@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Matthew, Kristina and Ethan" , freebsd-questions@freebsd.org References: <20040219220232.76606.qmail@web41609.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20040219220232.76606.qmail@web41609.mail.yahoo.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: your mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 22:50:45 -0000 --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--