From owner-freebsd-net@FreeBSD.ORG Mon Mar 23 11:32:19 2009 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FC6F1065670 for ; Mon, 23 Mar 2009 11:32:19 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 0318C8FC08 for ; Mon, 23 Mar 2009 11:32:18 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by gxk24 with SMTP id 24so7203199gxk.19 for ; Mon, 23 Mar 2009 04:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:references :subject:date:mime-version:content-type:content-transfer-encoding :x-priority:x-msmail-priority:x-mailer:x-mimeole; bh=n2zHfWSfeG5jSnFp6XZE1L2ncrOLA6y5xnLU+/vrsGo=; b=liuA2yTj8sx3C5YUtdugn3KL0jclaLm/d6WA7yOCVvslZ9EXfKXj1E+341P3fQGoHC yfoufh0XjpNRR5UIzAChsIupOJAJQEgLlvVlrtljnAA5wls82yZUT8hLXhwNlqzYmjs7 ynewom/1ksQFkLf0jbbO+ICV+fymNiD8K+wtM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; b=p7RfTw1rawK9+Yg7Fbx57gQxyLke9QuTzSbWaFX+9p3vrjPdmyegfKYgwWncHkCMPi 7jQlR23Kzammd4Hh99aTq6sPTUQ4UOi8e+dlToIr7WbnYtPImyTNbbdemkUM8adTB7nF Xy4lw4WpH2+BFkt+rxlwSftusMYDGTiJSwydo= Received: by 10.90.96.1 with SMTP id t1mr4058831agb.3.1237806427753; Mon, 23 Mar 2009 04:07:07 -0700 (PDT) Received: from adnote989 (189-18-124-154.dsl.telesp.net.br [189.18.124.154]) by mx.google.com with ESMTPS id 38sm8581690aga.69.2009.03.23.04.07.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Mar 2009 04:07:07 -0700 (PDT) Message-ID: <87153F88702C4FBCA3FC799082960C45@adnote989> From: "Luiz Otavio O Souza" To: , "Brett Glass" References: <200903222114.PAA17884@lariat.net> Date: Mon, 23 Mar 2009 08:06:56 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Mailman-Approved-At: Mon, 23 Mar 2009 11:49:05 +0000 Cc: Subject: Re: Problems with inward PPTP tunnel 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: Mon, 23 Mar 2009 11:32:19 -0000 > Just a quick followup: I've finally figured out a workaround. A hack, to > be sure, but a workaround nonetheless. > > I've created a shell script called /etc/ppp/pppfix, which looks like this: > > #!/bin/sh > # Fix up PPP routes > sleep 1; > logger -i -t ppp Fixing route: route change -host $1 $2 -ifp $3 > route change -host $1 $2 -ifp $3 > > I invoke this from the relevant section of /etc/ppp.linkup with the line > > !bg /etc/ppp/pppfix HISADDR MYADDR INTERFACE > > Note that the "sleep" may not be absolutely necessary, but it seems like a > good idea just in case there's a race condition. > > I also added the following lines in the relevant section of ppp.linkdown: > > iface clear > delete! HISADDR > delete! ALL > shell arp -d HISADDR > quit all > > I found that if I did not do this, the modified route persisted after the > connection terminated. The "arp -d HISADDR" should only be used if proxy > arp is being done, and may not be strictly necessary; I wanted to make > sure I tore down any residual proxy arp entry. > > Of course, all of this is an awful hack and the relevant code in userland > PPP still needs to be looked at. > > --Brett Glass Brett, I've fixed these two issues with ppp(8), please check the PRs: bin/130159 and bin/131250. If it works for you please let a note and maybe someone commit this. Best regards, Luiz