Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2004 13:41:35 +0300
From:      Andrew Karjagin <Andrew.Karjagin@newmail.ru>
To:        <valqk@lozenetz.net>, <freebsd-net@freebsd.org>
Subject:   Re: PPP Problem and question.
Message-ID:  <20040220104135.11644.qmail@flock1.newmail.ru>
In-Reply-To: <1077225243.5249.5.camel@valqk.upper.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
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 -- узел свободных коммуникаций.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220104135.11644.qmail>