Community discussions

MikroTik App
 
cmacneill
Member Candidate
Member Candidate
Topic Author
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Force MikroTik RADIUS Client to use TCP?

Tue Sep 27, 2011 2:17 pm

I'm having some problems with RADIUS accounting packets going missing on heavily loaded connections. RouterOS appears to only allow UDP connections to the RADIUS server, am I missing something or is there some hidden configuration somewhere to specify TCP? If I block UDP at the Server, will MikroTik RADIUS Client try to connect on UDP and then auto-retry via TCP?

Regards

Chris Macneill
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Force MikroTik RADIUS Client to use TCP?

Tue Sep 27, 2011 4:02 pm

RADIUS is UDP only as a conscious design choice.
 
cmacneill
Member Candidate
Member Candidate
Topic Author
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: Force MikroTik RADIUS Client to use TCP?

Tue Sep 27, 2011 11:05 pm

The RFC allows use of TCP, so surely the choice of protocol should be the user's? I have a problem, as currently implemented MikroTik RADIUS Client is unstable, if TCP were available I could at least test whether using it would solve my problem.

I'm left with two choices, either live with something that has intermittent problems or replace MikroTik routers at affected sites with something more generic that correctly implements the RFCs and gives me the choice.

Can MikroTik not give us the choice whether to use TCP or UDP, this would seem a very simple change to make to software that performs pretty well under most circumstances, more stable in marginal conditions? Anyone can make devices work in ideal conditions, what separates the great hardware from the average is when it performs equally (or almost so) under adverse conditions.

Regards

Chris Macneill
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Force MikroTik RADIUS Client to use TCP?

Wed Sep 28, 2011 12:50 am

There is an IETF draft out there to extend RADIUS to run over TCP, but that is nothing but a draft that expired earlier this year and didn't go anywhere. RFC2865 (which is what RouterOS and most every other vendor supports and implements) explicitly defines RADIUS to run over UDP. Section 2.4 explicitly explains why that choice was made.

If you have any information to the contrary I'd be very interested in some links.
 
cmacneill
Member Candidate
Member Candidate
Topic Author
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: Force MikroTik RADIUS Client to use TCP?

Wed Sep 28, 2011 1:24 am

OK, thanks for clarifying that. I read the RFCs about 10 years ago, but didn't recall anything about TCP being "draft" status! I had assumed that since in all Linux systems TCP and UDP is defined in /etc/services for RADIUS authentication and accounting that these were "standard" from initial implementation of RADIUS.

Regards

Chris Macneill
 
Simonrouge
just joined
Posts: 10
Joined: Mon May 22, 2017 10:32 am

Re: Force MikroTik RADIUS Client to use TCP?

Wed Jan 31, 2018 11:56 pm

Does anybody know if Mikrotik now supports Radius over TCP as per IETF RFC6613 (https://tools.ietf.org/html/rfc6613) please?

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], dervomsee, ejaka2s, Majestic-12 [Bot], viacheslav1988 and 217 guests