Menu

Error in login with Mikrotik

Help
Manos Xag
2016-06-06
2016-11-04
  • Manos Xag

    Manos Xag - 2016-06-06

    I need some help to troubleshoot my Mikrotik. I have a VPS, a Mikrotik with all the settings according to guide and have also replaced the files in hotspot folder of Mikrotik.
    Now i get served with my dynamic login page when i connect with Mikrotik.
    When i try to login i see "Log into Captive portal" and afterwards i get an error with red letters but it is not full so i can troubleshoot it.
    The only part i can read is "RADIUS CLIENT NOT" and sometheng about contact server i think. Message is below Login button.

    I can see Mikrotik as Nas Device and Heartbeat works as intented. Also keys for dynamic page work.

    When i try to login i see on Mikrotik Radius Page that my request got rejected.

    Any help would be appreciated.
    Thank you.

     

    Last edit: Manos Xag 2016-06-06
    • AMJID BASHIR

      AMJID BASHIR - 2016-09-29

      Bro can you tell me how to configure dynamic login page when i connect with Mikrotik i fallow giudeline but still fail .

       
  • Paul Mills

    Paul Mills - 2016-06-14

    Have you tried login in using the default mikrotik pages? If thats not working check the shared secret.

     
  • Manos Xag

    Manos Xag - 2016-06-14

    I have found the problem. Mikrotik registers first on RD on unknown Dynamic Radius Clients. You have to go from there and select it and afterwards attach it on the owner. Then it's registered and working as intended.

     
    • Milo Torres

      Milo Torres - 2016-09-24

      Hello, i have the same problem like you, i tried your solution with no luck, can you help me ?, Thanks

       
  • Abe

    Abe - 2016-10-29

    Maybe you're not using FreeRADIUS-Client-Secret when you sonfigure FreeRADIUS version 3.x.

     
  • Fabrizio Lazzaretti

    same problem.
    this is my scenario
    Ubuntu 16.04 with php 5.6, cake 2.9.1. RD SVN version 1952(latest today)
    I followed the new instruction for ubuntu 16.04 with nginx and FR3.
    I've succesfully configured the NAS in pptp mode following the mikrotik instruction on th e old wiki.
    Nas client communicates fine with radius because the user can login on the captive portal side (checked permanent user).
    The problem is always "Hotspot not responding" just when loading the login page; and after i insert the credentials, the user log in in nas(mikrotik show me "logged in" via chap...) but the page give me the error:
    RADIUS Server is not responding".
    I guess the problem the routing for control the user usage(status) and i tried also to disable that function on the NAS applet but with no luck.
    I checked the code but for now i cant understand where the problem is.
    Please Dirk tell us some clue to investigate ...
    Thanks in advance!!

     
  • Abe

    Abe - 2016-10-31

    Remember, to use dynamic login page you need to allow login with HTTP PAP in your hotspot server profile in mikrotik

     
  • Fabrizio Lazzaretti

    Ok, i've ended up that im foolish now.. after hours and hours on the problem i found the solution.
    I had not put the status.html to login directory.. no comment ! :)

     
  • Abe

    Abe - 2016-10-31

    Great! Congratulations!. If you have a VPS with radiusdesk installed how can I add remote mikrotik nas, if my internet has dynamic ip? And from differente locations. Thanks!

     

    Last edit: Abe 2016-10-31
    • Milo Torres

      Milo Torres - 2016-11-02

      Here : https://www.youtube.com/watch?v=8dHPtV3O_mk i made this video 1 month ago, it is in spanish but is very explicit

       
  • Abe

    Abe - 2016-11-02

    I need your help to understand why I cannot add a Dynamic Radius Client. I have a PC running ubuntu server 14.0.4 with Radiusdesk. I forward my router ports to acces from anywhere to my PC and it works. In my mikrotik, in radius server I setup my public ip but I can't see any NAS Divices in radiusdesk.

    Is it correct what i'm doing? Or I need to instal Radiusdesk on a VPS?

    As additional information if I add a Dynamic Radius Client in my local lan works fine.

    EDIT: I have my Radius Server on location A. ISP allow forwards ports, so I can get access from my server anywhere.

    I have NAS Device (Mikrotik) on location B. ISP don't allow forward ports. Maybe this is the problem.

     

    Last edit: Abe 2016-11-02
  • Fabrizio Lazzaretti

    Abe
    the Dynamic Radius Client is for you.
    You have to be sure to portforward ports udp 1812 and 1813 to RD.
    the other option is pptp. you have to install pptpd and be sure to forward TCP 1723 and protocol GRE(some isp blocks GRE)

     
  • Abe

    Abe - 2016-11-03

    Oh! I don't understand that part. Forward Ports UDP 1812 and 1813 is by side server or nas device. As I mentionated before nas device is conected on location B and the ISP don't allow forward any ports. If I install radiusdesk on a VPS, Do I need to forward ports? I mean, by side nas device. Cause my principal trouble is that cannot forward ports.

     
  • Fabrizio Lazzaretti

    Abe, on the NAS side, behind the nat, there is no need to forward the ports, here the Dynamic Client helps you. On the server side you have to expose UDP 1812 and 1813. The NAS client is then triggered by heartbeat system

     

    Last edit: Fabrizio Lazzaretti 2016-11-03
  • Abe

    Abe - 2016-11-04

    Thank you Fabrizio, thank you very much. You had help me to understand that part. Now I'm testing Radiusdesk with my own server (PC of course), I love it :D. There are much more to read and learn.

    Cheers from Mexico. and an apologize by my terrible english.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.