Hello,
I have two microtik router and these routers are connected via GRE-Tunnel. Router1 has the User Manager running.
Router 2 uses the Radius Server of Router1 and I tried to send the Radius Request from the Management-Interface of Router2 to the Management-Interface of Router1, Router1 receives the Request and the Authentication is successful (User Manager Log), but now the Router1 uses the IP of the GRE-Tunnel to send the Response to Router2. Router2 displays a “Login failed” and Login is not working.
Is this the correct behaviour? Why does Router1 not send the response from the “incoming Interface” = Management Interface?
Thanks for your support.
br
Tom
PS: Workaround is working, when using the GRE-Interface of Router1 on Router2 to authenticate the user.
Without any configuration details it is difficult to say. By default the RADIUS client will use the address of the egress interface as the source address unless you explicitly set one, and the RADIUS server / user manager will reply to that address.
We set the RADIUS source address to a loopback /32 on each Mikrotik and tunnel traffic to FreeRADIUS based servers over L2TP/IPsec tunnels (rather than GRE) without issue. As your user manager and tunnel endpoints are on the same device it isn’t possible to determine the exact source of the problem without seeing the full packet dumps. It is most odd that the server replies both from a different address (10.0.0.1) to the received destination (192.168.0.1), AND to a different address (10.0.0.2) from the received source (192.168.0.2) - those packet dump addresses are the tunnel endpoints rather than tunnelled contents.
Thanks for the reply. I’m using the loopback-interfaces to send the packets and what I can see at the recieving device (UserManager & GRE Tunnel end point), the Router/UserManager receives the packet with the correct loopback ip addresses; I also see a successful authentication at the UserManager log. The response is then send back with the wrong IP’s and I have no idea why and the sending router does not accept this packet and the authentication times out.
br
Tom