From owner-freebsd-net@FreeBSD.ORG Fri Mar 18 14:25:35 2011 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 1387A106564A for ; Fri, 18 Mar 2011 14:25:35 +0000 (UTC) (envelope-from freebsd-net@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id BD7508FC17 for ; Fri, 18 Mar 2011 14:25:34 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.186]) by mail.unitedinsong.com.au (Postfix) with ESMTP id D0F0E5C35 for ; Sat, 19 Mar 2011 00:33:16 +1000 (EST) Message-ID: <4D836B6B.8040106@herveybayaustralia.com.au> Date: Sat, 19 Mar 2011 00:25:47 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20110204 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4D8164CA.80501@herveybayaustralia.com.au> <4D81871B.1030506@sentex.net> <4D81AE1E.5070103@herveybayaustralia.com.au> <4D833787.3020706@herveybayaustralia.com.au> <4D836637.6080601@sentex.net> In-Reply-To: <4D836637.6080601@sentex.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: mpd- no ng_l2tp coming up 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: Fri, 18 Mar 2011 14:25:35 -0000 On 03/19/11 00:03, Mike Tancsa wrote: > On 3/18/2011 6:44 AM, Da Rock wrote: > >> First, the connection from Android (apparently uses mtpd- I just found >> out) fails at SCCRP- apparently it doesn't respond to the challenge >> response (logs posted previously). Using xl2tpd (apparently- linux only) >> you have a l2tp-secrets file with the local hostname, remote hostname, >> and the secret in that order. >> > > >> How do I do this in mpd? I tried the >> hostname directive, but its still no good. Or is this never going to >> work with mpd? Just use it without secrets? >> > There are username/passwd credentials and LAC-LNS credentials which are > different and it sounds like you are confusing the two. You just need > to put the userid and passwd in the mpd.secrets file. > I don't think I'm confusing the 2. I understand the ppp user login, and I understand the peer credentials- the error I see in the log is in relation to the peer credentials. If I run mpd on the FBSD system as a client with a secret then it connects. Android fails here- it will connect if I remove the secret from the server config (btw I'm still using my original server config- it was roughly the same as yours anyway, so I seem to have been on the right track). So whats different? Android logs in as peer "anonymous". I haven't found anything specific in the manual (or maybe I missed it) that tells me how to do this. On linux apparently there's a l2tp-secrets file (xl2tpd uses it at least) which has " <(optional) IP>" per line. Seeing as android is linux, and uses mtpd (a linux l2tp client) then shouldn't I find a way for this? Or am I being paranoid? This is to secure the control connection, but I will be using this with IPSEC. How much does/would this matter? > >> Second, why does mpd die (as in terminated- no process running) when >> this fails? >> > Are you running it in the foreground ? Just run it with mpd -b > No, rc service. But I have to actually start it again after this failure- beats me why it would throw it in with a very basic error like that. The logs I posted earlier showed it up- the CS-DYING is thrown (assertion failure), and mpd4 or 5 dies. For that matter I think l2tpd dies for the same reason- whatever that is... I'll try with -b and get back to you. > ---Mike >