From owner-freebsd-questions Mon Jul 10 15:25:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 7C62137B985 for ; Mon, 10 Jul 2000 15:24:55 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13BlHl-000MNP-00; Mon, 10 Jul 2000 22:40:17 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13BlHl-0000a7-00; Mon, 10 Jul 2000 22:40:17 +0100 Date: Mon, 10 Jul 2000 22:40:17 +0100 From: Ben Smithurst To: carl Cc: questions@freebsd.org Subject: Re: gateway sounds like fun Message-ID: <20000710224017.A94380@strontium.scientia.demon.co.uk> References: <4.3.1.1.20000708132006.00b25c20@pop3.concentric.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <4.3.1.1.20000708132006.00b25c20@pop3.concentric.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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