Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2004 11:04:13 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        metallarch <metallarch@yandex.ru>
Cc:        questions@freebsd.org
Subject:   Re: nat or ......?
Message-ID:  <20041001100413.GC91573@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <415D170E.000037.14036@ariel.yandex.ru>
References:  <415D170E.000037.14036@ariel.yandex.ru>

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

--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--



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