Community discussions

MUM Europe 2020
 
Rammstein
just joined
Topic Author
Posts: 7
Joined: Fri Jun 08, 2007 10:44 am

need script to enable and disable wlan

Sat Jun 23, 2007 4:20 pm

hi all :D

I need a script that enables wlan when I ask for a website form browser, download emails from email client or everything ask for internet connection and disables it when there is no traffic for thirty minutes on the wlan, without use hotspot login, a script that enable wlan on demand... is it possible? how can i write it? can someone help me?

tnx all.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6621
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: need script to enable and disable wlan

Mon Jun 25, 2007 10:05 am

There will be traffic if client is connected to the WLAN interface even without browsing,downloading, etc.
As well what about policies to enable wireless interface ?
 
Rammstein
just joined
Topic Author
Posts: 7
Joined: Fri Jun 08, 2007 10:44 am

Re: need script to enable and disable wlan

Wed Jun 27, 2007 11:16 am

Enable wireless intrerface if everything ask for internet connection
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24424
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: need script to enable and disable wlan

Wed Jun 27, 2007 11:35 am

how will the router know that you "ask" for internet, if the interface is disabled? mind reading :) ? and WHY do you need this?
 
illiniwireless
Member Candidate
Member Candidate
Posts: 152
Joined: Mon Dec 26, 2005 12:36 am
Location: USA

Re: need script to enable and disable wlan

Thu Jun 28, 2007 7:22 am

I need a script that disables and enables wireless interface as well but I just need it to insure that the clients are connected. So I need to be able to determine whether or not to disable and enable according to the regisration table and then pause 15 seconds and do it again until a certain number of the clients associate. I'm going to start working on this tonight and see where I get. If I make it work I will post it on the wiki.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5970
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: need script to enable and disable wlan

Thu Jun 28, 2007 9:40 am

how do you think clients will connect back to AP if wireless interface is disabled?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6621
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: need script to enable and disable wlan

Thu Jun 28, 2007 3:12 pm

In other words it is not possible to determine, whether client wants to send some data to AP, when AP interface is disabled.
What is the point to disable wireless interface ?
 
Rammstein
just joined
Topic Author
Posts: 7
Joined: Fri Jun 08, 2007 10:44 am

Re: need script to enable and disable wlan

Wed Jul 04, 2007 10:58 am

how will the router know that you "ask" for internet, if the interface is disabled? mind reading :) ? and WHY do you need this?
like isp router that enable line only if you send request to internet (sorry my english is too bad :( )
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5970
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: need script to enable and disable wlan

Wed Jul 04, 2007 12:39 pm

like isp router that enable line only if you send request to internet (sorry my english is too bad :( )
then your ISP has some kind of "magic" hardware if it can send request to disabled interface :)

Who is online

Users browsing this forum: No registered users and 8 guests