From owner-freebsd-net@FreeBSD.ORG Tue Mar 24 07:21:08 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 347971065676; Tue, 24 Mar 2009 07:21:08 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id E9C6B8FC21; Tue, 24 Mar 2009 07:21:07 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id n2O79Uxb010685; Tue, 24 Mar 2009 00:09:30 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 24 Mar 2009 00:09:24 -0700 Message-ID: In-Reply-To: <87153F88702C4FBCA3FC799082960C45@adnote989> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems with inward PPTP tunnel Thread-Index: AcmrrYdKUDuKCF/kSwOKtO9oQcWI5wAoSx1Q References: <200903222114.PAA17884@lariat.net> <87153F88702C4FBCA3FC799082960C45@adnote989> From: "Li, Qing" To: "Luiz Otavio O Souza" Cc: Brett Glass , Qing Li , net@freebsd.org 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: Tue, 24 Mar 2009 07:21:08 -0000 Hi, I read over your patch and I don't think you need to change the definition of rt_Update() to fix this bug. Have you read my patch committed to head/user.sbin/ppp/route.c on 12/18/2008? svn r186308, cvs r1.96. Please take a look. Thanks, -- Qing > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of Luiz Otavio O Souza > Sent: Monday, March 23, 2009 4:07 AM > To: net@freebsd.org; Brett Glass > Subject: Re: Problems with inward PPTP tunnel >=20 > > 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 >=20 > Brett, >=20 > I've fixed these two issues with ppp(8), please check the PRs: > bin/130159 > and bin/131250. >=20 > If it works for you please let a note and maybe someone commit this. >=20 > Best regards, > Luiz >=20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"