From owner-freebsd-net@FreeBSD.ORG Tue Dec 16 13:49:33 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 965CC106567C for ; Tue, 16 Dec 2008 13:49:33 +0000 (UTC) (envelope-from dustah@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id C23218FC12 for ; Tue, 16 Dec 2008 13:49:32 +0000 (UTC) (envelope-from dustah@gmail.com) Received: by ewy14 with SMTP id 14so4266578ewy.19 for ; Tue, 16 Dec 2008 05:49:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=7KxInTwv+5Kskn77ldloWMYg0egJ8VEwq9lnno7Fllg=; b=TMN9g8myOfeaDn163qysscQyf5qG57Gyx82Xd0x8liWRHR2GaoR/rcceqCBYnWekZr pgVX2kuRw9LDc6gHTAuHAbYaQZZSSj0xBfa4v+mibSBQI0tCWvrXP00YR/U2ekn2U1Nn 35WaNsI5FbLt2xtc0r7yQLYSnIT2Y7o65Y8NI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=eIxtM8OsJoFlJhwxOmhBlpZt8U3LAeD/+v3nhnoR2smimYaRXC4rZW+Dc4TeW+YWXV kSlYJXtbabaAMkPp+dJmx9PZXLqnxtNmdia6GTM+mmOIS2wMUAhYsO8kLZfrNtEiOf9s cood6UXw4Med9pZpGncuT6dt9Tb8+DELng/ic= Received: by 10.210.113.16 with SMTP id l16mr9277134ebc.38.1229435371316; Tue, 16 Dec 2008 05:49:31 -0800 (PST) Received: by 10.210.139.6 with HTTP; Tue, 16 Dec 2008 05:49:31 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 16:49:31 +0300 From: "Denis Mysenko" To: freebsd-net@freebsd.org In-Reply-To: MIME-Version: 1.0 References: <200812151112.59847.max@love2party.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: PPP / Routing table X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 13:49:33 -0000 I guess I found the source of the problem - it is route_Add() function from route.c (a part of /usr/sbin/ppp) which modifies routing table of the machine upon a new connection. As a quick solution, I created a ppp.linkup file: /sbin/route del $1 /sbin/route add -host $1 -iface $2 that deletes incorrect route entry and adds a new one with UH (no RTF_GATEWAY anymore) flags and proper destination interface. But it would be much nicer to have this problem fixed in ppp instead... :) -- Sincerely, -- Denis Mysenko, CCNA, MCP, MCSA Technologies of the Smart City Ltd Phone: +7 903 913-2651 ICQ: 555955