Community discussions

MikroTik App
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

IKEv2 and EAP Radius - No accounting records

Sun Aug 20, 2017 3:09 pm

Hi,

I have set up IKEv2 server running on my Mikrotik 6.40.1 with authentication done by EAP passthrough to a RADIUS server which works fine except that no RADIUS Accounting records are ever sent from the Mikrotik to the RADIUS server; I only see the Auth requests.

I know accounting works because it works fine for my Wireless clients.

Does anyone have any suggestions? Has anyone ever got RADIUS accounting with IKEv2 EAP passthrough working on their Mikrotik?

Regards,
Achelon
 
pe1chl
Forum Guru
Forum Guru
Posts: 10221
Joined: Mon Jun 08, 2015 12:09 pm

Re: IKEv2 and EAP Radius - No accounting records

Sun Aug 20, 2017 8:49 pm

it is likely that accounting records are only written for protocols where a dynamic interface is created for the traffic (PPP based)
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Sun Aug 20, 2017 8:54 pm

OK, understood. That is a shame.

Regards,
Achelon
 
pe1chl
Forum Guru
Forum Guru
Posts: 10221
Joined: Mon Jun 08, 2015 12:09 pm

Re: IKEv2 and EAP Radius - No accounting records

Sun Aug 20, 2017 9:55 pm

Well, EAP on WiFi also does accounting, so maybe it is only an issue with IKEv2.
Of course you can always do a feature request via the mail address...
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: IKEv2 and EAP Radius - No accounting records

Thu Sep 07, 2017 12:42 pm

Accounting for IKEv2 currently is not implemented.
 
eifLZ9D8zSwW
just joined
Posts: 10
Joined: Sat May 30, 2015 10:26 am

Re: IKEv2 and EAP Radius - No accounting records

Mon Feb 12, 2018 3:17 pm

Hi,

I have set up IKEv2 server running on my Mikrotik 6.40.1 with authentication done by EAP passthrough to a RADIUS server which works fine except that no RADIUS Accounting records are ever sent from the Mikrotik to the RADIUS server; I only see the Auth requests.

I know accounting works because it works fine for my Wireless clients.

Does anyone have any suggestions? Has anyone ever got RADIUS accounting with IKEv2 EAP passthrough working on their Mikrotik?

Regards,
Achelon
Hi achelon,
would you be so kind and share config for IKEv2 eap radius?
What client do yu use? W10 / Android with Strongswan?

thanks a lot
 
vmarkovsky
just joined
Posts: 8
Joined: Mon Nov 06, 2017 5:58 am

Re: IKEv2 and EAP Radius - No accounting records

Fri May 11, 2018 2:55 am

I have set up IKEv2 server running on my Mikrotik 6.40.1 with authentication done by EAP passthrough to a RADIUS server which works fine
Regards,
Achelon
Hi achelon, would you be so kind and share config for IKEv2 eap radius?
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Thu May 17, 2018 1:06 am

Hi,

As requested. though I don't think there is anything special about my config. The IKEv2 accounting thing is still not fixed as well after all this time. Here is it.

Regards,
Achelon
/radius
add address=<radius server IP> secret=Password service=ppp,login,hotspot,wireless,dhcp,ipsec timeout=3s

/ip ipsec mode-config
set [ find default=yes ] name=request-only responder=no
add name=cfg_priv split-include=0.0.0.0/0,<LAN SUBNET> static-dns="" system-dns=yes

/ip ipsec peer proposal
set [ find default=yes ] dh-group=modp2048,modp1024 enc-algorithm=aes-128,3des hash-algorithm=sha1 lifetime=1d name=default proposal-check=obey
add dh-group=ecp521 enc-algorithm=aes-256 hash-algorithm=sha512 lifetime=1d name=proposal_1 proposal-check=obey

/ip ipsec policy group
set [ find default=yes ] name=default
add name=group1

/ip ipsec proposal
set [ find default=yes ] auth-algorithms=sha256 disabled=no enc-algorithms=aes-256-cbc lifetime=1d name=default pfs-group=none

/ip ipsec peer
add address=0.0.0.0/0 auth-method=eap-radius certificate=<cert filename> comment=IKEv2 disabled=no dpd-interval=2m exchange-mode=ike2 \
    generate-policy=port-strict local-address=<WAN IP> mode-config=cfg_priv my-id=fqdn:<WAN FQDN> passive=yes policy-template-group=\
    default proposal=proposal_1 send-initial-contact=no

