From owner-freebsd-stable Mon Sep 3 13:12:34 2001 Delivered-To: freebsd-stable@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 0CE4937B403; Mon, 3 Sep 2001 13:12:15 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.5/8.11.5) with ESMTP id f83KBRA99742; Mon, 3 Sep 2001 21:11:39 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id f83KBRj24419; Mon, 3 Sep 2001 21:11:27 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200109032011.f83KBRj24419@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Shunsuke SHINOMIYA Cc: freebsd-bugs@freebsd.org, freebsd-stable@freebsd.org, re@freebsd.org, snap-users@kame.net Subject: Re: user-ppp assigns the address same with already assigned for other clients In-Reply-To: Message from Shunsuke SHINOMIYA of "Sun, 02 Sep 2001 22:18:25 +0900." <20010902213719.968A.S-SHINO@kt.rim.or.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Sep 2001 21:11:27 +0100 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've cc'd snap-users@kame.net in case someone can come up with a quick fix (FreeBSD is about to be released, and this bug has just been exposed).... > Dear sir, > > I noticed while building the PPTP server with FreeBSD 4.4-RC, user-ppp > seems that it assigns already assigned address for other clients. > > It checked by 4.4-RC-20010825-JPSNAP. > > For example, pptpd(PoPToP) running with user-ppp(ppp.conf contains the > following), and one client has already connected. Other client make > connections and user-ppp assigns the same address of already connected > by high probability, and it becomes impossible communicate normally. > > > set log Phase IPCP > > > > set ifaddr 192.168.1.1 192.168.1.64-192.168.1.65 255.255.255.255 > > accept dns > > set dns 192.168.1.1 > > set timeout 0 > > > > disable PAP CHAP MSCHAP > > enable MSCHAPv2 > > disable deflate pred1 > > deny deflate pred1 > > > > set mppe 128 stateless > > enable mppe This is very bad. This will break most ppp server setups that allocate IP numbers on demand. Taking a quick look, I can only *guess* that this has been caused by one of the recent kame MFCs, as the SIOCAIFADDR ioctl() (that ppp uses to assign the addresses, and expects to fail for duplicates) is now implemented in the kernel by using SIOCAIFADDR_IN6 (the ipv6-capable implementation). I'll try to get a chance to look at it in the next day or two. For anyone that may be able to help, I've attached a couple of ppp config entries. Running ``ppp loop'' and typing ``open'' in two different screens will show the problem -- four interfaces are configured, two pairs of duplicates. > Thanks. > > > / Shunsuke Shinomiya / > /s-shino@kt.rim.or.jp/ Cheers. -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! loop: set timeout 0 set device "!ppp -direct loop-in" set dial set login set log set ifaddr 10.2.0.1/24 10.1.0.1-10.1.0.2 loop-in: set timeout 0 set log set ifaddr 10.1.0.1/24 10.2.0.1-10.2.0.2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message