From owner-freebsd-net@FreeBSD.ORG Mon Dec 15 09:46:25 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 A82261065672 for ; Mon, 15 Dec 2008 09:46:25 +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 18FCB8FC16 for ; Mon, 15 Dec 2008 09:46:24 +0000 (UTC) (envelope-from dustah@gmail.com) Received: by ewy14 with SMTP id 14so3391187ewy.19 for ; Mon, 15 Dec 2008 01:46:23 -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:mime-version:content-type; bh=NIe/ekGxFRJ6+CfZmSTiI4GT4w8TkRoR1Aq1IGjGBbI=; b=vSkAmMhBS8k+uJB8NQE2EA8KsXb5cLSOT+/tJ8xHfoh+hzbZSy/gYF8/nXwg/nmYzg 5TJ5ryz/NMpDNeDXVl9f+k24u6CSSt2md7DqKW2CQFJjNur8GPt2FSnILh4uHzSORDdy 5rGyXC2FUdD4pVOMdcK220LACouZ1lx9tIM2Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Gz2OkS+L2XPKiavdH/eA9XlJYuC93ZW4IrnudbNAJ9xLbWUatOFZMuEoXetfQuqQGE e0bG9huG7UQjMV1yT1eN0YOTIIE09qHKV56rl9oirzbql9jJFBzw223BrHS7hzqO2gBq X0SGlVx4MFycRiqVuys32HdU6jWBueh+L0BaQ= Received: by 10.210.34.5 with SMTP id h5mr738609ebh.161.1229332658552; Mon, 15 Dec 2008 01:17:38 -0800 (PST) Received: by 10.210.139.6 with HTTP; Mon, 15 Dec 2008 01:17:38 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 12:17:38 +0300 From: "Denis Mysenko" To: freebsd-net@freebsd.org MIME-Version: 1.0 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: 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: Mon, 15 Dec 2008 09:46:25 -0000 Hello everybody! I got stuck here with PPP + Poptop :( I use Poptop 1.3.4 on FreeBSD 7.1-PRERELEASE for a VPN server. As far as I understand, the problem is related either to userland ppp or to FreeBSD itself and not to Poptop. So here it is: There is a Poptop server running for several VPN clients, MPPE is enabled for PPP. When somebody connects, tunnel interface is created and corresponding entry in the routing table is made, like this one: UGH 0 0 tun0 Everything works fine, both with MPPE turned on and off. The problem starts when second client connects to Poptop! New tunnel interface, let's say tun1, is created correctly, with proper IP address. However, routing table is updated with incorrect entry: UGH 0 0 tun0 As we can see, FreeBSD added a routing entry going through the same tunnel interface - of the previous client! So obviously new VPN connection doesn't work. What is strange - is that it happens only when second client turns on MPPE. With MPPE turned off - everything works fine. I was playing a lot with different parameters and once I got everything working, but not anymore :) Since I don't see any logical reason - I cannot recover the proper config. As far as I understand, so far, PPP creates a tunnel interface and then FreeBSD, and not PPP, adds a routing table entry since a new network interface was added - am I true? Local IP (my side of the PtP) for all tunnel devices is the same - let's say 192.168.0.1. So as I see it, when detecting corresponding interface FreeBSD chooses the first tunnel interface because it has the same local IP. The question is - why does MPPE affect this process? And it used to work half a day ago anyway. Please - if anybody has any idea - could you help me!? :) -- Sincerely, -- Denis Mysenko, CCNA, MCP, MCSA Technologies of the Smart City Ltd Phone: +7 903 913-2651 ICQ: 555955