From owner-freebsd-net@FreeBSD.ORG Fri Feb 20 14:32:23 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 702E616A4CE for ; Fri, 20 Feb 2004 14:32:23 -0800 (PST) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id B24FC43D1D for ; Fri, 20 Feb 2004 14:32:22 -0800 (PST) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i1KMWKQE053842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 Feb 2004 01:32:21 +0300 (MSK) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i1KMWKmH053841; Sat, 21 Feb 2004 01:32:20 +0300 (MSK) Date: Sat, 21 Feb 2004 01:32:20 +0300 From: Gleb Smirnoff To: Anton Blajev Message-ID: <20040220223220.GA53771@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Anton Blajev , freebsd-net@freebsd.org References: <1077315102.75490.3.camel@valqk.upper.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <1077315102.75490.3.camel@valqk.upper.lan> User-Agent: Mutt/1.5.6i cc: freebsd-net@freebsd.org Subject: Re: NAS-Port X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 20 Feb 2004 22:32:23 -0000 On Sat, Feb 21, 2004 at 12:11:43AM +0200, Anton Blajev wrote: A> I'm writing with an idea, A> As we saw NAS-Port is not obligatory, it's used to say about the port A> client's using to connect, okay... A> but why ins't ppp sending A> NAS-Port = tun0 for example (with the other type value: A> something like this: A> NAS-Port-Type = "Virtual" A> NAS-Port = "tun0" A> ) Don't forget that NAS-Port attribite is integer. A> Wouldn't this be good to be done , because freeradius (and myabe other A> radiuses) are using NAS-Port for unique identifyer to give an ip A> addres... so there are no duplicates... A> A> So, I'm asking... wouldn't be more proper and accurate ppp to send A> NAS-Port = tun or it's being done on purpose not to do this. /usr/ports/net/mpd does this. It sends interface number as NAS-Port. You can easily write a small patch for ppp(8), which will add this functionality to ppp. You can also submit it via send-pr. However, it seems like ppp maintainer is not working on ppp anymore. I've sent familiar patch (it adds Calling-Station-Id attribute) more than a year ago and the PR still hangs not assigned. Really, you should try mpd from ports. :) -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE