From owner-freebsd-hackers Tue Jun 27 21:24:12 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA19827 for hackers-outgoing; Tue, 27 Jun 1995 21:24:12 -0700 Received: from wc.cdrom.com (wc.cdrom.com [192.216.223.37]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA19821 for ; Tue, 27 Jun 1995 21:24:11 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by wc.cdrom.com (8.6.12/8.6.12) with SMTP id VAA23278 for ; Tue, 27 Jun 1995 21:24:06 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA27028; Wed, 28 Jun 1995 06:21:52 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id GAA09032; Wed, 28 Jun 1995 06:21:51 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id FAA01051; Wed, 28 Jun 1995 05:02:32 +0200 From: J Wunsch Message-Id: <199506280302.FAA01051@uriah.heep.sax.de> Subject: Re: packet forwarding To: jbeukema@HK.Super.NET (John Beukema) Date: Wed, 28 Jun 1995 05:02:31 +0200 (MET DST) Cc: hackers@FreeBSD.org In-Reply-To: from "John Beukema" at Jun 28, 95 10:19:31 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1894 Sender: hackers-owner@FreeBSD.org Precedence: bulk As John Beukema wrote: > > > I am running 2.0.5R and iiij.ppp. I am very pleased with it so far. I > have one problem however which is probably something stupid on my part. > > I have a local network on 10.0.0.1 to .15 on ed1 and iij.ppp on tun0. > > I would like to use the FreeBSD machine, winjef, as a gateway to the > Internet. My kernel is compiled with options GATEWAY. After ppp is > connected netstat -r gives as follows: (Btw., options GATEWAY is almost a no-op these days.) > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default ts1.hk.super.net UGc 3 368 tun0 > 10 link#1 UC 0 0 > winjef 0:0:44:2:e6:c UHLW 4 409 lo0 > john 2:0:0:91:7:8 UHLW 0 3 ed1 954 > 10.0.0.255 link#1 UHLW 1 404 > localhost localhost UH 0 8 lo0 > ts1.hk.super.net slip47.hk.super.ne UH 2 0 tun0 > slip47.hk.super. winjef UGHS 0 0 ed1 > 224 link#1 UCS 0 0 > > I can ping ts1.hk.super.net from winjef (10.0.0.2) and I can ping winjef > from john (10.0.0.3) but I cannot ping ts1.hk.super.net from john. > > I tried route add ts1.hk.super.net winjef and various other combinations > but have not succeeded. You cannot connect a 10.* net to the Internet. It will not be routed, hence you won't get answer packets for it from the other end of your PPP link. (Even if they would route your 10.*-net back through the PPP link, they are forbidden to route it to the global net.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)