*BSD News Article 58571


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!blackbush.xlink.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: pppd and routing?
Date: 30 Dec 1995 20:54:10 GMT
Organization: Private BSD site, Dresden
Lines: 38
Message-ID: <4c48ti$f8v@uriah.heep.sax.de>
References: <4bq6p3$o7j@osprey.unf.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

caddy@osprey.unf.edu (Cliff Addy) writes:
> We have pppd servicing dialins into a standalone tcp/ip network.  This works
> fine as long as you're only accessing the machine running pppd.  If, for 
> instance, you telnet  or ping another machine on the network, it fails.  I
> have a feeling that it's a misconfiguration of pppd or routed.  The ip#
> line from /etc/ppp/options is something like 200.1.2.100:200.1.2.101. The
> ip # for the server on the tcp/ip network is 200.1.1.1.  Now, from 200.1.1.3
> I can ping 200.1.1.1 and 200.1.2.100, but not 200.1.2.101.

Well, i think this is one of the most frequently asked questions...

For FreeBSD 2.0.5:

	add
		sysctl -nw net.inet.ip.forwarding=1

	somewhere to your /etc/netstart (or /etc/rc.local)

For FreeBSD 2.1:

	put
		gateway=YES

	into your /etc/sysconfig.

Of course, you must make sure that the _outside_ router is willing to
forward all packets for the 200.1.2.* (PPP) network to your box.

Btw., i don't think 200.1.{1,2} are official IP net numbers for you,
so don't use them!  Instead, use the reserved networks that are
mentioned in /etc/hosts.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)