/ip ipsec policy
set 0 disabled=no dst-address=0.0.0.0/0 group=default proposal=default protocol=all src-address=0.0.0.0/0 template=yes

/ip ipsec user settings
set xauth-use-radius=yes
 
giguard
newbie
Posts: 39
Joined: Mon Oct 01, 2018 7:10 pm

Re: IKEv2 and EAP Radius - No accounting records

Mon Oct 01, 2018 7:31 pm

This thread is about one year old. Still not implemented?
I would really really love to see this implemented.
I'm running 6.42.3 and no accounting records are issued by Mikrotik.
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Tue Oct 16, 2018 12:09 am

I know, this is so frustrating. I thought it might be fixed after a year.
 
User avatar
emils
Forum Veteran
Forum Veteran
Posts: 906
Joined: Thu Dec 11, 2014 8:53 am

Re: IKEv2 and EAP Radius - No accounting records

Mon Mar 18, 2019 1:42 pm

What's new in 6.45beta16 (2019-Mar-18 07:49):

Changes in this release:

*) ipsec - added support for RADIUS accounting;
RADIUS accounting has been implemented. Please let us know if you have any feedback or issues with it.
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Tue Mar 19, 2019 3:58 am

I have just tested this and to be fair, it seems to work. Thanks for listening, i had given up hope.

Achelon
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Sun Mar 24, 2019 4:57 am

Does anyone know what the value passed in NAS-Port-Id means for IPSEC sessions? The documentation doesn't (yet?) cover IPSEC:

NAS-Port-Id - async PPP - serial port name; PPPoE - ethernet interface name on which server is running; HotSpot - name of the physical HotSpot interface (if bridged, the bridge port name is showed here); not present for ISDN, PPTP and L2TP
 
User avatar
emils
Forum Veteran
Forum Veteran
Posts: 906
Joined: Thu Dec 11, 2014 8:53 am

Re: IKEv2 and EAP Radius - No accounting records

Mon Mar 25, 2019 12:21 pm

Do you have any specific needs or ideas what might be a good value to pass in NAS-Port-Id? Currently a hex value of the remote peer's ID is written there and as far as we can see, RFC is not very specific what should be written there. Perhaps, the specific Identity ID could be written there?
 
burkon
newbie
Posts: 41
Joined: Tue Sep 12, 2006 2:57 pm
Location: DE

Re: IKEv2 and EAP Radius - No accounting records

Fri Mar 29, 2019 5:16 pm


As requested. though I don't think there is anything special about my config. The IKEv2 accounting thing is still not fixed as well after all this time. Here is it.
Hi,

I'm trying to setup something like this. But I'm pretty much stuck on the radius setup.

Does anyone have some pointer to a document where this is described.

Thanks
Ekkehard
 
User avatar
emils
Forum Veteran
Forum Veteran
Posts: 906
Joined: Thu Dec 11, 2014 8:53 am

Re: IKEv2 and EAP Radius - No accounting records

Mon Apr 01, 2019 10:26 am

There are many tutorials on the Internet about how to set up EAP RADIUS server. You can also take a look at this wiki article which describes how to set up Freeradius EAP authentication for wireless, that has pretty much the same configuration for IKEv2.

https://wiki.mikrotik.com/wiki/Manual:W ... FreeRADIUS
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Wed Apr 03, 2019 1:48 am

Do you have any specific needs or ideas what might be a good value to pass in NAS-Port-Id? Currently a hex value of the remote peer's ID is written there and as far as we can see, RFC is not very specific what should be written there. Perhaps, the specific Identity ID could be written there?
The current approach is fine, I was just curious.

One other question I have - although I receive the start and stop accounting records, I never receive any interim records - is this by design or a bug?

Regards,
Achelon
 
User avatar
emils
Forum Veteran
Forum Veteran
Posts: 906
Joined: Thu Dec 11, 2014 8:53 am

Re: IKEv2 and EAP Radius - No accounting records

Wed Apr 03, 2019 8:25 am

Make sure you specify "interim-update" parameter under '/ip ipsec settings'. This setting currently is CLI only.
 
achelon
just joined
Topic Author
Posts: 15
Joined: Wed Dec 25, 2013 7:30 pm

Re: IKEv2 and EAP Radius - No accounting records

Thu Apr 04, 2019 2:41 am

Make sure you specify "interim-update" parameter under '/ip ipsec settings'. This setting currently is CLI only.
You are correct, works fine when this is set to a non-zero value.


Sent from my iPad using Tapatalk

Who is online

Users browsing this forum: No registered users and 83 guests