Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2000 22:40:17 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        carl <statik@cris.com>
Cc:        questions@freebsd.org
Subject:   Re: gateway sounds like fun
Message-ID:  <20000710224017.A94380@strontium.scientia.demon.co.uk>
In-Reply-To: <4.3.1.1.20000708132006.00b25c20@pop3.concentric.net>
References:  <4.3.1.1.20000708132006.00b25c20@pop3.concentric.net>

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

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

carl wrote:

> i have a couple old nice comps both with nic's and a crossover cable=20
> connecting them, but i have only one modem....i wana set up one of them t=
o=20
> be a gateway and share the connectino with the other, in some howto's iv=
=20
> read ur supposed to use natd for this type of set up..but not with ppp! a=
nd=20
> thats what im using so im having some trouble figureing out what to do=20
> first. the computer i wana set up the gateway on is runing 4.0 release an=
d=20
> the nic (ep0) is configured and working. i just need some help on where t=
o=20
> start , thanks for the help dudes!!!!!!!!!!!!!!!!!!!!!!!

If you're using user ppp, rather than pppd, it's very simple.  You just
put "nat enable yes" in /etc/ppp/ppp.conf.  If you're using pppd, then
you'll need to use natd instead.  Also, you'll need to put
"gateway_enable=3DYES" in /etc/rc.conf so your computer is configured to ro=
ute
packets from one interface to another.  To enable packet forwarding without
rebooting, just run,

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

as root.  You may encounter other problems, but they should be easy
enough to solve.

--=20
Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D

--mP3DRpeJDSE+ciuQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: /sQM9gu4hPLS/lXQv6Az1Q/A4bcCihuE

iQCVAwUBOWpCwCsPVtiZOS99AQFR6QP+KAQSGX3wsuLh2Sp7gHDq37agQQI9WBMT
0eNgVj9QboNgzxENgMU7ythgA8gAmjGYi7X7gfE7HjEW4EOkNf4RApF8PQcqDPAU
61LP++4yUp82cBE5SiNjLTAgYZ9B22Oq4EjTo1oBvCARoawt/hzZnyOjNtWl10S3
/sT7keiHgLU=
=PP2a
-----END PGP SIGNATURE-----

--mP3DRpeJDSE+ciuQ--


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?20000710224017.A94380>