Community discussions

MikroTik App

Search found 84 matches

by oooscar
Fri Oct 11, 2019 5:39 pm
Forum: Scripting
Topic: Login API pear2/Net_RouterOS 6.45.x
Replies: 4
Views: 2850

Re: Login API pear2/Net_RouterOS 6.45.x

Hi,

the code in this link is working for me until new realse or the API comes over.

https://github.com/pear2/Net_RouterOS/issues/37

Thanks,
by oooscar
Wed Oct 09, 2019 2:48 pm
Forum: Scripting
Topic: Login API pear2/Net_RouterOS 6.45.x
Replies: 4
Views: 2850

Re: Login API pear2/Net_RouterOS 6.45.x

Thanks mrz, but I'm using pers2/Net_RouterOS PHP class, I wonder if there is any update to don't change the code directly. it should be here: private static function _login( Communicator $com, $username, $password = '', $timeout = null ) { $request = new Request('/login'); $request->send($com); $res...
by oooscar
Tue Oct 08, 2019 9:05 pm
Forum: Scripting
Topic: Login API pear2/Net_RouterOS 6.45.x
Replies: 4
Views: 2850

Re: Login API pear2/Net_RouterOS 6.45.x

Hi,


No one ? There is no fix ?
by oooscar
Mon Oct 07, 2019 8:32 pm
Forum: Scripting
Topic: Login API pear2/Net_RouterOS 6.45.x
Replies: 4
Views: 2850

Login API pear2/Net_RouterOS 6.45.x

Hi, I did read about new login API from 6.45.x version. https://wiki.mikrotik.com/wiki/Manual:API#Initial_login Now I have several routers where I connect throw pear2/Net_RouterOS with versions older that 6.45 (arround 1000 routers). And now there start to come some with new RouterOS version. I did ...
by oooscar
Thu Jul 04, 2019 9:40 pm
Forum: Announcements
Topic: v6.46beta [testing] is released!
Replies: 150
Views: 76108

Re: v6.46beta [testing] is released!

Hi

What was the issue here?

hotspot - fixed non-local NAT redirection to port TCP/64873

Thanks
by oooscar
Tue May 21, 2019 9:36 pm
Forum: Scripting
Topic: Time Format Api Call
Replies: 2
Views: 945

Re: Time Format Api Call

As always excelent help boen.

Many thanks!
by oooscar
Tue May 21, 2019 1:26 am
Forum: Scripting
Topic: Time Format Api Call
Replies: 2
Views: 945

Time Format Api Call

Hi, I'm doing a php program to read and write some Mikrotik fileds. I'm using API calls from boen.robot. One of the fields I want to read and update is /ip/hotspot/user/profile mac-cookie-timeout In mikrotik we store this time as "xxxd hh:mm:ss" like "999d 01:00:10" but when I read it we get "42w5d1...
by oooscar
Fri May 17, 2019 1:48 pm
Forum: General
Topic: Mikrotik Hostpot Chat Plugin
Replies: 4
Views: 1244

Re: Mikrotik Hostpot Chat Plugin

Hola,

ponte en contacto y te envio la lista de walled gaden y si va bien las publicamos por aqui si quieres.

oscar@socialwibox.com
by oooscar
Wed May 08, 2019 10:58 pm
Forum: General
Topic: Mikrotik Hostpot Chat Plugin
Replies: 4
Views: 1244

Re: Mikrotik Hostpot Chat Plugin

Hi
What have you add on walled garden?

For sure you need to add more.

If you want share this pice of code we I can take a look.

Rgds,

Or send me mail to oscar@socialwibox.com
by oooscar
Thu Apr 25, 2019 10:52 pm
Forum: General
Topic: Walled Garden fbcdn.net
Replies: 4
Views: 1021

Re: Walled Garden fbcdn.net

Hi Joegoldman, if you test the rule it is not filtering all https only the https from site not added on walled garden. I get from: https://wiki.mikrotik.com/wiki/Manual:Hotspot_HTTPS_example SSL certificate key size will impact load on www service on hotspot server. Effects of this is seen from host...
by oooscar
Thu Apr 25, 2019 9:19 pm
Forum: General
Topic: Radius Sessión Timeout
Replies: 0
Views: 453

Radius Sessión Timeout

Hi, I have hotspots with radius auth and account. Some radius users have Session-Timeout arround 1 day and 20 days. I've realeased than if lease from dhcp-server on radius is less that the session-timeout the active user (while beeing inactive) is deleted from active users on hotspot due to lost dhc...
by oooscar
Mon Apr 22, 2019 10:57 am
Forum: General
Topic: Walled Garden fbcdn.net
Replies: 4
Views: 1021

Re: Walled Garden fbcdn.net

Still finding a solution..... Easy test... create a hotspot. Add rule: /ip firewall nat add chain=hs-unauth action=return protocol=tcp dst-port=443 place-before=0 Add on walled garden fbcdn.net *fbcdn.net *fbcdn* and before logged in open on browser this image for example https://scontent.fmad3-5.fn...
by oooscar
Wed Apr 10, 2019 12:24 pm
Forum: Scripting
Topic: API call all in one
Replies: 1
Views: 610

API call all in one

Hi, actually, I’m doing different API calls to get information from the router like: $binding=$this->util->setMenu('/ip/hotspot/ip-binding')->getAll(); $hotspots=$this->util->setMenu('/ip/hotspot')->getAll(); $routerInfo=$this->util->setMenu('/interface/wireless')->getAll(); At the end I call the ro...
by oooscar
Sun Apr 07, 2019 10:40 pm
Forum: Scripting
Topic: Character Set
Replies: 6
Views: 1487

Re: Character Set

Hi,

attached my settings.

But yes i can't type both chinese and European on winbox.
by oooscar
Sun Apr 07, 2019 3:01 am
Forum: Scripting
Topic: Character Set
Replies: 6
Views: 1487

Re: Character Set

Hi, I did check my php file and it is UTF-8 (checked with atom on botton right of the status bar as you seggested). I did modify on winbox some special character like í and i could get it correctly charset with this : $this->client->setCharset( array( RouterOS\Communicator::CHARSET_REMOTE => 'WINDOW...
by oooscar
Sat Apr 06, 2019 5:10 pm
Forum: General
Topic: Walled Garden fbcdn.net
Replies: 4
Views: 1021

Re: Walled Garden fbcdn.net

Hi !!!

plase any one? any idea ?

Thanks,
by oooscar
Sat Apr 06, 2019 5:08 pm
Forum: Scripting
Topic: Character Set
Replies: 6
Views: 1487

Character Set

Hi, I have a program that adds and update sstp-server interface with an api call. I'm using PEAR2_Net_RouterOS 1.0.0b5 and I can't send properly some UTF-8 characters. I've add header("Content-Type: text/html; charset: UTF-8"); and tryed to add this: //Here's where we specify the charset pair. $clie...
by oooscar
Sat Mar 30, 2019 7:34 pm
Forum: General
Topic: Walled Garden fbcdn.net
Replies: 4
Views: 1021

Walled Garden fbcdn.net

Hi all, I have a hotspot where I want to drop all https traffic while user is not idendified. So as Mikortik manual told https://wiki.mikrotik.com/wiki/Manual:Hotspot_HTTPS_example I add this firewall rule: /ip firewall nat add chain=hs-unauth action=return protocol=tcp dst-port=443 place-before=0 W...
by oooscar
Sat Mar 09, 2019 11:03 am
Forum: General
Topic: UDP Lost Packets
Replies: 0
Views: 425

UDP Lost Packets

Hi, At the moment I have arroung 1.000 mikrotik routers with hotspot using freeRadius as auth and account. The radius server is on AWS Frankfurt and most of the clients are working ok. But there are some (10 or so) cliens that are losing always udp packets and arround 10% of request are lost. And al...
by oooscar
Thu Feb 28, 2019 12:37 am
Forum: General
Topic: Hotspot detect user ap
Replies: 3
Views: 745

Re: Hotspot detect user ap

Hi,

please any Idea ? Can't be donne with mikrotik ?

Thanks,
by oooscar
Thu Feb 28, 2019 12:36 am
Forum: Announcements
Topic: v6.44 [stable] is released!
Replies: 219
Views: 52778

Re: v6.44 [stable] is released!

... ErfanDL - Not yet added to GUI "/ip hotspot profile set https-redirect="; ... Please can you explain this new feature and how is working. Tks Yes please, an exaplanation ? for both features: *) hotspot - added "https-redirect" under server profiles; *) hotspot - added per-user NAT rule generati...
by oooscar
Sun Feb 24, 2019 9:46 pm
Forum: General
Topic: Hotspot detect user ap
Replies: 3
Views: 745

Re: Hotspot detect user ap

Hi,

thanks 2frogs, thanks for the answer, but that would be a complicated solution for 10 or more APs, not really scalable.

I've seen that solutions with xclaim and none VLANs.

Anyone knows how to do it ?

Thanks,
by oooscar
Sat Feb 23, 2019 11:59 am
Forum: General
Topic: Hotspot detect user ap
Replies: 3
Views: 745

Hotspot detect user ap

Hi all, Imagine we have a mikrotik with hotspot active and a mikrotik ap1 atrached on eth4 and mikrotik ap2 on eth5 Is there any way on the hotspot redirection to post the mac address form the AP or any information to know where the user is connected. I would like to show success landing page or log...
by oooscar
Mon Feb 18, 2019 9:02 pm
Forum: General
Topic: CLI Free File Memory
Replies: 3
Views: 503

Re: CLI Free File Memory

Oh !

So easy ! free-hdd-space

It should be shown on all models ?

Thanks.
by oooscar
Mon Feb 18, 2019 8:37 pm
Forum: General
Topic: CLI Free File Memory
Replies: 3
Views: 503

CLI Free File Memory

Hi,

there is any way to know the free disk available ?

The same what we see on the menu File window File List on the botton.
File.PNG
The 27% free

A need to use this information on an API call.

Thanks
by oooscar
Tue Dec 25, 2018 11:26 am
Forum: Announcements
Topic: v6.43.8 [stable] is released!
Replies: 169
Views: 47729

Re: v6.43.8 [stable] is released!

strods I'm not saying that this change is wrong, it should work like that, but: 1. Write it in changelog 2. If you have to update and set regulatory domain for countries, why removing superchannel with country set instead of unsetting country with superchannel set? I don't think this change is corr...
by oooscar
Sun Dec 23, 2018 12:58 pm
Forum: Announcements
Topic: v6.43.8 [stable] is released!
Replies: 169
Views: 47729

Re: v6.43.8 [stable] is released!

strods I'm not saying that this change is wrong, it should work like that, but: 1. Write it in changelog 2. If you have to update and set regulatory domain for countries, why removing superchannel with country set instead of unsetting country with superchannel set? I don't think this change is corr...
by oooscar
Sun Oct 09, 2016 11:06 pm
Forum: Scripting
Topic: Block LAN from DHCP-Client
Replies: 0
Views: 582

Block LAN from DHCP-Client

Hi, I need to block traffic from hotspot users to the LAN of the GetWay. I have a dhcp-client on bridge interface, then depend on the internet provider I have 192.168.1.1/24 Getway or 192.168.0.1/24 Getway or others.... I would like dynamically to not allow traffic to others ips of the 192.168.1.1/2...
by oooscar
Sat Apr 30, 2016 9:47 pm
Forum: General
Topic: SSTP Network easy ...
Replies: 0
Views: 462

SSTP Network easy ...

Hi, i'm trying to do something easy but I'm missing something. The diagram is something like: Mikrotik Cli Mikrotik Srv CentOS SSTP Cli (172.18.1.2) ----- SSTP Srv (172.18.1.1) ETH2 (192.168.50.253) ----- 192.168.50.75 Mikrotik Client (172.18.1.2) is connected with SSTP to Mikrotik Srv (172.18.1.1) ...
by oooscar
Sun Feb 21, 2016 10:43 am
Forum: General
Topic: Hotspo Freeradius + CoA
Replies: 0
Views: 451

Hotspo Freeradius + CoA

Hi all, I’m working with mikrotik hotspot and freeradius 3.0.10. I'm testing about limit session time. At the moment I got than if the user try to login (authorization) and has over the limit session time per day, radius sends authorization error that is ok. Now I need to disconnect user when they g...
by oooscar
Sun Nov 15, 2015 1:51 am
Forum: Scripting
Topic: Autoconfigure
Replies: 6
Views: 1863

Re: Autoconfigure

Hi again, I’m still trying to auto configure routers but I can't get it..... Last try is: RouterBoard 2011 ETh1 connect to ISP Eth2 DHCP-Server connect to PC Eth2 192.168.90.1/24 Pool 192.168.90.30-256 PC Gets 192.168.90.254 Eth5 bridgeAutoLan5 bridgeAutoLan5 ip Address 192.168.88.2/24 RouterBoard 9...
by oooscar
Fri Nov 13, 2015 11:54 pm
Forum: General
Topic: Hotspot walled garden play.google itunes.apple
Replies: 1
Views: 1396

Hotspot walled garden play.google itunes.apple

Hi,

I have hotspot active and I would like to know the urls to add on walled garden to be able to download an App...

Android:
https://play.google.com/store/apps/deta ... .apps.maps

IOS:
https://itunes.apple.com/es/app/temple- ... 09108?mt=8

Can anyone help me ?

Thanks.
by oooscar
Tue Oct 20, 2015 8:25 am
Forum: Scripting
Topic: Autoconfigure
Replies: 6
Views: 1863

Re: Autoconfigure

Ok, seems difficult to do it. Terminal from mikrotik doesn't allow automations. Last thought could be a Little difficult but I don't know if it will Works. Because i want to update 5 mikrotiks at the same time could be possible to add a bridge to each Ethernet so, eth1-bridge1 (192.168.1.10), eth2-b...
by oooscar
Mon Oct 19, 2015 9:01 am
Forum: Scripting
Topic: Autoconfigure
Replies: 6
Views: 1863

Re: Autoconfigure

Thanks boen_robot, Good explanation. It s clear all you tell. I would like the be able to configure 5 routers at the same time. I mena plug 5 routers, script that runs every 5 min and then check neighbors and fire phpapi to connect 192.168.88.1 but all of them will be 192.168.88.1... Do you think is...
by oooscar
Mon Oct 19, 2015 12:04 am
Forum: Scripting
Topic: Autoconfigure
Replies: 6
Views: 1863

Autoconfigure

Hi all.... Last week I was on Madrid-MUM and one of the conferences was the auto configure with DHCP66 using mikrotik server and other device client. That make me think that I would like something similar and more easy that I wish to build. I usually have a auto configuration script let’s say load.r...
by oooscar
Mon Sep 28, 2015 5:00 pm
Forum: General
Topic: Hotspot auth with Radius Throw VPN
Replies: 2
Views: 645

Re: Hotspot auth with Radius Throw VPN

No one has tryied tu add a radius auth throw tunnel ?

Plase help !
by oooscar
Sun Sep 27, 2015 12:51 am
Forum: General
Topic: Hotspot auth with Radius Throw VPN
Replies: 2
Views: 645

Hotspot auth with Radius Throw VPN

Hi, at the moment I have mikrotik with hotspot and user identification throw radius. I have some problems with some ISP companies that block the radius protocol and hotspot is working but radius identification fails. I have tried to change the default radius ports but still not working. I'm thinking...
by oooscar
Tue Sep 15, 2015 3:55 pm
Forum: General
Topic: Router OS 6.25 double VPN
Replies: 0
Views: 538

Router OS 6.25 double VPN

Hi all, Actually I have about 200 mikrotiks in different locations. All this mikrotiks are running routeros 6.25. All this mikrotiks have two sstp-clients tunnels (master and backup) to a sstp-server at office. Because routerOs has a bug on 6.25 i have to keep 6.25 on both side client and server. Ot...
by oooscar
Wed Apr 08, 2015 12:15 pm
Forum: Scripting
Topic: :execute END
Replies: 4
Views: 974

Re: :execute END

Hi boen_robot , the main reason to do :execute "" is because i want to execute this script even on a RB with wireless and RB without WIRELESS. At the momento I have 2 scripts one for wireless RB and another for unwireless RB devices. I like to have one script for both models, but if I add /interface...
by oooscar
Tue Apr 07, 2015 6:45 pm
Forum: Scripting
Topic: :execute END
Replies: 4
Views: 974

:execute END

Hi I would like to know if there is a posibility to know when :execute function finished. If I don't wait 1 second after execute the script dosn't work because trys to add bridge on an interface not created by :execute yet.... :execute "/interface wireless security-profiles set [ find default=yes ] ...
by oooscar
Sat Mar 28, 2015 12:08 pm
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Hi again, I found this that makes really easy to upgrade lots of routers with no timeout.... Works great and is really easy to adapt to API calls. http://stackoverflow.com/questions/5533076/processing-large-amounts-of-data-in-php-without-a-browser-timeout I upgrade more than 100 routers to 6.25 and ...
by oooscar
Sun Mar 22, 2015 6:13 pm
Forum: The Dude
Topic: Can't make discover to work...
Replies: 0
Views: 1049

Can't make discover to work...

I just installed the dude (3.6) and now 4.0beta3. I have on the same network a mikrotik running 6.25 version. I can add the device manually on the Network maps -> Local But if I delete it and try to discover it doesn’t appears. Even if I add the router IP directly red scanner ... I have changed lots...
by oooscar
Sun Mar 22, 2015 11:46 am
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Hi, i will check wich is the best if running batch PHP or web PHP and prevent timeout. Will share when donne. Now I relise that first of all i have to upgrade more tan 100 rb951 to routerOS 6.25 before upgrade my scripts. I have 6.25 on my server... I use: /tool fetch url=http://www.xxxx.com/yyyy/ro...
by oooscar
Fri Mar 20, 2015 2:18 pm
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Good !! with the first solution was working $addRequest ->setArgument('numbers', '_SwB_Sinc') ->setArgument('source', iconv('UTF-8', 'windows-1252', preg_replace('~\R~u', "\r\n", $_SwB_Sinc)) ); But i like the delete part. Yes after doing to many exec calls it goes a bit slow. Even if i have to work...
by oooscar
Sun Mar 15, 2015 7:41 pm
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Yes, it was charset. But can't make working iconv. with this i send my script and comments with correct language: $client->setCharset( array( RouterOS\Communicator::CHARSET_REMOTE => 'windows-1252', RouterOS\Communicator::CHARSET_LOCAL => 'UTF-8' ) ); but if i change setCharset to: $_SwB_Sinc=iconv(...
by oooscar
Mon Mar 02, 2015 12:09 am
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

I'm getting the error: Fatal error: Maximum execution time of 30 seconds exceeded in D:\xampp\htdocs\apiMikrotik3\PEAR2_Net_RouterOS-1.0.0b5\src\PEAR2\Net\RouterOS\Communicator.php on line 222 when executing $util = new RouterOS\Util($client = new RouterOS\Client('192.168.90.253', xxx,xxx)); .... $a...
by oooscar
Tue Feb 24, 2015 3:34 pm
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Ok, then i can't use exec because the first thing I have to do to all may routers is upgrade an script (add a line to this script). The idea should be to delete the old script and create a new one with las version. I have still having problems with the variables php and router_os_scripts ($) : http:...
by oooscar
Sun Feb 22, 2015 2:02 am
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

That sounds good.... but where I idicate to set TEST_API source on your example ?

$util->setMenu('/system/script');
$util->exec('set TEST_API source="'. .....

What do you mean: single quotes, or NEWDOC ?
by oooscar
Sun Feb 22, 2015 12:51 am
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Thanks a lot ! The three options will help me. Now i'm starting to program the first upgrade and get an error. I have to upgrade a script line (will write all source script with exec) into all my routers. 1) When I use local variables that must begin with $ into RouterOS script PHP interpretes even ...
by oooscar
Sat Feb 21, 2015 7:17 pm
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Now i can test with both environments api_mt_include_1.6.php and PEAR2/Net/RouterOS Like you said both of them don't add carry-return: This code adds one line with the first two logs, carry return, and one line with next two logs..... $addRequest ->setArgument('name', 'TEST_API') ->setArgument('sour...
by oooscar
Sat Feb 21, 2015 3:29 pm
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

boen_robot, it is not working... on the mikrotik is only sent the first line when I add "\r\n" or "\n". Also i'm trying to configure PER2 into XAMPP localhost PC but can't make it working. I did download all the files Net_RouterOS-master\src\PEAR2\Net\RouterOS also download form other sources Autolo...
by oooscar
Sat Feb 21, 2015 1:55 am
Forum: Scripting
Topic: PHP API script add carriage return
Replies: 27
Views: 13155

Re: PHP API script add carriage return

Still the same problem.... trying to add a script with mikrotik API but carry return is not send.... The code works due ; but i would like to add diferents lines into script is it possible ? $API->write("/system/script/add",false); $API->write("=name=TEST_API",false); $command='=source=:local hh [:p...
by oooscar
Fri Feb 06, 2015 5:53 pm
Forum: General
Topic: Mikrotik Hotspot and IOS7 CNA problems
Replies: 31
Views: 28008

Re: Mikrotik Hotspot and IOS7 CNA problems

Normis, IOS 7/8 CNA is not like safari. No javascript, no cookies .... I've been trying with all of you: mikrotik supporters find a solution to handle this and you don't even try to understand us and give us the solution we need. We still buying mikroitk but not really happy with your help. Thanks a...
by oooscar
Tue Feb 03, 2015 4:31 pm
Forum: General
Topic: X-Forwarded-For
Replies: 3
Views: 1760

Re: X-Forwarded-For

How can active X-Forwarded-For.
I need to send the IP of the devices connected throw dhcp on the bridge.
I mean i have bridge with dhcp-server on wifi and need to send on X-Forwarded-For the device IP.

Thanks.
by oooscar
Sat Jan 31, 2015 6:19 pm
Forum: General
Topic: whatsapp
Replies: 3
Views: 2403

whatsapp

How we can block whatsapp from hotspot ? I tryed everything: 1) walled garden : denied *.whatspp.* 2) addredd list with all ips from whatsapp and firewall forward drop 3) DNS static www.whatsapp.net s.whatsapp.net.... to 10.1.23.0 (nowhere) 4) firewall drop everything but allways (before identified ...
by oooscar
Wed Dec 17, 2014 4:46 pm
Forum: Scripting
Topic: NetWatch three options - vote !!
Replies: 1
Views: 1082

Re: NetWatch three options - vote !!

No one ?

too easy or too difficult ?
by oooscar
Sat Dec 13, 2014 8:18 pm
Forum: Scripting
Topic: NetWatch three options - vote !!
Replies: 1
Views: 1082

NetWatch three options - vote !!

Hi all !! I have a hotspot system that redirects to my external host to login user and identify it throw radius server. Say that my web-identify-site is 91.xxx.xxx.xxx. If my site is offline due a maintenance or error I would like to disable hotspot to allow user connect internet without problems. S...
by oooscar
Wed Dec 10, 2014 1:25 am
Forum: Scripting
Topic: (SOLVED) Schedule ini time Random
Replies: 3
Views: 1653

(solved) Re: Schedule ini time Random

I did some work arround. I need differents numbers for each routers. So with Mac ETH1 and routerserial I generate diferents numbers. Then because I run Schedule every 5 minutes I generate time from 0:00 to 4:59 # Random star-time # Generar minutos aleatorios de 0:00 a 4:59 :local nMin; # 0..4 :local...
by oooscar
Sun Dec 07, 2014 9:18 pm
Forum: Scripting
Topic: (SOLVED) Schedule ini time Random
Replies: 3
Views: 1653

Re: Schedule ini time Random

Not really, i'm using RB951 ui 2hnd and the clock when reset device always de same jan/02/1970 00:00:00 If I run this script without specify time: /system scheduler add comment="Update Sincro" interval=5m name=_SwB_Sinc on-event=_SwB_Sinc \ policy=read,write,test On differents reset-configuration an...
by oooscar
Sun Dec 07, 2014 7:54 pm
Forum: Scripting
Topic: (SOLVED) Schedule ini time Random
Replies: 3
Views: 1653

(SOLVED) Schedule ini time Random

I used to config all my mikrotik's routers with a generic script. In this script I add an Schedule script to fetch info from URL and synchronize my router. Now I have more than 80 mikrotiks with this configuration and all of them fires the Schedule script on the SAME time minute second. This is the ...
by oooscar
Sun Nov 30, 2014 2:21 pm
Forum: General
Topic: Mikrotik-Recv-Limit. Not ending session when reached limit
Replies: 7
Views: 2277

Re: Mikrotik-Recv-Limit. Not ending session when reached lim

Hi, I have the same problem, setting radius limit does not work. Even I'm using Daloradius and until finish connection on mikrotik, radius doesn't accumulate bytes in or out on radius database. So i'm doing a work arround: SCRIPT that logout user if it download over the limit. If it trys to connect ...
by oooscar
Tue Nov 11, 2014 11:33 am
Forum: General
Topic: Limit hotspot only when active
Replies: 0
Views: 557

Limit hotspot only when active

Hi,

i read about limit rate limit on hotspot. But I would like to limit bandwith only when user is ACTIVE. I mean the login process showd be with out limitation. After identify user limit it.

Any example ?

Thank's
by oooscar
Sun Oct 19, 2014 10:06 pm
Forum: General
Topic: send me log
Replies: 1
Views: 524

send me log

Hi all, I m working usualli with rb 951... I have a script when router start that calls a custom php that send me an email. Some router restars for unexpected reason. I wold like to crate a logging file and send it.throw email on restart. What logging i should configure to know why it restars? Any e...
by oooscar
Fri Aug 01, 2014 8:23 pm
Forum: Scripting
Topic: file get utf-8
Replies: 2
Views: 1171

Re: file get utf-8

Thank's
by oooscar
Fri Aug 01, 2014 8:17 pm
Forum: General
Topic: SSTP Some times doesn't work....
Replies: 0
Views: 540

SSTP Some times doesn't work....

Hi, i have sstp connections problems with some clients. I have a SSTP server (CCR9) at office with arround 60 SSTP clients connected. Same scripts clients. With some clients i get connected (Running) SSTP but when i try to connect even ssh or winbox try to connect but once seems to be connected gets...
by oooscar
Fri Jul 18, 2014 11:16 pm
Forum: General
Topic: Script for all ROS versions
Replies: 6
Views: 1665

Script for all ROS versions

Hi, on the 6.14 realse: What's new in 6.14 (2014-Jun-06 15:34): *) sntp - 'mode' now is a read-only property, it is set to broadcast if no server ip address is specified; How to do a script that Works with all OS versions. I have a Script working with with <6.14: /system ntp client set unicast=yes e...
by oooscar
Thu Jun 26, 2014 11:18 pm
Forum: Scripting
Topic: file get utf-8
Replies: 2
Views: 1171

file get utf-8

I have a file with this content:
"L'HERA@DE#LAÉÀéà"

But when a read the file with script in the mikrotik:

:local content [/file get "file.html" contents]

content has: L'HERA@DE#LAÉÀéÃ

Is there any way to read file with UTF-8 codepage.

Thank's
by oooscar
Thu May 08, 2014 11:41 am
Forum: General
Topic: Mikrotik Hotspot and IOS7 CNA problems
Replies: 31
Views: 28008

Re: Mikrotik Hotspot and IOS7 CNA problems

Any addvance ?

Just want to know if there is any work arround CNA.

What I'd like is not to add Apple* URLS to avoid CNA.

What I'd like is hotspot -> REDIRECT myPHP --> Detect CNA whait return success and then it will
change to OK CNA button.

Pleas !
by oooscar
Sun Mar 30, 2014 3:02 pm
Forum: General
Topic: Hotspot bypass temporaly
Replies: 9
Views: 2950

Re: Hotspot bypass temporaly

rextended Karma added !! Thank's. Works nice. I add HTTPS because i'm working with certificates. A couple of cuestions: Why Works with both mac-cookies and cookies .. may only mac-cookes will be all right ? Why addresses-per-mac=2 ? one more: diferences between idle-timeout and keepalive-timeout ? D...
by oooscar
Wed Mar 26, 2014 4:42 pm
Forum: General
Topic: Hotspot bypass temporaly
Replies: 9
Views: 2950

Re: Hotspot bypass temporaly

Is not working for me. Test i've don. 1) Hotspot + No cookies + open status page=always connect wifi (in ip->hotspot-> hosts: shows mac) open browser-captive page-login (ip->hotspot-> active: shows mac) disconnect wifi in ip->hotspot-> hosts: desapear mac ip->hotspot-> active: desapear mac connect w...
by oooscar
Wed Mar 26, 2014 2:19 pm
Forum: General
Topic: Hotspot bypass temporaly
Replies: 9
Views: 2950

Re: Hotspot bypass temporaly

Hi,

thank's for the aswer....

I forgot to mention that i'm using Radius (DoloRadius) for users to Access.

This option you write may be only for mikrotik's users isn't it ?

Thank's a lot.
Oscar.
by oooscar
Wed Mar 26, 2014 12:28 pm
Forum: General
Topic: Hotspot bypass temporaly
Replies: 9
Views: 2950

Hotspot bypass temporaly

Hi everyone ! I have a hotpost running throw wifi. When someone attach to the wifi first time has to open navigator, get redirected to the captive portal log in with user and password and then gets internet. I'm working with cookies 3days. But when someone gets disconnected and come back has to open...
by oooscar
Thu Feb 27, 2014 5:43 pm
Forum: Scripting
Topic: How to use a global/local variables in hotspot servlet pages
Replies: 1
Views: 1545

Re: How to use a global/local variables in hotspot servlet p

Hi,
is an old post but .... is there anyone that knows it ? I need one variable on hotspot tan can define the HTML login page

Thank's.
Oscar.
by oooscar
Tue Feb 25, 2014 1:23 am
Forum: General
Topic: Remote Connection and more
Replies: 5
Views: 1448

Re: Remote Connection and more

Hi, following with VPN connections.... I allready setup a Windows 7 server and pptp-out connection with mikrotik to Windows 7, Status connected. Local Address : 192.168.100.12 Remote Adress 192.168.100.10. Ok on Windows 7 i can see new connection... Can't see properties, with ipconfig PPP RAS Ip: 19...
by oooscar
Mon Feb 24, 2014 10:33 pm
Forum: General
Topic: Hotspot SSL Popups Warnings
Replies: 2
Views: 1184

Re: Hotspot SSL Popups Warnings

Yes, with the captive portal when i intercept a page i know that is a security warning..... But I mean with a normal navigation, redirect from mikrotik dns (hotspot.yyyy.com) to login.yyyy.com and then link to a other page should not apear this warning. I tryed doing it with internet connection and ...
by oooscar
Mon Feb 24, 2014 1:48 pm
Forum: General
Topic: Hotspot SSL Popups Warnings
Replies: 2
Views: 1184

Hotspot SSL Popups Warnings

Hi, I have some installations runing with differents mikrotiks RB951 and RB2011 and hotspot. Hotspot Works with SSL certificats and a redirect page to http://login.yyyy.com. Hotspot DSN Name is hotspot.yyyy.com and i have installed into mikrotik hotspot.yyyy.com certificates from an oficial certifie...
by oooscar
Mon Feb 24, 2014 9:03 am
Forum: General
Topic: Mikrotik Hotspot and IOS7 CNA problems
Replies: 31
Views: 28008

Re: Mikrotik Hotspot and IOS7 CNA problems

Hi, still not success with the cna. I've tryied on rlogin.html and login.html this: $(if user-agent == CaptiveNetworkSupport) <HTML><HEAD><TITLE>Success1</TITLE></HEAD><BODY>Success1-$(user-agent)</BODY></HTML> $(elif user-agent == Mozilla) <HTML><HEAD><TITLE>Success2</TITLE></HEAD><BODY>Success2-$(...
by oooscar
Mon Feb 17, 2014 2:17 am
Forum: General
Topic: Mikrotik Hotspot and IOS7 CNA problems
Replies: 31
Views: 28008

Re: Mikrotik Hotspot and IOS7 CNA problems

Hi, is not working trying all the convinations with "" with '' with /1.0 with //1.0 .... But is not getting any difference. If I write only the HTML code with Success then the CNA is not opening. I've seen with openWRT the next behavior that i think is the BEST solution. 1) Connects WIFI 2) Open CNA...
by oooscar
Sat Feb 15, 2014 12:53 am
Forum: General
Topic: Remote Connection and more
Replies: 5
Views: 1448

Re: Remote Connection and more

Thank's a lot. 1) Continuing tan point. What's best... to configure all my routers ... Restore Backup (that some times does't work fine ... rename wlan1 with wlan2) or do an import (what about the mac?) Then i have to resotore with my configuration and assign a user to each router manually.... and t...
by oooscar
Fri Feb 14, 2014 10:41 pm
Forum: General
Topic: Remote Connection and more
Replies: 5
Views: 1448

Remote Connection and more

Hi everyone.... I've been working for a while with RouterOS and RB951-2n ... And I have some questions: 1) It's time to install diferents routers (more than 100) in diferents places. I wold like to know wich is the best option to get remote connection to all of them. I have a dinamic IP but solved w...
by oooscar
Fri Feb 07, 2014 10:13 am
Forum: General
Topic: Mikrotik Hotspot and IOS7 CNA problems
Replies: 31
Views: 28008

Re: Mikrotik Hotspot and IOS7 CNA problems

Yes i have two IPHONEs one with IOS 7.0 second with IOS 7.0.4 I was tryiing to get it working with the link-redirect but i don't know how to use a variable on mikrotik. My idea is (because i want to popup ONCE the iPhone window to tell user go to safari)--> i've seen it in other hotspots (don't know...
by oooscar
Fri Feb 07, 2014 2:49 am
Forum: General
Topic: Mikrotik Hotspot and IOS7 CNA problems
Replies: 31
Views: 28008

Re: Mikrotik Hotspot and IOS7 CNA problems

It doesn't work...... this user-agent == CaptiveNetworkSupport Nerver comes

I did

$(if user-agent == CaptiveNetworkSupport)

redirect pag1
$(else)
redirect pag2

$(endif)

in all devices redirects to pag2


Thank's
by oooscar
Mon Jan 13, 2014 9:28 am
Forum: General
Topic: how to allow FB only from hs profile ?
Replies: 3
Views: 1630

Re: how to allow FB only from hs profile ?

Hi, i'm using this urls and Works ok .... (may you can get out some of them). /ip hotspot walled-garden add dst-host=*.googleapis.com add dst-host=*.googleusercontent.com add dst-host=facebook.com add dst-host=*.facebook.com add dst-host=*.google-analytics.com add dst-host=*.google.com add dst-host=...
by oooscar
Mon Jan 13, 2014 9:20 am
Forum: Beginner Basics
Topic: HOTSPOT - issues with secure web pages.
Replies: 22
Views: 13381

Re: HOTSPOT - issues with secure web pages.

Hi, i'm looking for the same solution. With Mikrotik 951 2n and hotspot active when some user attach to the wifi and surf the net with a https:// an error apears and doesn't redirect to de login page. The redirection is working perfect with http:// Seams a bug that has to be fixed ? By the way, may ...