From owner-freebsd-questions@FreeBSD.ORG Thu Feb 5 05:16:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B54E616A6CF for ; Thu, 5 Feb 2004 05:16:11 -0800 (PST) Received: from mbox.techno-link.com (fatboy.spnet.net [212.50.0.18]) by mx1.FreeBSD.org (Postfix) with SMTP id D933143D46 for ; Thu, 5 Feb 2004 05:16:03 -0800 (PST) (envelope-from alexb@mail.bg) Received: (qmail 20771 invoked by uid 64014); 5 Feb 2004 13:15:56 -0000 Received: from alexb@mail.bg by weber by uid 64011 with qmail-scanner-1.20rc1 ( Clear:RC:1:. Processed in 0.035594 secs); 05 Feb 2004 13:15:56 -0000 Received: from unknown (HELO vovin.spnet.net) (212.50.0.9) by weber.techno-link.com with SMTP; 5 Feb 2004 13:15:56 -0000 Received: (qmail 4372 invoked from network); 5 Feb 2004 13:15:51 -0000 Received: from unknown (HELO telcom-t2d1w7kn) (195.149.250.81) by vovin.spnet.net with SMTP; 5 Feb 2004 13:15:51 -0000 Received: from 195-149-253-172.PPPoE-dynamic.HomeLan.bg ([195.149.253.172]) by telcom-t2d1w7kn (602Pro LAN SUITE 2003) id 303f4c15 for freebsd-questions@freebsd.org; Thu, 5 Feb 2004 15:16:53 +0200 Message-ID: <004f01c3ebea$5974d750$0200a8c0@ALIENX> From: "Alexander Botov" To: Date: Thu, 5 Feb 2004 15:17:04 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: forwarding with ttl=1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 13:16:11 -0000 Hi All=20 I am newbie with configuring networks under FreeBSD . I have small = network with gateway running on FreeBSD 5.2 Release .My ISP offers me = pppoe service for connecting to Internet . I didn't have problems with = configuring ppp with pppoe . I used nat option wchich works fine for = masquerading the local network from the world . The problem is that the = ISP's gateway returns every time packets with ttl=3D1 which makes = further forwarding impossible . My gateway returns icmp error mesage = "time exceeded" and discards packets . I want to know if I made some = mistake with configuring nat service or if not what is the solution of = the problem ? Is there any service that can increment ttl and process = the packet ? I tried to avoid the checking of ttl in the ip_forward() = function in ip_input.c and skipping the decrement of ttl and everything = works fine but i think that this is very ugly kernel hack . Probably = there is an easy and elegant solution . Any ideas ? please excuse my English