Community discussions

MikroTik App
 
Nasservb
just joined
Topic Author
Posts: 6
Joined: Mon Apr 29, 2013 11:13 pm

How to execute API code without login?

Thu Oct 23, 2014 5:44 pm

Hi,
I want to use a program that written in vb.net for changing user password for hotspot user, but the problem is that I can't execute the code until I sign in to hotspot!
I want the users to use the program while they are not in hotspot active case!
in another meaning, I want users to be able to use and execute API code while they are still in (ip hotspot hosts), is there any way to do that?
thank you, and sorry for my English
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: How to execute API code without login?

Thu Oct 23, 2014 5:46 pm

Place your web server in walled garden.
 
Nasservb
just joined
Topic Author
Posts: 6
Joined: Mon Apr 29, 2013 11:13 pm

Re: How to execute API code without login?

Thu Oct 23, 2014 9:24 pm

Thank you for Reply,
but how can I add the API service to walled garden?!!
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: How to execute API code without login?

Thu Oct 23, 2014 10:09 pm

Thank you for Reply,
but how can I add the API service to walled garden?!!
See the example on the linked page, and merely replace "paypalobject.com" with your web server's domain name.
 
Nasservb
just joined
Topic Author
Posts: 6
Joined: Mon Apr 29, 2013 11:13 pm

Re: How to execute API code without login?

Fri Oct 24, 2014 2:56 am

Thank you for Reply,
but how can I add the API service to walled garden?!!
See the example on the linked page, and merely replace "paypalobject.com" with your web server's domain name.
Sorry, may be I did not explain well :D
I have small wifi hotspot network
and I will setup my program in every client's computer
if the client forget his hotspot password then he can reset using my program
but the problem that he can not use the program unless he is active!!
any suggestion?
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: How to execute API code without login?

Fri Oct 24, 2014 8:02 am

Thank you for Reply,
but how can I add the API service to walled garden?!!
See the example on the linked page, and merely replace "paypalobject.com" with your web server's domain name.
Sorry, may be I did not explain well :D
I have small wifi hotspot network
and I will setup my program in every client's computer
if the client forget his hotspot password then he can reset using my program
but the problem that he can not use the program unless he is active!!
any suggestion?
Yes.

Instead of placing the program on every client's computer, place it on a web server, and make clients go to that web page, after allowing your web server as part of a walled garden.

This is the only secure means to do a password reset - if you make the program run on every client's computer, then a slightly more knowledgeable client of yours (one who has heard of Wireshark, and knows you're using the RouterOS API) could potentially figure out your router password, and even using SSL won't help, since the client's machine would be one of the endpoints in that case, and would thus be able to decrypt the traffic.

(When you said you have a vb.net program, I was assuming you're talking about an ASP.NET web page, that uses VB.NET...; But now that I know we're talking about a desktop app... That's not the way to go is what I'm saying.)
 
Nasservb
just joined
Topic Author
Posts: 6
Joined: Mon Apr 29, 2013 11:13 pm

Re: How to execute API code without login?

Sat Oct 25, 2014 9:57 pm

Thank for help, I found it, I did put my router ip address for lan in walled garden ip list, and that solved the problem
Thank you

Who is online

Users browsing this forum: No registered users and 23 guests