Thanks, i should have provided more details earlier. freeRadius is configured with mysql and users are authenticated using EAP - PEAP without certificates. Once users are authenticated thru radius, ip address is released thru another dhcp server. Issue 1, When Users are getting authenticated, freeradius isn't sending Class attribute of the usergroup/user in Access-Accept message. Only User-Name is sent to NAS. NAS is configured to forward RADIUS accounting packets to Fortigate, where fortigate gets only authenticated username and ip address from NAS. As freeRadius is not sending Class attributes in Access-Accept. NAS isn't sending any Class info to Fortigate. Without usergroup info in Class attribute, can't provide RSSO based access to various networks. While troubleshooting NAS it was found freeradius is sending Class attribute information in Access-Challenge message !!. . Further troubleshooting on radius server revealed the following; 1, radtest from the server return class attributes of user/usergroup. 2, when running server in debug mode and authenticating from NAS, it doesn't. Is this the default behaviour ?. How do i tell freeradius to send Class attribute of usergroup in Access-Accept ?. Issue 2, freeradius is not sending accounting copies to Fortigate. Having Added "realm {}" in proxy.conf, added "detailfile = ${radacctdir}/detail" in detail file and included "update control {}" in preacct section of copy-acct-to-home-server file and linked the same to sites-enabled folder. I'm not sure if i have missed anything. One might ask why send accounting again, Fortigate can have only one RSSO Agent, thus sending accounting packets from multiple NAS is not possible. Also I'm planning to use some old gear that doesn't support sending accounting to another server. Sending accounting copies from freeradius will eliminate various admin overheads. Attached config files. Eby -------------------------------------------- On Thu, 7/4/16, Alan DeKok <aland@deployingradius.com> wrote: Subject: Re: Forward Accounting Packets to Fortiage - need help To: "Eby Mani" <eby_km@yahoo.com>, "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Date: Thursday, 7 April, 2016, 4:42 PM On Apr 7, 2016, at 11:37 AM, Eby Mani via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
Thanks
Alan, the NAS and Fortigate does RADIUS.
The easiest way for
me is to configure NAS to forward RADIUS accounting packets to Fortigate. But my freeRadius is not sending Class attributes in Access-Accept to NAS client, thus NAS client isn't sending any Class info to Fortigate.
However freeRadius
is sending Class attributes in Access-Challenge to NAS !!!.
Is there a
command to include Class attributes in Access-Accept ?. Configure the server to send it. As always, run the server in debug mode, and READ IT. Also, describe what you're doing. In detail. Your questions are nearly content free. We're not mind readers. We don't know what you've configured. You don't say if you're using EAP or another authentication method. Any answer to help you depends on knowing what you're actually doing. Since we don't know what you're doing, we can't really help you. Alan DeKok.
On Apr 8, 2016, at 2:56 PM, Eby Mani <eby_km@yahoo.com> wrote:
freeRadius is configured with mysql and users are authenticated using EAP - PEAP without certificates. Once users are authenticated thru radius, ip address is released thru another dhcp server.
OK...
Issue 1, When Users are getting authenticated, freeradius isn't sending Class attribute of the usergroup/user in Access-Accept message. Only User-Name is sent to NAS.
That is a common problem, and typically because you're running rules in the first few packets that aren't run for the last one. e.g. you may have use_tunneled_reply = no.
1, radtest from the server return class attributes of user/usergroup. 2, when running server in debug mode and authenticating from NAS, it doesn't.
How about reading the debug log, and seeing what it does? The server prints out rather a lot more than just the packets it's receiving, and replies it sends. It prints out WHY it's sending a particular reply.
Is this the default behaviour ?. How do i tell freeradius to send Class attribute of usergroup in Access-Accept ?.
That depends on where you're using the SQL module. The "use_tunneled_reply" configuration might help.
Issue 2, freeradius is not sending accounting copies to Fortigate. Having Added "realm {}" in proxy.conf, added "detailfile = ${radacctdir}/detail" in detail file and included "update control {}" in preacct section of copy-acct-to-home-server file and linked the same to sites-enabled folder. I'm not sure if i have missed anything.
You need to set Proxy-To-Realm in order to proxy packets.
One might ask why send accounting again, Fortigate can have only one RSSO Agent, thus sending accounting packets from multiple NAS is not possible. Also I'm planning to use some old gear that doesn't support sending accounting to another server. Sending accounting copies from freeradius will eliminate various admin overheads.
Attached config files.
No. Attach the debug output as suggested in the FAQ, "man" pages, web pages, and daily on this list. Alan DeKok.
participants (2)
-
Alan DeKok -
Eby Mani