Freeradius-Users
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 6 participants
- 27066 discussions
>
>
>
> If you want to enforce client cert then EAP-TLS is your only widely viable
> option. Disable other EAP methods.
>
> Configure EAP-TLS, and disable all other EAP types.
How/Where would I do that?
Also, from what I gathered in the readme for the client cert, the
commonName field is the User-Name that will be used for logins... If the
cert is used for authentication, do I just need an entry for the user with
Auth-Type := Accept. I'm not sure what the users entry should look like
for EAP-TLS
Thanks..
-Rob
> On 4 Jan 2018 5:07 am, "R.Geller" <rg1(a)robertgeller.net> wrote:
>
> > Hi Alan,
> >
> > I blew away all my configs, and running vanilla 3.0.13 from yum
> install. I
> > am using out-of-the-box configs, and created users and clients file. I
> > created certificate files, and I also tested with eapol_test
> >
> >
> > I can authenticate with windows 10 client with no issues at this point.
> I
> > created certificates based on README instructions with new install, and
> > verified that I can connect with eap_test using ttls-eap-mschapv2 and
> > others (ttls-pap)...
> >
> > At this point, I would like to lock down the authentication so that
> either
> > the client cert is required, or authorized MAC. I did configure the
> > authorized mac previously which was working, but stopped working, and I
> > think the reason it stopped working prior had nothing to do with the MAC
> > configs, but because the CA/CERTs I created expired. They are not
> expired
> > now since I created them with a new EXPIRE date, but what is happening is
> > that the clients/supplicant I am testing with can authenticate without
> the
> > root/client certs installed. I would rather authenticate with
> > certificates, and not rely on authorized MACs at this point...
> >
> > Can you point me in the direction of how to configure the radius server
> to
> > only authenticate if the client certificate is installed?
> >
> > Thanks I'm advance...
> >
> > -Rob
> >
> >
> >
> >
> > >
> > > I'm Running 3.0.13 for a while now. I set it up to support cert
> > > authentication, as well as authorized MACs. I didn't deploy any
> clients
> > > using certs, only set up with user/pass and authorized MACs.
> >
> > It may be good then to disable EAP. Especially if you're not using it.
> >
> > > Sometime last week, users couldn't authenticate. I see errors in debug
> > > stated there are 2 auth types, I can see the MAC auth is working, but
> > users
> > > are failing to authenticate because of EAP failure. At this point, I
> > want
> > > to be able to use both MAC / user+pass auth, and if in the future we
> > decide
> > > to deploy certs, than allow that too. If we need to disable EAP or
> certs
> > > to get this working, that is an option too. Not sure why it stopped
> > > working out of the blue. The radius server hasn't been touched since
> the
> > > initial working config.
> >
> > If the RADIUS server did't change, then something else did.
> >
> > > Any ideas?
> > >
> > >
> > > (0) Received Access-Request Id 168 from 10.2.1.53:41523 to
> > 10.2.2.35:1812
> > > length 218
> > > (0) User-Name = "rbadani"
> > > (0) NAS-Identifier = "pakedge"
> > > (0) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
> > > (0) NAS-Port-Type = Wireless-802.11
> > > (0) Service-Type = Framed-User
> > > (0) NAS-Port = 0
> > > (0) Calling-Station-Id = "34-F3-9A-86-59-57"
> > > (0) Connect-Info = "CONNECT 0Mbps 802.11b"
> > > (0) Acct-Session-Id = "196EB9DAB87DC1A9"
> > > (0) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
> > > (0) WLAN-Pairwise-Cipher = 1027076
> > > (0) WLAN-Group-Cipher = 1027076
> > > (0) WLAN-AKM-Suite = 1027073
> > > (0) Framed-MTU = 1400
> > > (0) EAP-Message = 0x02e1000c0172626164616e69
> >
> > Is this user supposed to be doing EAP? If so, fix your configuration
> to
> > allow EAP and MAC auth.
> >
> > If not... talk to the user and ask him what he thinks he's doing.
> >
> >
> > > (0) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
> > > (0) [authorized_macs] = ok
> > > (0) if (!ok) {
> > > (0) if (!ok) -> FALSE
> > > (0) else {
> > > (0) update control {
> > > (0) Auth-Type := Accept
> >
> > You can't do this for EAP.
> >
> > Your "allow MAC auth" rule has to check for EAP, too. i.e. do:
> >
> > authorized_macs
> > if (!ok) {
> > reject # reject unauth MACs, even if they do EAP
> > }
> >
> > if (!EAP-Message) {
> > update control {
> > Auth-Type := Accept
> > }
> > }
> >
> > > (0) Found Auth-Type = Accept
> > > (0) Found Auth-Type = eap
> > > (0) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
> >
> > Exactly. The default configuration doesn't have this error. So it's
> > something you added locally.
> >
> > > (2) eap: Peer sent packet with method EAP PEAP (25)
> >
> > Is the user supposed to be doing PEAP?
> >
> > Alan DeKok.
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/
> > list/users.html
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 4 Jan 2018 12:47:42 +0100
> From: Bassem Mettichi <mettichi(a)gmail.com>
> To: FreeRadius users mailing list
> <freeradius-users(a)lists.freeradius.org>
> Subject: Accounting Reject reponse
> Message-ID:
> <CADpsxzF5Gji+3cg_KTXg9sCVBvtp+YEEhqwoV3QM-
> iyyWbXeDw(a)mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Hello,
>
> please could and one help me when freeradius reject an accounting request (
> Start, Stop, Interim-Update) how to send Response Accounting Reject Message
> to client Side because default configuration freeradius dosen't send
> response to Client Side:
>
> } # accounting = reject
> (2) Not sending reply to client.
> (2) Finished request
>
> Thanks in advance
>
> Best Regards
> Mettichi Bassem
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 5 Jan 2018 01:03:25 +1300
> From: Nathan Ward <lists+freeradius(a)daork.net>
> To: FreeRadius users mailing list
> <freeradius-users(a)lists.freeradius.org>
> Subject: Re: Accounting Reject reponse
> Message-ID: <71E420E1-1C21-451C-BA9A-A0F2EF3AF06C(a)daork.net>
> Content-Type: text/plain; charset=utf-8
>
>
> > On 5/01/2018, at 12:47 AM, Bassem Mettichi <mettichi(a)gmail.com> wrote:
> >
> > Hello,
> >
> > please could and one help me when freeradius reject an accounting
> request (
> > Start, Stop, Interim-Update) how to send Response Accounting Reject
> Message
> > to client Side because default configuration freeradius dosen't send
> > response to Client Side:
> >
> > } # accounting = reject
> > (2) Not sending reply to client.
> > (2) Finished request
>
> You have included a very small snippet of your debug output - please
> provide the whole thing, not just the parts you think are important.
>
> What message would you like FreeRADIUS to send in this instance? You talk
> about "Response Accounting Reject Messageā but there is no such message.
> RADIUS accounting uses only Accounting-Request and Accounting-Response. If
> there is no response, the NAS will do whatever you configure it to do -
> i.e. fail over to another RADIUS server, or disconnect the user, or
> something else entirely. If you wish for some sort of hard reject to take
> place, you should look towards generating a CoA to disconnect the user (or
> whatever you need to do).
>
> --
> Nathan Ward
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 4 Jan 2018 08:09:51 -0500
> From: Alan DeKok <aland(a)deployingradius.com>
> To: FreeRadius users mailing list
> <freeradius-users(a)lists.freeradius.org>
> Subject: Re: Authorized MAC users stopped authenticating
> Message-ID: <C04BB960-15A4-4B14-93DA-2806D486D82E(a)deployingradius.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Jan 4, 2018, at 12:06 AM, R.Geller <rg1(a)robertgeller.net> wrote:
> > I blew away all my configs, and running vanilla 3.0.13 from yum
> install. I
> > am using out-of-the-box configs, and created users and clients file. I
> > created certificate files, and I also tested with eapol_test
>
> That's good.
>
> > I can authenticate with windows 10 client with no issues at this point.
> I
> > created certificates based on README instructions with new install, and
> > verified that I can connect with eap_test using ttls-eap-mschapv2 and
> > others (ttls-pap)...
>
> That's good/
>
> > At this point, I would like to lock down the authentication so that
> either
> > the client cert is required, or authorized MAC. I did configure the
> > authorized mac previously which was working, but stopped working, and I
> > think the reason it stopped working prior had nothing to do with the MAC
> > configs, but because the CA/CERTs I created expired.
>
> Don't guess. Figure out the problem.
>
> > They are not expired
> > now since I created them with a new EXPIRE date, but what is happening is
> > that the clients/supplicant I am testing with can authenticate without
> the
> > root/client certs installed.
>
> Only if you configure the clients to do that.
>
> > I would rather authenticate with
> > certificates, and not rely on authorized MACs at this point...
> >
> > Can you point me in the direction of how to configure the radius server
> to
> > only authenticate if the client certificate is installed?
>
> Configure EAP-TLS, and disable all other EAP types.
>
> And be *methodical* about changes to the config. Make a change. Test
> it. Make a backup of the config.
>
> One of the top 3 reasons why people screw up their config is by making
> random changes without testing them, or without understanding what the
> changes do. And, it wastes enormous amounts of time.
>
> Alan DeKok.
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 4 Jan 2018 19:12:22 +0000 (UTC)
> From: chuck beck <cpsonl(a)yahoo.com>
> To: "freeradius-users(a)lists.freeradius.org"
> <freeradius-users(a)lists.freeradius.org>
> Subject: new install needs detail logging
> Message-ID: <1394662287.492089.1515093142151(a)mail.yahoo.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hello list, I am new to administering free radius. I have completed the
> install of freeradius version 3.013 on 3.10.0-693.11.1.el7.x86_64. It is
> working and authenticating a test user. I see the authentication messages
> in the main log:
> Thu Jan 4 10:09:05 2018 : Warning: [/etc/raddb/mods-config/attr_filter/access_reject]:11
> Check item "FreeRADIUS-Response-Delay-USec" found in fi
> lter list for realm "DEFAULT".
> Thu Jan 4 10:09:05 2018 : Info: Loaded virtual server <default>
> Thu Jan 4 10:09:05 2018 : Warning: Ignoring "sql" (see
> raddb/mods-available/README.rst)
> Thu Jan 4 10:09:05 2018 : Warning: Ignoring "ldap" (see
> raddb/mods-available/README.rst)
> Thu Jan 4 10:09:05 2018 : Info: Loaded virtual server default
> Thu Jan 4 10:09:05 2018 : Info: # Skipping contents of 'if' as it is
> always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:330
> Thu Jan 4 10:09:05 2018 : Info: Loaded virtual server inner-tunnel
> Thu Jan 4 10:09:05 2018 : Info: Ready to process requests
> Thu Jan 4 10:09:41 2018 : Auth: (0) Login incorrect (pap: MD5 digest does
> not match "known good" digest): [chuck] (from client Geneva port 0
> cli 10.xx.2x.4)
> Thu Jan 4 10:09:49 2018 : Auth: (1) Login OK: [chuck] (from client Geneva
> port 0 cli 10.xx.2x.4)
> Thu Jan 4 10:11:53 2018 : Auth: (2) Login OK: [chuck] (from client Geneva
> port 0 cli 10.xx.2x.4)
> Thu Jan 4 10:12:07 2018 : Auth: (3) Login OK: [chuck] (from client Geneva
> port 0 cli 10.xx.2x.4)
> Thu Jan 4 10:12:47 2018 : Info: Signalled to terminate
> Thu Jan 4 10:12:47 2018 : Info: Exiting normally
> I modified very little so far on the configuration. The last thing I tried
> is modifying:
> -
> >From the authorize section in /etc/raddb/sites-enabled/default file:
> #
> # If you want to have a log of authentication requests,
> # un-comment the following line, and the 'detail auth_log'
> # section, above.
> # auth_log
>
> -
> >From the post-auth section in /etc/raddb/sites-enabled/default file:
> #
> # If you want to have a log of authentication replies,
> # un-comment the following line, and the 'detail reply_log'
> # section, above.
> # reply_log
>
> and restarting. Still no logs created in:
> - chuck@njs-radius-01 raddb]$ sudo -u radiusd ls -lr /var/log/radius
> total 16
> drwxr-xr-x 2 radiusd radiusd 6 Jan 3 10:12 radwtmp
> drwxr-xr-x 2 radiusd radiusd 6 Jan 3 10:12 radutmp
> -rw-r----- 1 radiusd radiusd 561 Dec 29 13:44 radius.log-20180101.gz
> -rw-r----- 1 radiusd radiusd 9895 Jan 4 10:14 radius.log
> drwx------ 3 radiusd radiusd 26 Jan 4 10:09 radacct
> [chuck@njs-radius-01 raddb]
> directories are empty.
> I don't see anything relevant in the debug output when I run with -X so I
> did not post that here. I can if it would help. Pretty sure I'm missing
> something simple, any ideas?thanks !-Chuck
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 4 Jan 2018 14:19:57 -0500
> From: Alan DeKok <aland(a)deployingradius.com>
> To: chuck beck <cpsonl(a)yahoo.com>, FreeRadius users mailing list
> <freeradius-users(a)lists.freeradius.org>
> Subject: Re: new install needs detail logging
> Message-ID: <1F1587DB-9630-4954-ADB6-A9724135F90A(a)deployingradius.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Jan 4, 2018, at 2:12 PM, chuck beck via Freeradius-Users <
> freeradius-users(a)lists.freeradius.org> wrote:
> >
> > Hello list, I am new to administering free radius. I have completed the
> install of freeradius version 3.013 on 3.10.0-693.11.1.el7.x86_64. It is
> working and authenticating a test user. I see the authentication messages
> in the main log:
>
> It's best to read the *debug output* as suggested in all of the
> documentation. That tells you what's going on.
>
> > I modified very little so far on the configuration. The last thing I
> tried is modifying:
>
> What did you modify there? Did you uncomment those entries?
>
> > I don't see anything relevant in the debug output when I run with -X so
> I did not post that here.
>
> If you don't know what you're looking for, you won't think that anything
> is relevant.
>
> > I can if it would help. Pretty sure I'm missing something simple, any
> ideas?thanks !-Chuck
>
> If you want us to help you, post the debug log.
>
> Alan DEKok.
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
>
> ------------------------------
>
> End of Freeradius-Users Digest, Vol 153, Issue 9
> ************************************************
>
3
2
Hello list,Ā I am new to administering free radius. I have completed the install of freeradius version 3.013 onĀ 3.10.0-693.11.1.el7.x86_64. It is working and authenticating a test user. I see the authenticationĀ messages in the main log:Ā
Thu JanĀ 4 10:09:05 2018 : Warning: [/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec"Ā Ā found in fi
lter list for realm "DEFAULT".
Thu JanĀ 4 10:09:05 2018 : Info: Loaded virtual server <default>
Thu JanĀ 4 10:09:05 2018 : Warning: Ignoring "sql" (see raddb/mods-available/README.rst)
Thu JanĀ 4 10:09:05 2018 : Warning: Ignoring "ldap" (see raddb/mods-available/README.rst)
Thu JanĀ 4 10:09:05 2018 : Info: Loaded virtual server default
Thu JanĀ 4 10:09:05 2018 : Info:Ā # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:330
Thu JanĀ 4 10:09:05 2018 : Info: Loaded virtual server inner-tunnel
Thu JanĀ 4 10:09:05 2018 : Info: Ready to process requests
Thu JanĀ 4 10:09:41 2018 : Auth: (0) Login incorrect (pap: MD5 digest does not match "known good" digest): [chuck] (from client Geneva port 0
cli 10.xx.2x.4)
Thu JanĀ 4 10:09:49 2018 : Auth: (1) Login OK: [chuck] (from client Geneva port 0 cli 10.xx.2x.4)
Thu JanĀ 4 10:11:53 2018 : Auth: (2) Login OK: [chuck] (from client Geneva port 0 cli 10.xx.2x.4)
Thu JanĀ 4 10:12:07 2018 : Auth: (3) Login OK: [chuck] (from client Geneva port 0 cli 10.xx.2x.4)
Thu JanĀ 4 10:12:47 2018 : Info: Signalled to terminate
Thu JanĀ 4 10:12:47 2018 : Info: Exiting normally
I modified very little so far on the configuration. The last thing I tried is modifying:
-
>From the authorize section in /etc/raddb/sites-enabled/default file:
#
# If you want to have a log of authentication requests,
# un-comment the following line, and the 'detail auth_log'
# section, above.
# auth_log
-
>From the post-auth section in /etc/raddb/sites-enabled/default file:
#
# If you want to have a log of authentication replies,
# un-comment the following line, and the 'detail reply_log'
# section, above.
# reply_log
and restarting. Still no logs created in:Ā
- chuck@njs-radius-01 raddb]$ sudo -u radiusd ls -lr /var/log/radius
total 16
drwxr-xr-x 2 radiusd radiusdĀ Ā Ā 6 JanĀ 3 10:12 radwtmp
drwxr-xr-x 2 radiusd radiusdĀ Ā Ā 6 JanĀ 3 10:12 radutmp
-rw-r----- 1 radiusd radiusdĀ 561 Dec 29 13:44 radius.log-20180101.gz
-rw-r----- 1 radiusd radiusd 9895 JanĀ 4 10:14 radius.log
drwx------ 3 radiusd radiusdĀ Ā 26 JanĀ 4 10:09 radacct
[chuck@njs-radius-01 raddb]
directories are empty.Ā
I don't see anything relevant in the debug output when I run with -X so I did not post that here. I canĀ if it would help.Ā Pretty sure I'm missing something simple, any ideas?thanks !-Chuck
2
3
Hi,
I am having trouble connecting users from nas cisco. The radius accepts the
user's request, but shortly after disconnecting.
Could someone help me with this problem?
Thanks.
Log radius:
(1) Received Access-Request Id 231 from 177.38.112.2:62270 to
177.38.112.4:1812 length 235
(1) Cisco-AVPair = "client-mac-address=4c5e.0cf7.1979"
(1) Acct-Session-Id = "00011afd"
(1) NAS-Port-Id = "0/0/12/500"
(1) Cisco-NAS-Port = "0/0/12/500"
(1) User-Name = "usuariocisco"
(1) Service-Type = Framed-User
(1) User-Password = "tmw"
(1) X-Ascend-Connect-Progress = LCP-Opened
(1) Cisco-AVPair = "connect-progress=LCP Open"
(1) Framed-Protocol = PPP
(1) NAS-Port-Type = Wireless-XGP
(1) Event-Timestamp = "Jan 4 2018 17:24:29 -02"
(1) NAS-Identifier = "PPPoE_ASR9001"
(1) NAS-IP-Address = 177.38.112.2
(1) NAS-IPv6-Address = ::
(1) # Executing section authorize from file
/usr/local/etc/raddb/sites-enabled/default
(1) authorize {
(1) policy filter_username {
(1) if (&User-Name) {
(1) if (&User-Name) -> TRUE
(1) if (&User-Name) {
(1) if (&User-Name =~ / /) {
(1) if (&User-Name =~ / /) -> FALSE
(1) if (&User-Name =~ /@[^@]*@/ ) {
(1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(1) if (&User-Name =~ /\.\./ ) {
(1) if (&User-Name =~ /\.\./ ) -> FALSE
(1) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(1) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(1) if (&User-Name =~ /\.$/) {
(1) if (&User-Name =~ /\.$/) -> FALSE
(1) if (&User-Name =~ /(a)\./) {
(1) if (&User-Name =~ /(a)\./) -> FALSE
(1) } # if (&User-Name) = notfound
(1) } # policy filter_username = notfound
(1) [preprocess] = ok
(1) [chap] = noop
(1) [mschap] = noop
(1) eap: No EAP-Message, not doing EAP
(1) [eap] = noop
(1) sql: EXPAND %{User-Name}
(1) sql: --> usuariocisco
(1) sql: SQL-User-Name set to 'usuariocisco'
rlm_sql (sql): Reserved connection (2)
(1) sql: EXPAND SELECT id, UserName, Attribute, Value, Op FROM radcheck
WHERE Username = '%{SQL-User-Name}' ORDER BY id
(1) sql: --> SELECT id, UserName, Attribute, Value, Op FROM radcheck
WHERE Username = 'usuariocisco' ORDER BY id
(1) sql: Executing select query: SELECT id, UserName, Attribute, Value, Op
FROM radcheck WHERE Username = 'usuariocisco' ORDER BY id
rlm_sql_postgresql: Status: PGRES_TUPLES_OK
rlm_sql_postgresql: query affected rows = 2 , fields = 5
(1) sql: User found in radcheck table
(1) sql: Conditional check items matched, merging assignment check items
(1) sql: Cleartext-Password := "tmw"
(1) sql: Pool-Name := "PoolCisco"
(1) sql: EXPAND SELECT id, UserName, Attribute, Value, Op FROM radreply
WHERE Username = '%{SQL-User-Name}' ORDER BY id
(1) sql: --> SELECT id, UserName, Attribute, Value, Op FROM radreply
WHERE Username = 'usuariocisco' ORDER BY id
(1) sql: Executing select query: SELECT id, UserName, Attribute, Value, Op
FROM radreply WHERE Username = 'usuariocisco' ORDER BY id
rlm_sql_postgresql: Status: PGRES_TUPLES_OK
rlm_sql_postgresql: query affected rows = 0 , fields = 5
(1) sql: EXPAND SELECT GroupName FROM radusergroup WHERE
UserName='%{SQL-User-Name}' ORDER BY priority
(1) sql: --> SELECT GroupName FROM radusergroup WHERE
UserName='usuariocisco' ORDER BY priority
(1) sql: Executing select query: SELECT GroupName FROM radusergroup WHERE
UserName='usuariocisco' ORDER BY priority
rlm_sql_postgresql: Status: PGRES_TUPLES_OK
rlm_sql_postgresql: query affected rows = 1 , fields = 1
(1) sql: User found in the group table
(1) sql: EXPAND SELECT id, GroupName, Attribute, Value, op FROM
radgroupcheck WHERE GroupName = '%{SQL-Group}' ORDER BY id
(1) sql: --> SELECT id, GroupName, Attribute, Value, op FROM
radgroupcheck WHERE GroupName = 'CC' ORDER BY id
(1) sql: Executing select query: SELECT id, GroupName, Attribute, Value, op
FROM radgroupcheck WHERE GroupName = 'CC' ORDER BY id
rlm_sql_postgresql: Status: PGRES_TUPLES_OK
rlm_sql_postgresql: query affected rows = 0 , fields = 5
(1) sql: Group "CC": Conditional check items matched
(1) sql: Group "CC": Merging assignment check items
(1) sql: EXPAND SELECT id, GroupName, Attribute, Value, op FROM
radgroupreply WHERE GroupName = '%{SQL-Group}' ORDER BY id
(1) sql: --> SELECT id, GroupName, Attribute, Value, op FROM
radgroupreply WHERE GroupName = 'CC' ORDER BY id
(1) sql: Executing select query: SELECT id, GroupName, Attribute, Value, op
FROM radgroupreply WHERE GroupName = 'CC' ORDER BY id
rlm_sql_postgresql: Status: PGRES_TUPLES_OK
rlm_sql_postgresql: query affected rows = 2 , fields = 5
(1) sql: Group "CC": Merging reply items
(1) sql: Service-Type = Framed-User
(1) sql: Framed-Protocol = PPP
rlm_sql (sql): Released connection (2)
Need 4 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (6), 1 of 26 pending slots used
rlm_sql_postgresql: Connecting using parameters: dbname='radius'
host='10.65.65.253' port=5432 user='radius' password='bdR4dius'
Connected to database 'radius' on '10.65.65.253' server version 100000,
protocol version 3, backend PID 11982
(1) [sql] = ok
(1) [expiration] = noop
(1) [logintime] = noop
(1) [pap] = updated
(1) } # authorize = updated
(1) Found Auth-Type = PAP
(1) # Executing group from file /usr/local/etc/raddb/sites-enabled/default
(1) Auth-Type PAP {
(1) pap: Login attempt with password
(1) pap: Comparing with "known good" Cleartext-Password
(1) pap: User authenticated successfully
(1) [pap] = ok
(1) } # Auth-Type PAP = ok
(1) # Executing section post-auth from file
/usr/local/etc/raddb/sites-enabled/default
(1) post-auth {
(1) update {
(1) No attributes updated
(1) } # update = noop
(1) sql: EXPAND .query
(1) sql: --> .query
(1) sql: Using query template 'query'
rlm_sql (sql): Reserved connection (3)
(1) sql: EXPAND %{User-Name}
(1) sql: --> usuariocisco
(1) sql: SQL-User-Name set to 'usuariocisco'
(1) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES('%{User-Name}', '%{%{User-Password}:-Chap-Password}',
'%{reply:Packet-Type}', NOW())
(1) sql: --> INSERT INTO radpostauth (username, pass, reply, authdate)
VALUES('usuariocisco', 'tmw', 'Access-Accept', NOW())
(1) sql: Executing query: INSERT INTO radpostauth (username, pass, reply,
authdate) VALUES('usuariocisco', 'tmw', 'Access-Accept', NOW())
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 1
(1) sql: SQL query returned: success
(1) sql: 1 record(s) updated
rlm_sql (sql): Released connection (3)
(1) [sql] = ok
rlm_sql (sql): Reserved connection (4)
(1) sqlippool: EXPAND %{User-Name}
(1) sqlippool: --> usuariocisco
(1) sqlippool: SQL-User-Name set to 'usuariocisco'
(1) sqlippool: EXPAND START TRANSACTION
(1) sqlippool: --> START TRANSACTION
(1) sqlippool: Executing query: START TRANSACTION
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 0
(1) sqlippool: EXPAND UPDATE radippool SET nasipaddress = '', pool_key = 0,
callingstationid = '', expiry_time = 'now'::timestamp(0) - '1
second'::interval WHERE nasipaddress = '%{NAS-IP-Address}' AND pool_key =
'%{Calling-Station-Id}'
(1) sqlippool: --> UPDATE radippool SET nasipaddress = '', pool_key = 0,
callingstationid = '', expiry_time = 'now'::timestamp(0) - '1
second'::interval WHERE nasipaddress = '177.38.112.2' AND pool_key = ''
(1) sqlippool: Executing query: UPDATE radippool SET nasipaddress = '',
pool_key = 0, callingstationid = '', expiry_time = 'now'::timestamp(0) - '1
second'::interval WHERE nasipaddress = '177.38.112.2' AND pool_key = ''
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 1
(1) sqlippool: EXPAND COMMIT
(1) sqlippool: --> COMMIT
(1) sqlippool: Executing query: COMMIT
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 0
(1) sqlippool: EXPAND START TRANSACTION
(1) sqlippool: --> START TRANSACTION
(1) sqlippool: Executing query: START TRANSACTION
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 0
(1) sqlippool: EXPAND SELECT framedipaddress FROM radippool WHERE pool_name
= '%{control:Pool-Name}' AND expiry_time < 'now'::timestamp(0) ORDER BY
RANDOM() LIMIT 1 FOR UPDATE
(1) sqlippool: --> SELECT framedipaddress FROM radippool WHERE pool_name
= 'PoolCisco' AND expiry_time < 'now'::timestamp(0) ORDER BY RANDOM() LIMIT
1 FOR UPDATE
(1) sqlippool: Executing select query: SELECT framedipaddress FROM
radippool WHERE pool_name = 'PoolCisco' AND expiry_time <
'now'::timestamp(0) ORDER BY RANDOM() LIMIT 1 FOR UPDATE
rlm_sql_postgresql: Status: PGRES_TUPLES_OK
rlm_sql_postgresql: query affected rows = 1 , fields = 1
(1) sqlippool: Allocated IP 177.38.121.8
(1) sqlippool: EXPAND UPDATE radippool SET nasipaddress =
'%{NAS-IP-Address}', pool_key = '%{Calling-Station-Id}', callingstationid =
'%{Calling-Station-Id}', username = '%{SQL-User-Name}', expiry_time =
'now'::timestamp(0) + '3600 second'::interval WHERE framedipaddress =
'177.38.121.8'
(1) sqlippool: --> UPDATE radippool SET nasipaddress = '177.38.112.2',
pool_key = '', callingstationid = '', username = 'usuariocisco',
expiry_time = 'now'::timestamp(0) + '3600 second'::interval WHERE
framedipaddress = '177.38.121.8'
(1) sqlippool: Executing query: UPDATE radippool SET nasipaddress =
'177.38.112.2', pool_key = '', callingstationid = '', username =
'usuariocisco', expiry_time = 'now'::timestamp(0) + '3600 second'::interval
WHERE framedipaddress = '177.38.121.8'
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 1
(1) sqlippool: EXPAND COMMIT
(1) sqlippool: --> COMMIT
(1) sqlippool: Executing query: COMMIT
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: query affected rows = 0
rlm_sql (sql): Released connection (4)
(1) sqlippool: EXPAND Allocated IP: %{reply:Framed-IP-Address} from
%{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id}
port %{NAS-Port} user %{User-Name})
(1) sqlippool: --> Allocated IP: 177.38.121.8 from PoolCisco (did cli
port user usuariocisco)
(1) [sqlippool] = ok
(1) policy remove_reply_message_if_eap {
(1) if (&reply:EAP-Message && &reply:Reply-Message) {
(1) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(1) else {
(1) [noop] = noop
(1) } # else = noop
(1) } # policy remove_reply_message_if_eap = noop
(1) } # post-auth = ok
(1) Sent Access-Accept Id 231 from 177.38.112.4:1812 to 177.38.112.2:62270
length 0
(1) Service-Type = Framed-User
(1) Framed-Protocol = PPP
(1) Framed-IP-Address = 177.38.121.8
(1) Finished request
Waking up in 3.4 seconds.
Waking up in 7.5 seconds.
Waking up in 5.9 seconds.
Waking up in 0.9 seconds.
(0) Cleaning up request packet ID 230 with timestamp +0
Waking up in 20.5 seconds.
2
1
Hi Alan,
I blew away all my configs, and running vanilla 3.0.13 from yum install. I
am using out-of-the-box configs, and created users and clients file. I
created certificate files, and I also tested with eapol_test
I can authenticate with windows 10 client with no issues at this point. I
created certificates based on README instructions with new install, and
verified that I can connect with eap_test using ttls-eap-mschapv2 and
others (ttls-pap)...
At this point, I would like to lock down the authentication so that either
the client cert is required, or authorized MAC. I did configure the
authorized mac previously which was working, but stopped working, and I
think the reason it stopped working prior had nothing to do with the MAC
configs, but because the CA/CERTs I created expired. They are not expired
now since I created them with a new EXPIRE date, but what is happening is
that the clients/supplicant I am testing with can authenticate without the
root/client certs installed. I would rather authenticate with
certificates, and not rely on authorized MACs at this point...
Can you point me in the direction of how to configure the radius server to
only authenticate if the client certificate is installed?
Thanks I'm advance...
-Rob
>
> I'm Running 3.0.13 for a while now. I set it up to support cert
> authentication, as well as authorized MACs. I didn't deploy any clients
> using certs, only set up with user/pass and authorized MACs.
It may be good then to disable EAP. Especially if you're not using it.
> Sometime last week, users couldn't authenticate. I see errors in debug
> stated there are 2 auth types, I can see the MAC auth is working, but
users
> are failing to authenticate because of EAP failure. At this point, I want
> to be able to use both MAC / user+pass auth, and if in the future we
decide
> to deploy certs, than allow that too. If we need to disable EAP or certs
> to get this working, that is an option too. Not sure why it stopped
> working out of the blue. The radius server hasn't been touched since the
> initial working config.
If the RADIUS server did't change, then something else did.
> Any ideas?
>
>
> (0) Received Access-Request Id 168 from 10.2.1.53:41523 to 10.2.2.35:1812
> length 218
> (0) User-Name = "rbadani"
> (0) NAS-Identifier = "pakedge"
> (0) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
> (0) NAS-Port-Type = Wireless-802.11
> (0) Service-Type = Framed-User
> (0) NAS-Port = 0
> (0) Calling-Station-Id = "34-F3-9A-86-59-57"
> (0) Connect-Info = "CONNECT 0Mbps 802.11b"
> (0) Acct-Session-Id = "196EB9DAB87DC1A9"
> (0) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
> (0) WLAN-Pairwise-Cipher = 1027076
> (0) WLAN-Group-Cipher = 1027076
> (0) WLAN-AKM-Suite = 1027073
> (0) Framed-MTU = 1400
> (0) EAP-Message = 0x02e1000c0172626164616e69
Is this user supposed to be doing EAP? If so, fix your configuration to
allow EAP and MAC auth.
If not... talk to the user and ask him what he thinks he's doing.
> (0) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
> (0) [authorized_macs] = ok
> (0) if (!ok) {
> (0) if (!ok) -> FALSE
> (0) else {
> (0) update control {
> (0) Auth-Type := Accept
You can't do this for EAP.
Your "allow MAC auth" rule has to check for EAP, too. i.e. do:
authorized_macs
if (!ok) {
reject # reject unauth MACs, even if they do EAP
}
if (!EAP-Message) {
update control {
Auth-Type := Accept
}
}
> (0) Found Auth-Type = Accept
> (0) Found Auth-Type = eap
> (0) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
Exactly. The default configuration doesn't have this error. So it's
something you added locally.
> (2) eap: Peer sent packet with method EAP PEAP (25)
Is the user supposed to be doing PEAP?
Alan DeKok.
3
2
Hello,
please could and one help me when freeradius reject an accounting request (
Start, Stop, Interim-Update) how to send Response Accounting Reject Message
to client Side because default configuration freeradius dosen't send
response to Client Side:
} # accounting = reject
(2) Not sending reply to client.
(2) Finished request
Thanks in advance
Best Regards
Mettichi Bassem
2
1
I'm not quite sure how to enable Acct-Interim-Interval in free radius.
/etc/freeradius/sites-enabled/default
post-auth {
update reply {
Acct-Interim-Interval = 60
}
I still can't see the accounting data (Octlets) to be updated after 60
seconds.
Only after I disconnect the connection, I can see them updated.
Before my NAS is accused of not supporting it, I can see it does:
https://wiki.strongswan.org/projects/strongswan/wiki/Strongswanconf
Interval in seconds for interim RADIUS accounting updates, if not specified
> by the RADIUS server in the Access-Accept message.
What am I missing, please?
2
1
Hi,
I have a customer running a Fortigate SSL-VPN solution authenticating users via RADIUS (PAP) towards a Gemalto SAS OTP solution. The user just use the Gemalto MobilePASS app to generate an OTP code and enters that into the password field, which works fine.
However, he now wants to first authenticate the user with username/AD-password via LDAP against their AD, and if successful, the user should be prompted for the OTP code as a second step. This is currently not possible with the Gemalto SAS solution, so Iām therefor trying to deploy a FreeRADIUS (v3.0.13 on CentOS7) server in between and have FR perform the AD auth, return an Access-Challenge and then proxy the second Access-Request with the OTP code to Gemalto RADIUS.
Iāve successfully managed to independently configure FR with the LDAP module to authenticate the username/password against their AD, or configure it as a proxy to send the requests to Gemalto, but I canāt really figure out how to chain these two auth methods together. After I enabled proxying of NULL realm, the first auth request is sent straight on to Gemalto.
Is it even possible with pure configuration, or would I have to patch the two modules to accomplish this? Any hints would be greatly appreciated.
PS: I have no need for authorizing the user AD group belongings etc in FR, this is done in the second step by Gemalto anyway. I just need pure authentication against the AD in step 1.
This is what I got so far:
FreeRADIUS Version 3.0.13
Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/raddb/dictionary
including configuration file /etc/raddb/radiusd.conf
including configuration file /etc/raddb/proxy.conf
including configuration file /etc/raddb/clients.conf
including files in directory /etc/raddb/mods-enabled/
including configuration file /etc/raddb/mods-enabled/always
including configuration file /etc/raddb/mods-enabled/attr_filter
including configuration file /etc/raddb/mods-enabled/cache_eap
including configuration file /etc/raddb/mods-enabled/chap
including configuration file /etc/raddb/mods-enabled/date
including configuration file /etc/raddb/mods-enabled/detail
including configuration file /etc/raddb/mods-enabled/detail.log
including configuration file /etc/raddb/mods-enabled/dhcp
including configuration file /etc/raddb/mods-enabled/digest
including configuration file /etc/raddb/mods-enabled/dynamic_clients
including configuration file /etc/raddb/mods-enabled/eap
including configuration file /etc/raddb/mods-enabled/echo
including configuration file /etc/raddb/mods-enabled/exec
including configuration file /etc/raddb/mods-enabled/expiration
including configuration file /etc/raddb/mods-enabled/expr
including configuration file /etc/raddb/mods-enabled/files
including configuration file /etc/raddb/mods-enabled/linelog
including configuration file /etc/raddb/mods-enabled/logintime
including configuration file /etc/raddb/mods-enabled/mschap
including configuration file /etc/raddb/mods-enabled/ntlm_auth
including configuration file /etc/raddb/mods-enabled/pap
including configuration file /etc/raddb/mods-enabled/passwd
including configuration file /etc/raddb/mods-enabled/preprocess
including configuration file /etc/raddb/mods-enabled/radutmp
including configuration file /etc/raddb/mods-enabled/realm
including configuration file /etc/raddb/mods-enabled/replicate
including configuration file /etc/raddb/mods-enabled/soh
including configuration file /etc/raddb/mods-enabled/sradutmp
including configuration file /etc/raddb/mods-enabled/unix
including configuration file /etc/raddb/mods-enabled/unpack
including configuration file /etc/raddb/mods-enabled/utf8
including configuration file /etc/raddb/mods-enabled/ldap
including files in directory /etc/raddb/policy.d/
including configuration file /etc/raddb/policy.d/accounting
including configuration file /etc/raddb/policy.d/canonicalization
including configuration file /etc/raddb/policy.d/control
including configuration file /etc/raddb/policy.d/cui
including configuration file /etc/raddb/policy.d/debug
including configuration file /etc/raddb/policy.d/dhcp
including configuration file /etc/raddb/policy.d/eap
including configuration file /etc/raddb/policy.d/filter
including configuration file /etc/raddb/policy.d/operator-name
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/default
including configuration file /etc/raddb/sites-enabled/inner-tunnel
main {
security {
user = "radiusd"
group = "radiusd"
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
libdir = "/usr/lib64/freeradius"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = <<< secret >>>
response_window = 20.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 120
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
realm NULL {
authhost = 172.16.8.107:1812
accthost = 172.16.8.107:1813
secret = <<< secret >>>
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
nas_type = "other"
proto = "*"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = LDAP
# Creating Auth-Type = mschap
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_always
# Loading module "reject" from file /etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/raddb/mods-enabled/chap
# Loaded module rlm_date
# Loading module "date" from file /etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
}
# Loaded module rlm_detail
# Loading module "detail" from file /etc/raddb/mods-enabled/detail
detail {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_dhcp
# Loading module "dhcp" from file /etc/raddb/mods-enabled/dhcp
# Loaded module rlm_digest
# Loading module "digest" from file /etc/raddb/mods-enabled/digest
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_eap
# Loading module "eap" from file /etc/raddb/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
}
# Loaded module rlm_exec
# Loading module "echo" from file /etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "exec" from file /etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /etc/raddb/mods-enabled/expiration
# Loaded module rlm_expr
# Loading module "expr" from file /etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüà âæçèéêëîïÓÅùûüaĆæĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆÅĆĆĆÅø"
}
# Loaded module rlm_files
# Loading module "files" from file /etc/raddb/mods-enabled/files
files {
filename = "/etc/raddb/mods-config/files/authorize"
acctusersfile = "/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/raddb/mods-enabled/linelog
linelog {
filename = "/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/etc/raddb/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /etc/raddb/mods-enabled/replicate
# Loaded module rlm_soh
# Loading module "soh" from file /etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/raddb/mods-enabled/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/raddb/mods-enabled/unpack
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/raddb/mods-enabled/utf8
# Loaded module rlm_ldap
# Loading module "ldap" from file /etc/raddb/mods-enabled/ldap
ldap {
server = "10.100.0.10"
identity = "SRV-LDAPS-GEMALTO"
password = <<< secret >>>
sasl {
}
user {
scope = "sub"
access_positive = yes
sasl {
}
}
group {
scope = "sub"
name_attribute = "cn"
cacheable_name = no
cacheable_dn = no
}
client {
scope = "sub"
base_dn = ""
}
profile {
}
options {
ldap_debug = 0
chase_referrals = yes
rebind = yes
net_timeout = 10
res_timeout = 20
srv_timelimit = 20
idle = 60
probes = 3
interval = 30
}
tls {
start_tls = no
}
}
Creating attribute LDAP-Group
instantiate {
}
# Instantiating module "reject" from file /etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /etc/raddb/mods-enabled/always
# Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay" found in filter list for realm "DEFAULT".
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec" found in filter list for realm "DEFAULT".
# Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "detail" from file /etc/raddb/mods-enabled/detail
# Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log
# Instantiating module "eap" from file /etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_leap
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/etc/raddb/certs/server.pem"
certificate_file = "/etc/raddb/certs/server.pem"
ca_file = "/etc/raddb/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/etc/raddb/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "DEFAULT"
cipher_server_preference = no
ecdh_curve = "prime256v1"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration
# Instantiating module "files" from file /etc/raddb/mods-enabled/files
reading pairlist file /etc/raddb/mods-config/files/authorize
reading pairlist file /etc/raddb/mods-config/files/accounting
reading pairlist file /etc/raddb/mods-config/files/pre-proxy
# Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog
# Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime
# Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "pap" from file /etc/raddb/mods-enabled/pap
# Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess
reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /etc/raddb/mods-config/preprocess/hints
# Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm
# Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap
rlm_ldap: libldap vendor: OpenLDAP, version: 20444
rlm_ldap (ldap): Couldn't find configuration for accounting, will return NOOP for calls from this section
rlm_ldap (ldap): Couldn't find configuration for post-auth, will return NOOP for calls from this section
rlm_ldap (ldap): Initialising connection pool
pool {
start = 5
min = 5
max = 10
spare = 3
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 1
spread = no
}
rlm_ldap (ldap): Opening additional connection (0), 1 of 10 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.100.0.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (1), 1 of 9 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.100.0.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (2), 1 of 8 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.100.0.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (3), 1 of 7 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.100.0.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (4), 1 of 6 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.100.0.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
} # server
server default { # from file /etc/raddb/sites-enabled/default
# Loading authenticate {...}
# Loading authorize {...}
Ignoring "sql" (see raddb/mods-available/README.rst)
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server default
server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:330
} # server inner-tunnel
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 53500
Ready to process requests
(0) Received Access-Request Id 161 from 127.0.0.1:53117 to 127.0.0.1:1812 length 85
(0) User-Name = "mathias.sundman"
(0) User-Password = "myadpassword"
(0) NAS-IP-Address = 172.16.8.111
(0) NAS-Port = 0
(0) Message-Authenticator = 0xba542c1bc308cf31d91ebb1cd7843f1d
(0) # Executing section authorize from file /etc/raddb/sites-enabled/default
(0) authorize {
(0) policy filter_username {
(0) if (&User-Name) {
(0) if (&User-Name) -> TRUE
(0) if (&User-Name) {
(0) if (&User-Name =~ / /) {
(0) if (&User-Name =~ / /) -> FALSE
(0) if (&User-Name =~ /@[^@]*@/ ) {
(0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(0) if (&User-Name =~ /\.\./ ) {
(0) if (&User-Name =~ /\.\./ ) -> FALSE
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(0) if (&User-Name =~ /\.$/) {
(0) if (&User-Name =~ /\.$/) -> FALSE
(0) if (&User-Name =~ /(a)\./) {
(0) if (&User-Name =~ /(a)\./) -> FALSE
(0) } # if (&User-Name) = notfound
(0) } # policy filter_username = notfound
(0) [preprocess] = ok
(0) [chap] = noop
(0) [mschap] = noop
(0) [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "mathias.sundman", looking up realm NULL
(0) suffix: Found realm "NULL"
(0) suffix: Adding Stripped-User-Name = "mathias.sundman"
(0) suffix: Adding Realm = "NULL"
(0) suffix: Proxying request from user mathias.sundman to realm NULL
(0) suffix: Preparing to proxy authentication request to realm "NULL"
(0) [suffix] = updated
(0) eap: No EAP-Message, not doing EAP
(0) [eap] = noop
(0) files: users: Matched entry DEFAULT at line 67
(0) [files] = ok
rlm_ldap (ldap): Reserved connection (0)
(0) ldap: EXPAND (samaccountname=%{%{Stripped-User-Name}:-%{User-Name}})
(0) ldap: --> (samaccountname=mathias.sundman)
(0) ldap: Performing search in "dc=int,dc=it-total,dc=local" with filter "(samaccountname=mathias.sundman)", scope "sub"
(0) ldap: Waiting for search result...
rlm_ldap (ldap): Rebinding to URL ldap://DomainDnsZones.int.it-total.local/DC=DomainDnsZones,DC=int,DC=it-total,DC=local
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
(0) ldap: User object found at DN "CN=Mathias Sundman,OU=Users,OU=IT-Total,DC=int,DC=it-total,DC=local"
rlm_ldap (ldap): Deleting connection (0)
Need 1 more connections to reach min connections (5)
rlm_ldap (ldap): Opening additional connection (5), 1 of 6 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.100.0.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
(0) [ldap] = ok
(0) [expiration] = noop
(0) [logintime] = noop
(0) [pap] = noop
(0) } # authorize = updated
(0) Starting proxy to home server 172.16.8.107 port 1812
(0) Proxying request to home server 172.16.8.107 port 1812 timeout 14.000000
(0) Sent Access-Request Id 150 from 0.0.0.0:53500 to 172.16.8.107:1812 length 96
(0) User-Name = "mathias.sundman"
(0) User-Password = "myadpassword"
(0) NAS-IP-Address = 172.16.8.111
(0) NAS-Port = 0
(0) Message-Authenticator = 0xba542c1bc308cf31d91ebb1cd7843f1d
(0) Event-Timestamp = "Dec 27 2017 15:59:56 CET"
(0) Proxy-State = 0x313631
Waking up in 0.3 seconds.
(0) Expecting proxy response no later than 13.678859 seconds from now
Waking up in 13.6 seconds.
(0) Clearing existing &reply: attributes
(0) Received Access-Reject Id 150 from 172.16.8.107:1812 to 172.16.8.111:53500 length 25
(0) Proxy-State = 0x313631
(0) # Executing section post-proxy from file /etc/raddb/sites-enabled/default
(0) post-proxy {
(0) eap: No pre-existing handler found
(0) [eap] = noop
(0) } # post-proxy = noop
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0) Post-Auth-Type REJECT {
(0) attr_filter.access_reject: EXPAND %{User-Name}
(0) attr_filter.access_reject: --> mathias.sundman
(0) attr_filter.access_reject: Matched entry DEFAULT at line 11
(0) [attr_filter.access_reject] = updated
(0) [eap] = noop
(0) policy remove_reply_message_if_eap {
(0) if (&reply:EAP-Message && &reply:Reply-Message) {
(0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(0) else {
(0) [noop] = noop
(0) } # else = noop
(0) } # policy remove_reply_message_if_eap = noop
(0) } # Post-Auth-Type REJECT = updated
(0) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(0) Sending delayed response
(0) Sent Access-Reject Id 161 from 127.0.0.1:1812 to 127.0.0.1:53117 length 20
Waking up in 3.9 seconds.
(0) Cleaning up request packet ID 161 with timestamp +40
Ready to process requests
2
8
Hello
I have a question about AD authentication that I can't seem to find an answer to in the documentation. The question simply boils down to this: who do I specify a configuration when dealing with domain.com and subdomain.domain.com?
We currently use 802.1x on all network ports and have three login scenarios:
1. 802.1x using PEAP-MSCHAPv2 (domain computers)
2. 802.1x using MD5 (yes I know this is older but that is what the devices support)
3. MAC address authentication (printers, cameras, etc)
Right now NPS is the first RADIUS server inline and handles all the PEAP requests for machine authentication if the traffic does not conform a specific pattern - if it does conform the traffic is forwarded to freeradius for scenarios 2 & 3. The end goal is to get down to a single server instead of a relayed configuration. What is required is the ability to support both domain.com and subdomain.domain.com or domain A and domain B and computers could be a member from either domain. I also need to find a way to not have these users defined in freeradius as most of the guides seem to point to but instead validate the return results based on the group membership (Domain Computers) from either group, each domain gets a unique vlan assignment from NPS based on this relationship.
I pulled this from FreeRADIUS guides:
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
}
Which leads to the questions about multi domain configurations which I can't find mentioned anywhere in the wiki's, faqs or internet in general which leads me to think that this is one of three cases:
1. This configuration is uncommon
2. This configuration is not possible
3. I am just being dense in the head (I prefer to believe this is not the scenario).
Using the NTLM_AUTH test tool I am able to specify the domain and get a successful auth as there is a trust between these parent and child domains but because everything is based on the samaccountname the domain has to be specified with the tool. I also understand that calling the ntlm_auth program may not be the best way to go and that a library exists but I believe the base question(s) are still relevant in both cases. Any guidance would greatly be appreciated even if it is stick what you got.
Thanks
Jeremy
4
20
Hello,
We are upgrading FreeRADIUS from 2.x to 3.x, during our work around with
FreeRADIUS-2.x we have created modules in c/c++. Now we need to update
these modules as per FR-3.x standards but modules created in c++ code do
not get compiled (with below errors) even after re-structuring the module
as FR3.x standards.
/usr/include/freeradius/libradius.h:190:25: error: '<anonymous>' declared
as a 'virtual' field
unsigned int virtual : 1; //!< for dynamic expansion
^
/usr/include/freeradius/libradius.h:612:64: error: expected ',' or '...'
before 'new'
VALUE_PAIR *fr_cursor_replace(vp_cursor_t *cursor, VALUE_PAIR *new);
^
In file included from rlm_attrefvnf_auth_status_monitor.cpp:3:0:
/usr/include/freeradius/modules.h:67:19: error: expected unqualified-id
before 'typename'
char const *typename; //!< Type name e.g. "Auth-Type".
^
/usr/include/freeradius/modules.h:67:18: error: expected ';' at end of
member declaration
char const *typename; //!< Type name e.g. "Auth-Type".
^
/usr/include/freeradius/modules.h:67:27: error: expected
nested-name-specifier before ';' token
char const *typename; //!< Type name e.g. "Auth-Type".
Is it high necessary that FR-3.x modules are to be written only in c-code ?
Is there any way to overcome this issue ?
Thanks..
3
4
Hi Users.
I'm Running 3.0.13 for a while now. I set it up to support cert
authentication, as well as authorized MACs. I didn't deploy any clients
using certs, only set up with user/pass and authorized MACs.
Sometime last week, users couldn't authenticate. I see errors in debug
stated there are 2 auth types, I can see the MAC auth is working, but users
are failing to authenticate because of EAP failure. At this point, I want
to be able to use both MAC / user+pass auth, and if in the future we decide
to deploy certs, than allow that too. If we need to disable EAP or certs
to get this working, that is an option too. Not sure why it stopped
working out of the blue. The radius server hasn't been touched since the
initial working config.
Any ideas?
(0) Received Access-Request Id 168 from 10.2.1.53:41523 to 10.2.2.35:1812
length 218
(0) User-Name = "rbadani"
(0) NAS-Identifier = "pakedge"
(0) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(0) NAS-Port-Type = Wireless-802.11
(0) Service-Type = Framed-User
(0) NAS-Port = 0
(0) Calling-Station-Id = "34-F3-9A-86-59-57"
(0) Connect-Info = "CONNECT 0Mbps 802.11b"
(0) Acct-Session-Id = "196EB9DAB87DC1A9"
(0) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(0) WLAN-Pairwise-Cipher = 1027076
(0) WLAN-Group-Cipher = 1027076
(0) WLAN-AKM-Suite = 1027073
(0) Framed-MTU = 1400
(0) EAP-Message = 0x02e1000c0172626164616e69
(0) Message-Authenticator = 0xa0ce8c9f4fc59786614b51de2a9d2ec5
(0) # Executing section authorize from file /etc/raddb/sites-enabled/default
(0) authorize {
(0) policy filter_username {
(0) if (&User-Name) {
(0) if (&User-Name) -> TRUE
(0) if (&User-Name) {
(0) if (&User-Name =~ / /) {
(0) if (&User-Name =~ / /) -> FALSE
(0) if (&User-Name =~ /@[^@]*@/ ) {
(0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(0) if (&User-Name =~ /\.\./ ) {
(0) if (&User-Name =~ /\.\./ ) -> FALSE
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(0) if (&User-Name =~ /\.$/) {
(0) if (&User-Name =~ /\.$/) -> FALSE
(0) if (&User-Name =~ /(a)\./) {
(0) if (&User-Name =~ /(a)\./) -> FALSE
(0) } # if (&User-Name) = notfound
(0) } # policy filter_username = notfound
(0) [preprocess] = ok
(0) policy rewrite_calling_station_id {
(0) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(0) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(0) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(0) update request {
(0) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(0) --> 34-F3-9A-86-59-57
(0) &Calling-Station-Id := 34-F3-9A-86-59-57
(0) } # update request = noop
(0) [updated] = updated
(0) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(0) ... skipping else: Preceding "if" was taken
(0) } # policy rewrite_calling_station_id = updated
(0) authorized_macs: EXPAND %{Calling-Station-ID}
(0) authorized_macs: --> 34-F3-9A-86-59-57
(0) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(0) [authorized_macs] = ok
(0) if (!ok) {
(0) if (!ok) -> FALSE
(0) else {
(0) update control {
(0) Auth-Type := Accept
(0) } # update control = noop
(0) } # else = noop
(0) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(0) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(0) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(0) auth_log: EXPAND %t
(0) auth_log: --> Wed Dec 27 16:56:02 2017
(0) [auth_log] = ok
(0) [chap] = noop
(0) [mschap] = noop
(0) [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(0) suffix: No such realm "NULL"
(0) [suffix] = noop
(0) eap: Peer sent EAP Response (code 2) ID 225 length 12
(0) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the
rest of authorize
(0) [eap] = ok
(0) } # authorize = ok
(0) Found Auth-Type = Accept
(0) Found Auth-Type = eap
(0) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0) authenticate {
(0) eap: Peer sent packet with method EAP Identity (1)
(0) eap: Calling submodule eap_md5 to process data
(0) eap_md5: Issuing MD5 Challenge
(0) eap: Sending EAP Request (code 1) ID 226 length 22
(0) eap: EAP session adding &reply:State = 0x6b29e7526bcbe320
(0) [eap] = handled
(0) } # authenticate = handled
(0) Using Post-Auth-Type Challenge
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0) Challenge { ... } # empty sub-section is ignored
(0) Sent Access-Challenge Id 168 from 10.2.2.35:1812 to 10.2.1.53:41523
length 0
(0) EAP-Message = 0x01e200160410f2c51c0a8574f54c59f1fb4f5448daec
(0) Message-Authenticator = 0x00000000000000000000000000000000
(0) State = 0x6b29e7526bcbe32030426126b755182c
(0) Finished request
Waking up in 4.9 seconds.
(1) Received Access-Request Id 169 from 10.2.1.53:41523 to 10.2.2.35:1812
length 230
(1) User-Name = "rbadani"
(1) NAS-Identifier = "pakedge"
(1) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(1) NAS-Port-Type = Wireless-802.11
(1) Service-Type = Framed-User
(1) NAS-Port = 0
(1) Calling-Station-Id = "34-F3-9A-86-59-57"
(1) Connect-Info = "CONNECT 0Mbps 802.11b"
(1) Acct-Session-Id = "196EB9DAB87DC1A9"
(1) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(1) WLAN-Pairwise-Cipher = 1027076
(1) WLAN-Group-Cipher = 1027076
(1) WLAN-AKM-Suite = 1027073
(1) Framed-MTU = 1400
(1) EAP-Message = 0x02e200060319
(1) State = 0x6b29e7526bcbe32030426126b755182c
(1) Message-Authenticator = 0x832b06e0af58a82af454cf2ffc708452
(1) session-state: No cached attributes
(1) # Executing section authorize from file /etc/raddb/sites-enabled/default
(1) authorize {
(1) policy filter_username {
(1) if (&User-Name) {
(1) if (&User-Name) -> TRUE
(1) if (&User-Name) {
(1) if (&User-Name =~ / /) {
(1) if (&User-Name =~ / /) -> FALSE
(1) if (&User-Name =~ /@[^@]*@/ ) {
(1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(1) if (&User-Name =~ /\.\./ ) {
(1) if (&User-Name =~ /\.\./ ) -> FALSE
(1) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(1) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(1) if (&User-Name =~ /\.$/) {
(1) if (&User-Name =~ /\.$/) -> FALSE
(1) if (&User-Name =~ /(a)\./) {
(1) if (&User-Name =~ /(a)\./) -> FALSE
(1) } # if (&User-Name) = notfound
(1) } # policy filter_username = notfound
(1) [preprocess] = ok
(1) policy rewrite_calling_station_id {
(1) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(1) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(1) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(1) update request {
(1) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(1) --> 34-F3-9A-86-59-57
(1) &Calling-Station-Id := 34-F3-9A-86-59-57
(1) } # update request = noop
(1) [updated] = updated
(1) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(1) ... skipping else: Preceding "if" was taken
(1) } # policy rewrite_calling_station_id = updated
(1) authorized_macs: EXPAND %{Calling-Station-ID}
(1) authorized_macs: --> 34-F3-9A-86-59-57
(1) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(1) [authorized_macs] = ok
(1) if (!ok) {
(1) if (!ok) -> FALSE
(1) else {
(1) update control {
(1) Auth-Type := Accept
(1) } # update control = noop
(1) } # else = noop
(1) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(1) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(1) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(1) auth_log: EXPAND %t
(1) auth_log: --> Wed Dec 27 16:56:02 2017
(1) [auth_log] = ok
(1) [chap] = noop
(1) [mschap] = noop
(1) [digest] = noop
(1) suffix: Checking for suffix after "@"
(1) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(1) suffix: No such realm "NULL"
(1) [suffix] = noop
(1) eap: Peer sent EAP Response (code 2) ID 226 length 6
(1) eap: No EAP Start, assuming it's an on-going EAP conversation
(1) [eap] = updated
(1) files: users: Matched entry rbadani at line 8
(1) [files] = ok
(1) [expiration] = noop
(1) [logintime] = noop
(1) pap: WARNING: Auth-Type already set. Not setting to PAP
(1) [pap] = noop
(1) } # authorize = updated
(1) Found Auth-Type = Accept
(1) Found Auth-Type = eap
(1) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(1) # Executing group from file /etc/raddb/sites-enabled/default
(1) authenticate {
(1) eap: Expiring EAP session with state 0x6b29e7526bcbe320
(1) eap: Finished EAP session with state 0x6b29e7526bcbe320
(1) eap: Previous EAP request found for state 0x6b29e7526bcbe320, released
from the list
(1) eap: Peer sent packet with method EAP NAK (3)
(1) eap: Found mutually acceptable type PEAP (25)
(1) eap: Calling submodule eap_peap to process data
(1) eap_peap: Initiating new EAP-TLS session
(1) eap_peap: [eaptls start] = request
(1) eap: Sending EAP Request (code 1) ID 227 length 6
(1) eap: EAP session adding &reply:State = 0x6b29e7526acafe20
(1) [eap] = handled
(1) } # authenticate = handled
(1) Using Post-Auth-Type Challenge
(1) # Executing group from file /etc/raddb/sites-enabled/default
(1) Challenge { ... } # empty sub-section is ignored
(1) Sent Access-Challenge Id 169 from 10.2.2.35:1812 to 10.2.1.53:41523
length 0
(1) EAP-Message = 0x01e300061920
(1) Message-Authenticator = 0x00000000000000000000000000000000
(1) State = 0x6b29e7526acafe2030426126b755182c
(1) Finished request
Waking up in 4.9 seconds.
(2) Received Access-Request Id 170 from 10.2.1.53:41523 to 10.2.2.35:1812
length 394
(2) User-Name = "rbadani"
(2) NAS-Identifier = "pakedge"
(2) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(2) NAS-Port-Type = Wireless-802.11
(2) Service-Type = Framed-User
(2) NAS-Port = 0
(2) Calling-Station-Id = "34-F3-9A-86-59-57"
(2) Connect-Info = "CONNECT 0Mbps 802.11b"
(2) Acct-Session-Id = "196EB9DAB87DC1A9"
(2) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(2) WLAN-Pairwise-Cipher = 1027076
(2) WLAN-Group-Cipher = 1027076
(2) WLAN-AKM-Suite = 1027073
(2) Framed-MTU = 1400
(2) EAP-Message =
0x02e300aa1980000000a0160303009b0100009703035a444122e1641f29196378fe1c9196ff77cac7424e30263c29b46a54f4bc39a500002ec02cc02bc030c02f009f009ec024c023c028c027c00ac009c014c013009d009c003d003c0035002f000a0005000401000040000500050100000000000a0008
(2) State = 0x6b29e7526acafe2030426126b755182c
(2) Message-Authenticator = 0xe0f5b4a26689126da9c07570236cee15
(2) session-state: No cached attributes
(2) # Executing section authorize from file /etc/raddb/sites-enabled/default
(2) authorize {
(2) policy filter_username {
(2) if (&User-Name) {
(2) if (&User-Name) -> TRUE
(2) if (&User-Name) {
(2) if (&User-Name =~ / /) {
(2) if (&User-Name =~ / /) -> FALSE
(2) if (&User-Name =~ /@[^@]*@/ ) {
(2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(2) if (&User-Name =~ /\.\./ ) {
(2) if (&User-Name =~ /\.\./ ) -> FALSE
(2) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(2) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(2) if (&User-Name =~ /\.$/) {
(2) if (&User-Name =~ /\.$/) -> FALSE
(2) if (&User-Name =~ /(a)\./) {
(2) if (&User-Name =~ /(a)\./) -> FALSE
(2) } # if (&User-Name) = notfound
(2) } # policy filter_username = notfound
(2) [preprocess] = ok
(2) policy rewrite_calling_station_id {
(2) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(2) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(2) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(2) update request {
(2) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(2) --> 34-F3-9A-86-59-57
(2) &Calling-Station-Id := 34-F3-9A-86-59-57
(2) } # update request = noop
(2) [updated] = updated
(2) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(2) ... skipping else: Preceding "if" was taken
(2) } # policy rewrite_calling_station_id = updated
(2) authorized_macs: EXPAND %{Calling-Station-ID}
(2) authorized_macs: --> 34-F3-9A-86-59-57
(2) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(2) [authorized_macs] = ok
(2) if (!ok) {
(2) if (!ok) -> FALSE
(2) else {
(2) update control {
(2) Auth-Type := Accept
(2) } # update control = noop
(2) } # else = noop
(2) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(2) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(2) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(2) auth_log: EXPAND %t
(2) auth_log: --> Wed Dec 27 16:56:02 2017
(2) [auth_log] = ok
(2) [chap] = noop
(2) [mschap] = noop
(2) [digest] = noop
(2) suffix: Checking for suffix after "@"
(2) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(2) suffix: No such realm "NULL"
(2) [suffix] = noop
(2) eap: Peer sent EAP Response (code 2) ID 227 length 170
(2) eap: Continuing tunnel setup
(2) [eap] = ok
(2) } # authorize = ok
(2) Found Auth-Type = Accept
(2) Found Auth-Type = eap
(2) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(2) # Executing group from file /etc/raddb/sites-enabled/default
(2) authenticate {
(2) eap: Expiring EAP session with state 0x6b29e7526acafe20
(2) eap: Finished EAP session with state 0x6b29e7526acafe20
(2) eap: Previous EAP request found for state 0x6b29e7526acafe20, released
from the list
(2) eap: Peer sent packet with method EAP PEAP (25)
(2) eap: Calling submodule eap_peap to process data
(2) eap_peap: Continuing EAP-TLS
(2) eap_peap: Peer indicated complete TLS record size will be 160 bytes
(2) eap_peap: Got complete TLS record (160 bytes)
(2) eap_peap: [eaptls verify] = length included
(2) eap_peap: (other): before/accept initialization
(2) eap_peap: TLS_accept: before/accept initialization
(2) eap_peap: <<< recv TLS 1.2 [length 009b]
(2) eap_peap: TLS_accept: SSLv3 read client hello A
(2) eap_peap: >>> send TLS 1.2 [length 0039]
(2) eap_peap: TLS_accept: SSLv3 write server hello A
(2) eap_peap: >>> send TLS 1.2 [length 0867]
(2) eap_peap: TLS_accept: SSLv3 write certificate A
(2) eap_peap: >>> send TLS 1.2 [length 014d]
(2) eap_peap: TLS_accept: SSLv3 write key exchange A
(2) eap_peap: >>> send TLS 1.2 [length 0004]
(2) eap_peap: TLS_accept: SSLv3 write server done A
(2) eap_peap: TLS_accept: SSLv3 flush data
(2) eap_peap: TLS_accept: SSLv3 read client certificate A
(2) eap_peap: TLS_accept: Need to read more data: SSLv3 read client key
exchange A
(2) eap_peap: TLS_accept: Need to read more data: SSLv3 read client key
exchange A
(2) eap_peap: In SSL Handshake Phase
(2) eap_peap: In SSL Accept mode
(2) eap_peap: [eaptls process] = handled
(2) eap: Sending EAP Request (code 1) ID 228 length 1004
(2) eap: EAP session adding &reply:State = 0x6b29e75269cdfe20
(2) [eap] = handled
(2) } # authenticate = handled
(2) Using Post-Auth-Type Challenge
(2) # Executing group from file /etc/raddb/sites-enabled/default
(2) Challenge { ... } # empty sub-section is ignored
(2) Sent Access-Challenge Id 170 from 10.2.2.35:1812 to 10.2.1.53:41523
length 0
(2) EAP-Message =
0x01e403ec19c000000a0516030300390200003503036ebcda08da00855d6c3903df56f6204584a3ed5ce1f6ec53737cfbbcc0aed45300c03000000dff01000100000b00040300010216030308670b0008630008600003b8308203b43082029ca003020102020103300d06092a864886f70d01010b050030
(2) Message-Authenticator = 0x00000000000000000000000000000000
(2) State = 0x6b29e75269cdfe2030426126b755182c
(2) Finished request
Waking up in 4.9 seconds.
(3) Received Access-Request Id 171 from 10.2.1.53:41523 to 10.2.2.35:1812
length 230
(3) User-Name = "rbadani"
(3) NAS-Identifier = "pakedge"
(3) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(3) NAS-Port-Type = Wireless-802.11
(3) Service-Type = Framed-User
(3) NAS-Port = 0
(3) Calling-Station-Id = "34-F3-9A-86-59-57"
(3) Connect-Info = "CONNECT 0Mbps 802.11b"
(3) Acct-Session-Id = "196EB9DAB87DC1A9"
(3) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(3) WLAN-Pairwise-Cipher = 1027076
(3) WLAN-Group-Cipher = 1027076
(3) WLAN-AKM-Suite = 1027073
(3) Framed-MTU = 1400
(3) EAP-Message = 0x02e400061900
(3) State = 0x6b29e75269cdfe2030426126b755182c
(3) Message-Authenticator = 0x32ce0d06029a65d0b7bde17bbedd6a2d
(3) session-state: No cached attributes
(3) # Executing section authorize from file /etc/raddb/sites-enabled/default
(3) authorize {
(3) policy filter_username {
(3) if (&User-Name) {
(3) if (&User-Name) -> TRUE
(3) if (&User-Name) {
(3) if (&User-Name =~ / /) {
(3) if (&User-Name =~ / /) -> FALSE
(3) if (&User-Name =~ /@[^@]*@/ ) {
(3) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(3) if (&User-Name =~ /\.\./ ) {
(3) if (&User-Name =~ /\.\./ ) -> FALSE
(3) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(3) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(3) if (&User-Name =~ /\.$/) {
(3) if (&User-Name =~ /\.$/) -> FALSE
(3) if (&User-Name =~ /(a)\./) {
(3) if (&User-Name =~ /(a)\./) -> FALSE
(3) } # if (&User-Name) = notfound
(3) } # policy filter_username = notfound
(3) [preprocess] = ok
(3) policy rewrite_calling_station_id {
(3) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(3) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(3) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(3) update request {
(3) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(3) --> 34-F3-9A-86-59-57
(3) &Calling-Station-Id := 34-F3-9A-86-59-57
(3) } # update request = noop
(3) [updated] = updated
(3) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(3) ... skipping else: Preceding "if" was taken
(3) } # policy rewrite_calling_station_id = updated
(3) authorized_macs: EXPAND %{Calling-Station-ID}
(3) authorized_macs: --> 34-F3-9A-86-59-57
(3) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(3) [authorized_macs] = ok
(3) if (!ok) {
(3) if (!ok) -> FALSE
(3) else {
(3) update control {
(3) Auth-Type := Accept
(3) } # update control = noop
(3) } # else = noop
(3) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(3) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(3) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(3) auth_log: EXPAND %t
(3) auth_log: --> Wed Dec 27 16:56:02 2017
(3) [auth_log] = ok
(3) [chap] = noop
(3) [mschap] = noop
(3) [digest] = noop
(3) suffix: Checking for suffix after "@"
(3) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(3) suffix: No such realm "NULL"
(3) [suffix] = noop
(3) eap: Peer sent EAP Response (code 2) ID 228 length 6
(3) eap: Continuing tunnel setup
(3) [eap] = ok
(3) } # authorize = ok
(3) Found Auth-Type = Accept
(3) Found Auth-Type = eap
(3) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(3) # Executing group from file /etc/raddb/sites-enabled/default
(3) authenticate {
(3) eap: Expiring EAP session with state 0x6b29e75269cdfe20
(3) eap: Finished EAP session with state 0x6b29e75269cdfe20
(3) eap: Previous EAP request found for state 0x6b29e75269cdfe20, released
from the list
(3) eap: Peer sent packet with method EAP PEAP (25)
(3) eap: Calling submodule eap_peap to process data
(3) eap_peap: Continuing EAP-TLS
(3) eap_peap: Peer ACKed our handshake fragment
(3) eap_peap: [eaptls verify] = request
(3) eap_peap: [eaptls process] = handled
(3) eap: Sending EAP Request (code 1) ID 229 length 1000
(3) eap: EAP session adding &reply:State = 0x6b29e75268ccfe20
(3) [eap] = handled
(3) } # authenticate = handled
(3) Using Post-Auth-Type Challenge
(3) # Executing group from file /etc/raddb/sites-enabled/default
(3) Challenge { ... } # empty sub-section is ignored
(3) Sent Access-Challenge Id 171 from 10.2.2.35:1812 to 10.2.1.53:41523
length 0
(3) EAP-Message =
0x01e503e8194071011954c4fbd3ea40e221db1dc5d77725bc6912e81c7f2ade46e59bab56d3bd12d1210004a23082049e30820386a003020102020900fb9eca29e490e9c3300d06092a864886f70d01010b0500307d310b3009060355040613025553310b300906035504080c024341310b300906035504
(3) Message-Authenticator = 0x00000000000000000000000000000000
(3) State = 0x6b29e75268ccfe2030426126b755182c
(3) Finished request
Waking up in 4.9 seconds.
(4) Received Access-Request Id 172 from 10.2.1.53:41523 to 10.2.2.35:1812
length 230
(4) User-Name = "rbadani"
(4) NAS-Identifier = "pakedge"
(4) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(4) NAS-Port-Type = Wireless-802.11
(4) Service-Type = Framed-User
(4) NAS-Port = 0
(4) Calling-Station-Id = "34-F3-9A-86-59-57"
(4) Connect-Info = "CONNECT 0Mbps 802.11b"
(4) Acct-Session-Id = "196EB9DAB87DC1A9"
(4) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(4) WLAN-Pairwise-Cipher = 1027076
(4) WLAN-Group-Cipher = 1027076
(4) WLAN-AKM-Suite = 1027073
(4) Framed-MTU = 1400
(4) EAP-Message = 0x02e500061900
(4) State = 0x6b29e75268ccfe2030426126b755182c
(4) Message-Authenticator = 0x7739a6384734a45ec44ace0b45406285
(4) session-state: No cached attributes
(4) # Executing section authorize from file /etc/raddb/sites-enabled/default
(4) authorize {
(4) policy filter_username {
(4) if (&User-Name) {
(4) if (&User-Name) -> TRUE
(4) if (&User-Name) {
(4) if (&User-Name =~ / /) {
(4) if (&User-Name =~ / /) -> FALSE
(4) if (&User-Name =~ /@[^@]*@/ ) {
(4) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(4) if (&User-Name =~ /\.\./ ) {
(4) if (&User-Name =~ /\.\./ ) -> FALSE
(4) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(4) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(4) if (&User-Name =~ /\.$/) {
(4) if (&User-Name =~ /\.$/) -> FALSE
(4) if (&User-Name =~ /(a)\./) {
(4) if (&User-Name =~ /(a)\./) -> FALSE
(4) } # if (&User-Name) = notfound
(4) } # policy filter_username = notfound
(4) [preprocess] = ok
(4) policy rewrite_calling_station_id {
(4) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(4) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(4) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(4) update request {
(4) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(4) --> 34-F3-9A-86-59-57
(4) &Calling-Station-Id := 34-F3-9A-86-59-57
(4) } # update request = noop
(4) [updated] = updated
(4) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(4) ... skipping else: Preceding "if" was taken
(4) } # policy rewrite_calling_station_id = updated
(4) authorized_macs: EXPAND %{Calling-Station-ID}
(4) authorized_macs: --> 34-F3-9A-86-59-57
(4) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(4) [authorized_macs] = ok
(4) if (!ok) {
(4) if (!ok) -> FALSE
(4) else {
(4) update control {
(4) Auth-Type := Accept
(4) } # update control = noop
(4) } # else = noop
(4) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(4) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(4) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(4) auth_log: EXPAND %t
(4) auth_log: --> Wed Dec 27 16:56:02 2017
(4) [auth_log] = ok
(4) [chap] = noop
(4) [mschap] = noop
(4) [digest] = noop
(4) suffix: Checking for suffix after "@"
(4) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(4) suffix: No such realm "NULL"
(4) [suffix] = noop
(4) eap: Peer sent EAP Response (code 2) ID 229 length 6
(4) eap: Continuing tunnel setup
(4) [eap] = ok
(4) } # authorize = ok
(4) Found Auth-Type = Accept
(4) Found Auth-Type = eap
(4) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(4) # Executing group from file /etc/raddb/sites-enabled/default
(4) authenticate {
(4) eap: Expiring EAP session with state 0x6b29e75268ccfe20
(4) eap: Finished EAP session with state 0x6b29e75268ccfe20
(4) eap: Previous EAP request found for state 0x6b29e75268ccfe20, released
from the list
(4) eap: Peer sent packet with method EAP PEAP (25)
(4) eap: Calling submodule eap_peap to process data
(4) eap_peap: Continuing EAP-TLS
(4) eap_peap: Peer ACKed our handshake fragment
(4) eap_peap: [eaptls verify] = request
(4) eap_peap: [eaptls process] = handled
(4) eap: Sending EAP Request (code 1) ID 230 length 583
(4) eap: EAP session adding &reply:State = 0x6b29e7526fcffe20
(4) [eap] = handled
(4) } # authenticate = handled
(4) Using Post-Auth-Type Challenge
(4) # Executing group from file /etc/raddb/sites-enabled/default
(4) Challenge { ... } # empty sub-section is ignored
(4) Sent Access-Challenge Id 172 from 10.2.2.35:1812 to 10.2.1.53:41523
length 0
(4) EAP-Message =
0x01e60247190073f384abcce0dc6bd99d41c7308a2ec286779db1ac2b4a9fa101913c9eff54715a9f99e2d2e6d6216d873cbac8894daa5fb56c68bf9bac69bbe516b2b8b0e0f187ffaca6abb8a1065d90af0d81b75ed06b75ef6c624c8e41b5f461944111a9bdbe4004178fdf81b1220f11bd3db9bc26a9
(4) Message-Authenticator = 0x00000000000000000000000000000000
(4) State = 0x6b29e7526fcffe2030426126b755182c
(4) Finished request
Waking up in 4.9 seconds.
(5) Received Access-Request Id 173 from 10.2.1.53:41523 to 10.2.2.35:1812
length 360
(5) User-Name = "rbadani"
(5) NAS-Identifier = "pakedge"
(5) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(5) NAS-Port-Type = Wireless-802.11
(5) Service-Type = Framed-User
(5) NAS-Port = 0
(5) Calling-Station-Id = "34-F3-9A-86-59-57"
(5) Connect-Info = "CONNECT 0Mbps 802.11b"
(5) Acct-Session-Id = "196EB9DAB87DC1A9"
(5) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(5) WLAN-Pairwise-Cipher = 1027076
(5) WLAN-Group-Cipher = 1027076
(5) WLAN-AKM-Suite = 1027073
(5) Framed-MTU = 1400
(5) EAP-Message =
0x02e6008819800000007e1603030046100000424104d33c0ca6bed2496ed0ad157f243201b932ed73853b41b8def5f71764e3a434e98d15d1477fc921b14b1737929024dd22964795dc547dfad5ba1f6eaa05df358e140303000101160303002800000000000000005130785f81b63c506013130a51fa52
(5) State = 0x6b29e7526fcffe2030426126b755182c
(5) Message-Authenticator = 0x542305e6de3e64f4761fd45c4254dd66
(5) session-state: No cached attributes
(5) # Executing section authorize from file /etc/raddb/sites-enabled/default
(5) authorize {
(5) policy filter_username {
(5) if (&User-Name) {
(5) if (&User-Name) -> TRUE
(5) if (&User-Name) {
(5) if (&User-Name =~ / /) {
(5) if (&User-Name =~ / /) -> FALSE
(5) if (&User-Name =~ /@[^@]*@/ ) {
(5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(5) if (&User-Name =~ /\.\./ ) {
(5) if (&User-Name =~ /\.\./ ) -> FALSE
(5) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(5) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(5) if (&User-Name =~ /\.$/) {
(5) if (&User-Name =~ /\.$/) -> FALSE
(5) if (&User-Name =~ /(a)\./) {
(5) if (&User-Name =~ /(a)\./) -> FALSE
(5) } # if (&User-Name) = notfound
(5) } # policy filter_username = notfound
(5) [preprocess] = ok
(5) policy rewrite_calling_station_id {
(5) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(5) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(5) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(5) update request {
(5) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(5) --> 34-F3-9A-86-59-57
(5) &Calling-Station-Id := 34-F3-9A-86-59-57
(5) } # update request = noop
(5) [updated] = updated
(5) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(5) ... skipping else: Preceding "if" was taken
(5) } # policy rewrite_calling_station_id = updated
(5) authorized_macs: EXPAND %{Calling-Station-ID}
(5) authorized_macs: --> 34-F3-9A-86-59-57
(5) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(5) [authorized_macs] = ok
(5) if (!ok) {
(5) if (!ok) -> FALSE
(5) else {
(5) update control {
(5) Auth-Type := Accept
(5) } # update control = noop
(5) } # else = noop
(5) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(5) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(5) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(5) auth_log: EXPAND %t
(5) auth_log: --> Wed Dec 27 16:56:02 2017
(5) [auth_log] = ok
(5) [chap] = noop
(5) [mschap] = noop
(5) [digest] = noop
(5) suffix: Checking for suffix after "@"
(5) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(5) suffix: No such realm "NULL"
(5) [suffix] = noop
(5) eap: Peer sent EAP Response (code 2) ID 230 length 136
(5) eap: Continuing tunnel setup
(5) [eap] = ok
(5) } # authorize = ok
(5) Found Auth-Type = Accept
(5) Found Auth-Type = eap
(5) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(5) # Executing group from file /etc/raddb/sites-enabled/default
(5) authenticate {
(5) eap: Expiring EAP session with state 0x6b29e7526fcffe20
(5) eap: Finished EAP session with state 0x6b29e7526fcffe20
(5) eap: Previous EAP request found for state 0x6b29e7526fcffe20, released
from the list
(5) eap: Peer sent packet with method EAP PEAP (25)
(5) eap: Calling submodule eap_peap to process data
(5) eap_peap: Continuing EAP-TLS
(5) eap_peap: Peer indicated complete TLS record size will be 126 bytes
(5) eap_peap: Got complete TLS record (126 bytes)
(5) eap_peap: [eaptls verify] = length included
(5) eap_peap: <<< recv TLS 1.2 [length 0046]
(5) eap_peap: TLS_accept: SSLv3 read client key exchange A
(5) eap_peap: TLS_accept: SSLv3 read certificate verify A
(5) eap_peap: <<< recv TLS 1.2 [length 0001]
(5) eap_peap: <<< recv TLS 1.2 [length 0010]
(5) eap_peap: TLS_accept: SSLv3 read finished A
(5) eap_peap: >>> send TLS 1.2 [length 0001]
(5) eap_peap: TLS_accept: SSLv3 write change cipher spec A
(5) eap_peap: >>> send TLS 1.2 [length 0010]
(5) eap_peap: TLS_accept: SSLv3 write finished A
(5) eap_peap: TLS_accept: SSLv3 flush data
(5) eap_peap: (other): SSL negotiation finished successfully
(5) eap_peap: SSL Connection Established
(5) eap_peap: [eaptls process] = handled
(5) eap: Sending EAP Request (code 1) ID 231 length 57
(5) eap: EAP session adding &reply:State = 0x6b29e7526ecefe20
(5) [eap] = handled
(5) } # authenticate = handled
(5) Using Post-Auth-Type Challenge
(5) # Executing group from file /etc/raddb/sites-enabled/default
(5) Challenge { ... } # empty sub-section is ignored
(5) Sent Access-Challenge Id 173 from 10.2.2.35:1812 to 10.2.1.53:41523
length 0
(5) EAP-Message =
0x01e7003919001403030001011603030028dadb4eb42e0085becbd6fd6994801f5313c33c66c9cc80d3a42272a0d39d7b73ddc03b6589312f87
(5) Message-Authenticator = 0x00000000000000000000000000000000
(5) State = 0x6b29e7526ecefe2030426126b755182c
(5) Finished request
Waking up in 4.9 seconds.
(6) Received Access-Request Id 174 from 10.2.1.53:41523 to 10.2.2.35:1812
length 265
(6) User-Name = "rbadani"
(6) NAS-Identifier = "pakedge"
(6) Called-Station-Id = "90-A7-C1-B8-AC-F3:APT-CORP"
(6) NAS-Port-Type = Wireless-802.11
(6) Service-Type = Framed-User
(6) NAS-Port = 0
(6) Calling-Station-Id = "34-F3-9A-86-59-57"
(6) Connect-Info = "CONNECT 0Mbps 802.11b"
(6) Acct-Session-Id = "196EB9DAB87DC1A9"
(6) Acct-Multi-Session-Id = "A7617A3B4E8A4349"
(6) WLAN-Pairwise-Cipher = 1027076
(6) WLAN-Group-Cipher = 1027076
(6) WLAN-AKM-Suite = 1027073
(6) Framed-MTU = 1400
(6) EAP-Message =
0x02e7002919800000001f150303001a000000000000000183535c188c7891749e86843fccb8f9afccd7
(6) State = 0x6b29e7526ecefe2030426126b755182c
(6) Message-Authenticator = 0x51b7e34c9a113e47185fa29ed2265939
(6) session-state: No cached attributes
(6) # Executing section authorize from file /etc/raddb/sites-enabled/default
(6) authorize {
(6) policy filter_username {
(6) if (&User-Name) {
(6) if (&User-Name) -> TRUE
(6) if (&User-Name) {
(6) if (&User-Name =~ / /) {
(6) if (&User-Name =~ / /) -> FALSE
(6) if (&User-Name =~ /@[^@]*@/ ) {
(6) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(6) if (&User-Name =~ /\.\./ ) {
(6) if (&User-Name =~ /\.\./ ) -> FALSE
(6) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(6) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) ->
FALSE
(6) if (&User-Name =~ /\.$/) {
(6) if (&User-Name =~ /\.$/) -> FALSE
(6) if (&User-Name =~ /(a)\./) {
(6) if (&User-Name =~ /(a)\./) -> FALSE
(6) } # if (&User-Name) = notfound
(6) } # policy filter_username = notfound
(6) [preprocess] = ok
(6) policy rewrite_calling_station_id {
(6) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(6) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> TRUE
(6) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(6) update request {
(6) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(6) --> 34-F3-9A-86-59-57
(6) &Calling-Station-Id := 34-F3-9A-86-59-57
(6) } # update request = noop
(6) [updated] = updated
(6) } # if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
= updated
(6) ... skipping else: Preceding "if" was taken
(6) } # policy rewrite_calling_station_id = updated
(6) authorized_macs: EXPAND %{Calling-Station-ID}
(6) authorized_macs: --> 34-F3-9A-86-59-57
(6) authorized_macs: users: Matched entry 34-F3-9A-86-59-57 at line 8
(6) [authorized_macs] = ok
(6) if (!ok) {
(6) if (!ok) -> FALSE
(6) else {
(6) update control {
(6) Auth-Type := Accept
(6) } # update control = noop
(6) } # else = noop
(6) auth_log: EXPAND
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(6) auth_log: --> /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(6) auth_log:
/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/radius/radacct/10.2.1.53/auth-detail-20171227
(6) auth_log: EXPAND %t
(6) auth_log: --> Wed Dec 27 16:56:02 2017
(6) [auth_log] = ok
(6) [chap] = noop
(6) [mschap] = noop
(6) [digest] = noop
(6) suffix: Checking for suffix after "@"
(6) suffix: No '@' in User-Name = "rbadani", looking up realm NULL
(6) suffix: No such realm "NULL"
(6) [suffix] = noop
(6) eap: Peer sent EAP Response (code 2) ID 231 length 41
(6) eap: Continuing tunnel setup
(6) [eap] = ok
(6) } # authorize = ok
(6) Found Auth-Type = Accept
(6) Found Auth-Type = eap
(6) ERROR: Warning: Found 2 auth-types on request for user 'rbadani'
(6) # Executing group from file /etc/raddb/sites-enabled/default
(6) authenticate {
(6) eap: Expiring EAP session with state 0x6b29e7526ecefe20
(6) eap: Finished EAP session with state 0x6b29e7526ecefe20
(6) eap: Previous EAP request found for state 0x6b29e7526ecefe20, released
from the list
(6) eap: Peer sent packet with method EAP PEAP (25)
(6) eap: Calling submodule eap_peap to process data
(6) eap_peap: Continuing EAP-TLS
(6) eap_peap: Peer indicated complete TLS record size will be 31 bytes
(6) eap_peap: Got complete TLS record (31 bytes)
(6) eap_peap: [eaptls verify] = length included
(6) eap_peap: <<< recv TLS 1.2 [length 0002]
(6) eap_peap: ERROR: TLS Alert read:fatal:access denied
(6) eap_peap: WARNING: No data inside of the tunnel
(6) eap_peap: [eaptls process] = ok
(6) eap_peap: Session established. Decoding tunneled attributes
(6) eap_peap: PEAP state ?
(6) eap_peap: ERROR: Tunneled data is invalid
(6) eap: ERROR: Failed continuing EAP PEAP (25) session. EAP sub-module
failed
(6) eap: Sending EAP Failure (code 4) ID 231 length 4
(6) eap: Failed in EAP select
(6) [eap] = invalid
(6) } # authenticate = invalid
(6) Failed to authenticate the user
(6) Login incorrect (Warning: Found 2 auth-types on request for user
'rbadani'): [rbadani] (from client 10.2.1.53 port 0 cli 34-F3-9A-86-59-57)
(6) Using Post-Auth-Type Reject
(6) # Executing group from file /etc/raddb/sites-enabled/default
(6) Post-Auth-Type REJECT {
(6) attr_filter.access_reject: EXPAND %{User-Name}
(6) attr_filter.access_reject: --> rbadani
(6) attr_filter.access_reject: Matched entry DEFAULT at line 11
(6) [attr_filter.access_reject] = updated
(6) [eap] = noop
(6) policy remove_reply_message_if_eap {
(6) if (&reply:EAP-Message && &reply:Reply-Message) {
(6) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(6) else {
(6) [noop] = noop
(6) } # else = noop
(6) } # policy remove_reply_message_if_eap = noop
(6) } # Post-Auth-Type REJECT = updated
(6) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(6) Sending delayed response
(6) Sent Access-Reject Id 174 from 10.2.2.35:1812 to 10.2.1.53:41523 length
44
(6) EAP-Message = 0x04e70004
(6) Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 3.9 seconds.
(0) Cleaning up request packet ID 168 with timestamp +43
(1) Cleaning up request packet ID 169 with timestamp +43
(2) Cleaning up request packet ID 170 with timestamp +43
(3) Cleaning up request packet ID 171 with timestamp +43
(4) Cleaning up request packet ID 172 with timestamp +43
(5) Cleaning up request packet ID 173 with timestamp +43
(6) Cleaning up request packet ID 174 with timestamp +43
Ready to process requests
2
1