Community discussions

MikroTik App

Search found 26 matches

byDoubleDB
Tue Aug 15, 2023 10:34 am
Forum:General
Topic:Using a script to change IPSEC VPN Peer
Replies:2
Views:1106

Re: Using a script to change IPSEC VPN Peer

I'm also looking for a way to switch to different peers in case the current peer isn't ok. For now, maybe I'll add all peers that I want to connect to in: 1. Peers (disabled) 2. Identities Something like NordVPN-RO-10/11/12/etc I don't know if there is a way to monitor the ipsec tunnel itself (ping ...
byDoubleDB
Wed Jul 26, 2023 2:24 am
Forum:General
Topic:Socks server - gateway
Replies:0
Views:355

Socks server - gateway

Hey there.

Is there some (hacky) way to specify a gateway IP (force the traffic via a specific gateway) for socks server?
The gateway is in IPSec tunnel (NordVPN).

Regards,
DB
byDoubleDB
Fri Jul 14, 2023 4:12 pm
Forum:Scripting
Topic:Hotspot - Scripting support question
Replies:1
Views:673

Re: Hotspot - Scripting support question

Anyone ?

Is there a way to serve a custom html via the hotspot?
byDoubleDB
Sun May 21, 2023 12:22 pm
Forum:Scripting
Topic:Hotspot - Scripting support question
Replies:1
Views:673

Hotspot - Scripting support question

Hello, In regards to hotspot profile "on-login" scripting - is it possible to do conditional redirecting the user after login? I.e. to replace $(link-orig) with a different location? For example: :if ([:typeof $hasmac]="nil") do={ :if ($m ~ "^[0-9A-Fa-f][048Cc]") do={ /...
byDoubleDB
Tue May 09, 2023 6:23 pm
Forum:Scripting
Topic:Script - get item numbers
Replies:3
Views:586

Re: Script - get item numbers

Item numbers are only valid in the user interface, not in scripts. The numbers are generated when a "print" command is used and are only valid for that login session. To refer to items in scripts you always need to use [find ...], not item numbers. So, how do I pass the [find] to generate...
byDoubleDB
Tue May 09, 2023 5:17 pm
Forum:Scripting
Topic:Script - get item numbers
Replies:3
Views:586

Script - get item numbers

Hey guys, I'd like to create a comma-separated string containing the actual ***numbers*** of each elements (not the *An's) so I can then call /user-manager/user generate-voucher numbers= . . . . numbers_list ""; foreach i in=[/user-manager/user/find where disable...
byDoubleDB
Tue Sep 13, 2022 8:32 pm
Forum:General
Topic:Troubleshoot hotspot/webproxy related problems
Replies:1
Views:721

Re: Troubleshoot hotspot/webproxy related problems

Been having the exact same issues...

Either something SSL-related @ mikrotik's hotspot implementation isn't right, or we're not configuring it correctly...
byDoubleDB
Sat Sep 03, 2022 8:43 pm
Forum:Scripting
Topic:Check if string is contained in a file
Replies:4
Views:700

Re: Check if string is contained in a file

Which manufacturer is C2:7D:7D inside your csv?

Probably you do not understand what Locally administered bit on MAC is.
The random MAC generated must never have Locally administered bit set to 0.
Tested with all MAC addresses, got it.
byDoubleDB
Sat Sep 03, 2022 10:30 am
Forum:Scripting
Topic:Check if string is contained in a file
Replies:4
Views:700

Re: Check if string is contained in a file

Do not use CSV, just check if the Locally administered bit on MAC is set... Simpler than this... :if ("00:0C:48:AA:BB:CC"~"^[0-9A-Fa-f][048Cc]") do={ :put "Universal Unicast" } else={ :put "Not Universal Unicast" } Obviously you do not have any warranty than ...
byDoubleDB
Sun Aug 28, 2022 1:07 pm
Forum:Scripting
Topic:Check if string is contained in a file
Replies:4
Views:700

Check if string is contained in a file

Hello, Is it possible to use scripting to check if a string is contained within a .csv file? The idea is - I've downloaded an csv database containing mac vendor identifiers, for example: Mac Prefix,Vendor Name,Private,Block Type,Last Update E0:2B:96,"Apple, Inc.",false,MA-L,2020/04/09 . . ...
byDoubleDB
Sun Jul 24, 2022 2:08 am
Forum:Scripting
Topic:Hotspot cookie/active problem
Replies:17
Views:2101

Re: Hotspot cookie/active problem

apparently using user as a variable isn't such a good idea ....
byDoubleDB
Mon Jul 18, 2022 9:31 pm
Forum:Scripting
Topic:Hotspot cookie/active problem
Replies:17
Views:2101

Re: Hotspot cookie/active problem

They don't seem to be in a hurry to answer...
byDoubleDB
Mon Jul 18, 2022 12:02 pm
Forum:Scripting
Topic:Hotspot cookie/active problem
Replies:17
Views:2101

Re: Hotspot cookie/active problem

cookie remove [find where user=$user] active remove [find where user=$user] Still remove all cookies and all active users [...] It seems absurd to me that they delete everything ... the commands are clear. I believe it. Honestly I don't use the hotspot with the users inside the routerboard, but wit...
byDoubleDB
Mon Jul 18, 2022 11:54 am
Forum:Scripting
Topic:Hotspot cookie/active problem
Replies:17
Views:2101

Re: Hotspot cookie/active problem

Found your typo, now the script is:
Thanks, fixed
What's not fixed is that cookie/active still removes *all* entries, not just the ones needed.
Any ideas?
byDoubleDB
Mon Jul 18, 2022 10:13 am
Forum:Scripting
Topic:Hotspot cookie/active problem
Replies:17
Views:2101

Re: Hotspot cookie/active problem

Found your typo, now the script is: /ip hotspot :foreach i in=[user find where name!="admin" and name!="default-trial" and disabled=no] do={ :global EpochTime; :local epoch [$EpochTime]; :local ts [user get $i comment]; :local user [user get $i name]; :if ($ts!="") do={...
byDoubleDB
Sun Jul 17, 2022 3:14 am
Forum:Scripting
Topic:Hotspot cookie/active problem
Replies:17
Views:2101

Hotspot cookie/active problem

Hey gys... can someone tell me why this isn't working properly: Don't mind the EpochTime and Comments - they all working properly. :foreach i in=[ip hotspot user find where name!=admin and name!=default-trial and ! disabled ] do={ :global EpochTime; :local epoch [$EpochTime]; :local ts [ip hotspot u...
byDoubleDB
Tue Jul 05, 2022 7:51 pm
Forum:Scripting
Topic:Unable to set a local variable [SOLVED]
Replies:1
Views:736

Unable to set a local variable[SOLVED]

:local elem 0; :local firstsession ""; :foreach sessid in=[/user-manager/session/find where user=testuser] do={ if ($elem < 1) do={ :set $firstsession [/user-manager/session/get $sessid started]; :put message=("First session: ".$firstsession); # Works - shows "jun/11/2022 1...
byDoubleDB
Wed Jun 15, 2022 12:44 pm
Forum:Announcements
Topic:v7.3 and v7.3.1 [stable] is released!
Replies:269
Views:71727

Re: v7.3 and v7.3.1 [stable] is released!

热点是窃听,而不是正确地工作。ROS 7.3。1 IP->Hotspot only, no "User Manager". User added, Profile added, no limits on sessions / traffic. I connect with a testuser, run a speedtest - it completes normally. I run a 2nd speedtest after the first one - no internet, unable to open a...
byDoubleDB
Fri Jun 03, 2022 10:21 am
Forum:RouterOS beta
Topic:New User Manager in RouterOS v7
Replies:204
Views:69650

Re: New User Manager in RouterOS v7

Does anyone have any idea what else can be used within the "printable_vouchers.html" template besides $(username) and $(password) ?
Say, plan/profile name, validity, shared users, etc ?

I can't find anything about this @ the docs..
byDoubleDB
Sat Oct 16, 2021 3:08 am
Forum:Beginner Basics
Topic:Can't set up Google Home Mini [SOLVED]
Replies:4
Views:6507

Re: Can't set up Google Home Mini[SOLVED]

I'm also having troubles with a Google nest hub max.
它连接到路由器,但不显示我们ther / etc "widgets". If I connect it to another router - everything is fine.
What could this be?!?
uPNP is enabled but it does not open a port (nothing shows up in firewall as uPNP rule)
byDoubleDB
Tue Oct 05, 2021 9:47 am
Forum:General
Topic:DNS over HTTPS
Replies:258
Views:107422

Re: DNS over HTTPS

Okay... has anything been done about the total instability of DoH ?
My DNS completely disappears every 15-20 minutes. Tried everything I could think of - nothing helped......
byDoubleDB
Tue Sep 07, 2021 12:45 pm
Forum:General
Topic:/ip/cloud broken, domain mynetname.net expired and disabled
Replies:63
Views:19802

Re: /ip/cloud broken, domain mynetname.net expired and disabled

Has someone called MikroTik offices about this? ....
What is the phone number for office / support ? Maybe if we all start calling, they'll actually get around to fixing it...
byDoubleDB
Tue Sep 07, 2021 8:03 am
Forum:General
Topic:/ip/cloud broken, domain mynetname.net expired and disabled
Replies:63
Views:19802

Re: /ip/cloud broken, domain mynetname.net expired and disabled

Any official info on when will the service will be back ?
byDoubleDB
Fri Feb 21, 2020 2:04 pm
Forum:Beginner Basics
Topic:Help with VLAN setup
Replies:4
Views:2222

Re: Help with VLAN setup

Yes, everything worked as expected.

Thank you all.
byDoubleDB
Fri Feb 21, 2020 12:26 am
Forum:Beginner Basics
Topic:Help with VLAN setup
Replies:4
Views:2222

Re: Help with VLAN setup

Is that setup even possible?
Anyone?
byDoubleDB
Thu Feb 20, 2020 1:02 pm
Forum:Beginner Basics
Topic:Help with VLAN setup
Replies:4
Views:2222

Help with VLAN setup

Hello,

Device: HAP Ac2
I'm trying to make the following setup:
VLAN-Question.png

Can someone help with this?

Baidu
map