From owner-freebsd-questions@FreeBSD.ORG Fri Oct 1 10:04:19 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 4915C16A4CE for ; Fri, 1 Oct 2004 10:04:19 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5105043D1F for ; Fri, 1 Oct 2004 10:04:18 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1] (may be forged))i91A4Dcj005982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 1 Oct 2004 11:04:13 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i91A4DXe005981; Fri, 1 Oct 2004 11:04:13 +0100 (BST) (envelope-from matthew) Date: Fri, 1 Oct 2004 11:04:13 +0100 From: Matthew Seaman To: metallarch Message-ID: <20041001100413.GC91573@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , metallarch , questions@freebsd.org References: <415D170E.000037.14036@ariel.yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline In-Reply-To: <415D170E.000037.14036@ariel.yandex.ru> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 01 Oct 2004 11:04:13 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: nat or ......? 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: Fri, 01 Oct 2004 10:04:19 -0000 --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 01, 2004 at 12:36:30PM +0400, metallarch wrote: >=20 > I made the ppp connection from windows to freebsd(tun0), and from freebsd= to internet > (tun2)"at the same time"! > I have 2 modems > What can i do that i could browse internet on windows over freebsd? That should certainly be feasible. You will need to make the FreeBSD system be a gateway machine -- add: gateway_enable=3D"YES" to /etc/rc.conf. You'll need to run an instance of ppp for each modem, each with its own separate configuration. You will need to run NAT on the FreeBSD boxes' internet interface: that's built into the ppp(8) server and can be specified on the command line. On the windows box side, all you need is the configuration that lets you dial in as required. Remember to adjust any firewall rulesets to allow traffic from your windows machine out to the world at large, and for the responses to come back again. Running a caching recursive DNS server on the FreeBSD box would be a good idea, as would running some sort of web proxying software, although you will be able to get away without either of those. Don't expect a stellar web browsing experience from your windows box -- running through two PPP links is going to result in pretty horrendous network latency. 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 --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBXSudiD657aJF7eIRArqgAJ9ynDqK3KubJM0pn0C4ixczpqfqkACgkM7Y wHMJhte4HVmwuQrf0/+w/uI= =O+mK -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l--