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
[-- Attachment #1 --] carl wrote: > i have a couple old nice comps both with nic's and a crossover cable > connecting them, but i have only one modem....i wana set up one of them to > be a gateway and share the connectino with the other, in some howto's iv > read ur supposed to use natd for this type of set up..but not with ppp! and > thats what im using so im having some trouble figureing out what to do > first. the computer i wana set up the gateway on is runing 4.0 release and > the nic (ep0) is configured and working. i just need some help on where to > 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=YES" in /etc/rc.conf so your computer is configured to route packets from one interface to another. To enable packet forwarding without rebooting, just run, # sysctl -w net.inet.ip.forwarding=1 as root. You may encounter other problems, but they should be easy enough to solve. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000710224017.A94380>
