From owner-freebsd-net@FreeBSD.ORG Fri Feb 20 02:41:36 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 1EEA116A4CE for ; Fri, 20 Feb 2004 02:41:36 -0800 (PST) Received: from flock1.newmail.ru (morda.newmail.ru [212.48.140.150]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C23043D1D for ; Fri, 20 Feb 2004 02:41:35 -0800 (PST) (envelope-from Andrew.Karjagin@newmail.ru) Received: (qmail 11649 invoked by alias); 20 Feb 2004 10:41:35 -0000 Message-ID: <20040220104135.11644.qmail@flock1.newmail.ru> From: Andrew Karjagin To: , X-Priority: 3 MIME-Version: 1.0 X-Mailer: DenMail v1.0 by ORC X-Uid: 689 X-RemoteIP: 81.89.64.105 Date: Fri, 20 Feb 2004 13:41:35 +0300 In-Reply-To: <1077225243.5249.5.camel@valqk.upper.lan> X-DWM-In-Reply-To: <1077273695.11595.denwebmail-8742-INBOX@Andrew_Karjagin> Content-type: text/plain; charset="koi8-r" Subject: Re: PPP Problem and question. 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 10:41:36 -0000 Hello Anton Blajev I am using pppoed daemon with userlevel ppp and radius. Here is my /etc/ppp/radius.conf ========================== auth 81.89.yy.xx:1645 secret 5 3 acct 81.89.yy.xx:1646 secret 5 3 auth 81.89.yy.zz:1645 secret 5 3 acct 81.89.yy.zz:1646 secret 5 3 ========================== Here is my /etc/ppp/ppp.conf ========================== default: allow users * set log phase lcp chat set dns 192.168.128.1 81.89.yy.zz accept dns pppoe: set device !/usr/libexec/pppoed set mtu 1492 set mru 1492 set speed sync set timeout 300 set server /var/run/pppuser%d "" 0177 allow mode direct disable pap enable chap disable acfcomp protocomp deny acfcomp set ifaddr 192.168.128.1 192.168.128.3-192.168.131.254 255.255.255.255 - this parameters may be accessed from radius except gateway ip enable proxy load radius radius: set radius /etc/ppp/radius.conf ========================== NAS-Port-Type = Virtual - may be wrong. Try NAS-Port-Type = Ethernet Пт, 20.02.2004 01:14:03 you wrote: > AB> Hello there to everyone. AB> I'm using freebsd for pptp server and I'm trying to setup a reeradius AB> ippoll feature working with fbsd. AB> I'm expiriencing problems with that, it dues to a problem that AB> (according to me) comes from a ppp userland tool. AB> AB> I have setupped working freeradius+mysql and a pptp+ppp server, the AB> problem comes whe I try to get a dynamic ip from the freeradius(beacuse AB> ppp userland can't be used[or I'm mistaking? can ppp assign a dynamic ip AB> addres by itself?) AB> so this is the problem: AB> when I try to test if it's working with radtest it goes something like AB> this: AB> radtest bla bla 192.168.0.100 1812 blabla AB> AB> I got: AB> rad_recv: Access-Request packet from host 192.168.0.100:3137, id=255, AB> length=55 AB> User-Name = "bla" AB> User-Password = "bla" AB> NAS-IP-Address = 255.255.255.255 AB> NAS-Port = 1812 AB> modcall: entering group authorize for request 38 AB> AB> .... and I get an ip address assinged fomr the dynamic range: AB> rad_recv: Access-Accept packet from host 192.168.0.100:1812, id=99, AB> length=44 AB> Framed-Protocol = PPP AB> Service-Type = Framed-User AB> Framed-IP-Address = 192.168.12.192 AB> Framed-IP-Netmask = 255.255.254.0 AB> AB> BUT!!! when I try to connect trough the pptp (ppp implementation under AB> freebsd 4.9 using "set radius" in the ppp.conf I get this: AB> AB> rad_recv: Access-Request packet from host 192.168.0.1:1421, id=109, AB> length=142 AB> User-Name = "bla" AB> Service-Type = Framed-User AB> Framed-Protocol = PPP AB> MS-CHAP-Challenge = 0x35303437363836363834343734393632 AB> MS-CHAP2-Response = AB> 0x010085a16d8c4d564e0b754f61fff6680efa0000000000000000032b2a37754168ca3fd20909891b617982a445a7e6670623 AB> NAS-Identifier = "valqk.upper.lan" AB> NAS-Port-Type = Virtual AB> AB> AB> and after that: AB> rlm_ippool: Could not find nas port information. Return NOOP. AB> modcall[post-auth]: module "access_pool" returns noop for request 35 AB> AB> AB> As we obviously see, ppp is NOT seding the NAS-Port var when sending a AB> request to freeradius trought ppp... AB> AB> Is this some kind of bug and can anyone tell me why is this happenig??? AB> I'd greatly appriciate any help!! AB> 10x in advance!!! AB> AB> _______________________________________________ AB> freebsd-net@freebsd.org mailing list AB> http://lists.freebsd.org/mailman/listinfo/freebsd-net AB> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" AB> http://www.orc.ru/access/leased.dhtml - Интернет для офиса (SDSL) - подключение 0 USD __________ www.newmail.ru -- узел свободных коммуникаций.