Community discussions

MikroTik App

Search found 12618 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 43
by rextended
Thu Jun 13, 2024 4:56 am
Forum: Scripting
Topic: Script to locate records referencing deleted entities
Replies: 1
Views: 118

Re: Script to locate records referencing deleted entities

Not directly....

Export,
delete interface
export again,
compare files differencies...
by rextended
Wed Jun 12, 2024 5:55 pm
Forum: Scripting
Topic: Script Execution Error - Dynu.com 7.13 was fine 7.15 no bueno
Replies: 14
Views: 638

Re: Script Execution Error - Dynu.com 7.13 was fine 7.15 no bueno

The fundamental problem of the OP who followed a guide done with the feet... Since users copy-and-paste without even realizing what they are doing, it is obvious that if the beginning of the script itself is wrong, everything else is useless. /system script add name=Dynu policy=read,write,test :glob...
by rextended
Wed Jun 12, 2024 3:16 pm
Forum: Scripting
Topic: Script Execution Error - Dynu.com 7.13 was fine 7.15 no bueno
Replies: 14
Views: 638

Re: Script Execution Error - Dynu.com 7.13 was fine 7.15 no bueno

The function would look better and be easier internally if hostname does not have to be specified as the first parameter. I would suggest entering the parameter as host=".." which would also be specifiable in any position... Consistency is better... Also is nice if RegEx (I have already po...
by rextended
Tue Jun 11, 2024 4:47 pm
Forum: Scripting
Topic: Sending a HTTP request on schedule
Replies: 3
Views: 204

Re: Sending a HTTP request on schedule

Use netwatch;
Looks like on RouterOS v6 it can only do ICMP, and I first need to upgrade to v7.
Sorry, I do not notice "6.49.15" version on picture
by rextended
Tue Jun 11, 2024 10:18 am
Forum: Scripting
Topic: Sending a HTTP request on schedule
Replies: 3
Views: 204

Re: Sending a HTTP request on schedule

Use netwatch;
if you use url="https://..." mode=https is unnecessary
you must install certs, if you want check https, for default no certs are installed.
by rextended
Tue Jun 11, 2024 9:57 am
Forum: Scripting
Topic: A few undocumented operators that are kind of neat.
Replies: 1
Views: 1045

Re: A few undocumented operators that are kind of neat.

Sorry for delay, I do not notice this post before,
very good job, thanks.
by rextended
Tue Jun 11, 2024 9:45 am
Forum: Scripting
Topic: CHR routerboard command not availble anymore [SOLVED]
Replies: 5
Views: 2789

Re: CHR routerboard command not availble anymore [SOLVED]

No logic on check what do not exist. true when is a routerboard :put ([/system resource get board-name] != "CHR") From RouterOS 7.15 system resource get board-name includes also the virtualization platform like "CHR VMware, Inc. VMware Virtual Platform", so I've update the check...
by rextended
Wed Jun 05, 2024 2:59 pm
Forum: Wireless Networking
Topic: Capsman and iPhone 15 problem
Replies: 8
Views: 444

Re: Capsman and iPhone 15 problem

the problem occurs only with the latest iPhone 15
Have you contected Apple support?
by rextended
Wed Jun 05, 2024 2:57 pm
Forum: Scripting
Topic: RouterOS V7 - DNS Cache to Address list based on keywords
Replies: 1
Views: 229

Re: RouterOS V7 - DNS Cache to Address list based on keywords

For each result for the keyword, just place the DNS name on address-list if it not already exist.

RouterOS keep IPs updated on address-list.
by rextended
Tue Jun 04, 2024 3:42 am
Forum: Scripting
Topic: The issue of a function containing variables unsuccessfully.
Replies: 15
Views: 760

Re: The issue of a function containing variables unsuccessfully.

missing something and/or too much "/"....
:global DisableNatDns do={/ip firewall nat set [find where comment~"hack_dns"] disabled=$1}
by rextended
Tue Jun 04, 2024 3:00 am
Forum: Scripting
Topic: The issue of a function containing variables unsuccessfully.
Replies: 15
Views: 760

Re: The issue of a function containing variables unsuccessfully.

:global FirewallNatAction do={ :global actionValue; :set actionValue $actionValue; :put $actionValue :execute "/ip firewall nat $actionValue [find comment~\"hack_dns\"]" as-string } $FirewallNatAction actionValue=enable /ip firewall nat disable [find where comment~"hack_dns...
by rextended
Tue Jun 04, 2024 2:52 am
Forum: Scripting
Topic: calculate date from days variable
Replies: 4
Views: 270

Re: calculate date from days variable

extract code

    :local daysOnMnt [:toarray "31,28,31,30,31,30,31,31,30,31,30,31"]
    :if ((($yyyy - 1968) % 4) = 0) do={:set ($daysOnMnt->1) 29}
by rextended
Tue Jun 04, 2024 2:39 am
Forum: Scripting
Topic: Script - Cert name to Variable
Replies: 2
Views: 265

Re: Script - Cert name to Variable

This is not a support forum, is an hour wait on a Saturday afternoon too long?
by rextended
Fri May 31, 2024 11:37 pm
Forum: General
Topic: How long does it take for MT tech support to respond?
Replies: 22
Views: 3131

Re: How long does it take for MT tech support to respond?

yarimwilliamsrobert is only one mthrf***r spammer, has hidden link on his post: [ quote=yarimwilliamsrobert post_id=1078230 time=1717177192 user_id=210769] The support is just luv and responds in time[ url=htt ps://fint<CENSORED>-pro.com/ ].[/url ] [/quote ] Obviously I censored the link. Anyone rep...
by rextended
Fri May 31, 2024 11:08 pm
Forum: Scripting
Topic: Script not running
Replies: 5
Views: 370

Re: System Script not running

Have you even read this? https://wiki.mikrotik.com/wiki/Manual:Scripting Does the very simple example seem consistent with what you wrote? :global aaa {a=1;b=2} :put ($aaa->"a") :put ($aaa->"b") First of all, immediately lose the habit of writing parentheses and semicolons haphaz...
by rextended
Fri May 31, 2024 6:58 pm
Forum: Scripting
Topic: check that the username and others variable are valid
Replies: 4
Views: 510

Re: check that the username variable is valid

Create separate pvalid function like

example code

:global pvalid do={
    #all characters are valid, from [SPACE] to "~" except unsupported from RouterOS
    :if ($1~"[\01-\19\7F-\FF]") do={ return false }
    :return true
}
by rextended
Thu May 30, 2024 8:08 pm
Forum: Scripting
Topic: delete address list old than 7 days
Replies: 26
Views: 10997

Re: delete address list old than 7 days



You have to follow the right path.
/ip firewall address-list remove [find where (creation-time<[/system/clock/get time] and list=test)]
It works, thanks!
Not done, but close...
creation-time is "date time", get time is only... time....
by rextended
Thu May 30, 2024 1:47 pm
Forum: Scripting
Topic: check that the username and others variable are valid
Replies: 4
Views: 510

Re: check that the username variable is valid

https://forum.mikrotik.com/viewtopic.php?p=1020866#p1020866 Instead of lost time to identify unsupported RouterOS characters (from 0x80 to 0xFF) or invalid / not printable / with problems, simply: :global uvalid do={ # \2D = - # \2E = . # \30..\39 = 0..9 # \40 = @ # \41 .. \5A = A..Z # \5F = _ # \61...
by rextended
Thu May 30, 2024 12:54 pm
Forum: Scripting
Topic: mikrotik events script New abroach
Replies: 10
Views: 926

Re: mikrotik events script New abroach

Imagine, if RouterOS were open source, what four or five users, who are already here on the forum, could do with it...
by rextended
Wed May 29, 2024 7:08 pm
Forum: Scripting
Topic: Empty $leaseActIP in DHCP script
Replies: 5
Views: 431

Re: Empty $leaseActIP in DHCP script

The user didn't specify where, so your suggestions might be wrong... You do only confusion dhcp-server is not dhcp-client leaseBound is not bound leaseActIP is not lease-address :if ($leaseBound=1) do={ :log info "DHCP lease ready: $leaseActIP" } :if ($bound=1) do={ :log info "DHCP le...
by rextended
Wed May 29, 2024 7:03 pm
Forum: Scripting
Topic: delete address list old than 7 days
Replies: 26
Views: 10997

Re: delete address list old than 7 days

too brainy...
with routeros 7 everything can be done with just one command line...
"/ip firewall address-list remove [find where (creation-time<$daysago and list=$theList)]"
"<" - this does not work (7.14.3)
You have to follow the right path.
by rextended
Wed May 29, 2024 6:47 pm
Forum: Scripting
Topic: mikrotik events script New abroach
Replies: 10
Views: 926

Re: mikrotik events script New abroach

What I've never been able to do with the syntax here is exit out of the "print follow-only"... Why did not you ask the Cat? /ip firewall layer7-protocol remove [find where name=123321 or name=654654] :global jobID *0 :global EventHandler do={ /log info "On $1 is added a new item $2&q...
by rextended
Tue May 28, 2024 12:57 am
Forum: Scripting
Topic: mikrotik events script New abroach
Replies: 10
Views: 926

Re: mikrotik events script New abroach

BRAVO. Finally something innovative, instead of the usual bullshit. But try to write better scripts anyway... I use layer7-protocol instead of the hotspot, for the example. Work on both v6 and v7 :global EventHandler do={ /log info "On $1 is added a new item $2" :return 0 } :execute { :glo...
by rextended
Tue May 28, 2024 12:36 am
Forum: Scripting
Topic: Empty $leaseActIP in DHCP script
Replies: 5
Views: 431

Re: Empty $leaseActIP in DHCP script

You do only confusion

dhcp-server is not dhcp-client
leaseBound is not bound
leaseActIP is not lease-address
by rextended
Mon May 27, 2024 1:47 am
Forum: Scripting
Topic: script to save current date and time in text file
Replies: 13
Views: 976

Re: script to save current date and time in text file

too many useless steps...
as I already said, just create the file, and then re-read the time and date of the file,
without wasting time writing and reading inside the file...
by rextended
Mon May 27, 2024 1:45 am
Forum: Scripting
Topic: delete address list old than 7 days
Replies: 26
Views: 10997

Re: delete address list old than 7 days

too brainy...
with routeros 7 everything can be done with just one command line...
by rextended
Sat May 25, 2024 11:08 am
Forum: General
Topic: LOG show to much info ver 7.14.3 [SOLVED]
Replies: 6
Views: 798

Re: LOG show to much info ver 7.14.3 [SOLVED]

you must alter the original info adding in that !wireguard , not create another log with only !wireguard.... If you create !wireguard entry, all except wireguard are logged, so debug, calc, and other frills are logged. paste that on terminal to revert logging system to default, with info/wiregard lo...
by rextended
Fri May 24, 2024 10:46 am
Forum: General
Topic: LOG show to much info ver 7.14.3 [SOLVED]
Replies: 6
Views: 798

Re: LOG show to much info ver 7.14.3 [SOLVED]

Simply add !debug to your personalized log rule.

I never dealed with system/logging
That's not true, for sure.
The default rules do not make "debug" logs, so someone, probably you, added "routing" to the logs, without the foresight of also putting !debug.
by rextended
Fri May 24, 2024 10:43 am
Forum: Scripting
Topic: script to save current date and time in text file
Replies: 13
Views: 976

Re: script to save current date and time in text file

Hello i want script to save current date and time in text file and another script to restore date and time from this text file after reboot How do you know the date is right when you save the file? The fact that you create the file already assigns it the current date and time, so in recovery just r...
by rextended
Tue May 21, 2024 10:43 pm
Forum: Scripting
Topic: Need Help with MikroTik Script for Matching and Storing Patterns
Replies: 4
Views: 432

Re: Need Help with MikroTik Script for Matching and Storing Patterns

the find result everytime is != ""
or is a number, or is nil
you must check only if the find return a number, and that number is the index of the string in the array.
by rextended
Sat May 18, 2024 11:28 am
Forum: Scripting
Topic: Ready variable from file.rsc [SOLVED]
Replies: 8
Views: 2119

Re: Ready variable from file.rsc [SOLVED]

If the file has globals, you can actually just use ":import <file>" to read them from a file. Bad idea use import , on any case. Add between "global"s /user group add name=fullcontrol policy=local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,a...
by rextended
Wed May 15, 2024 1:02 am
Forum: Scripting
Topic: my script gets data running in terminl but not from system scripts
Replies: 9
Views: 581

Re: my script gets data running in terminl but not from system scripts

Your fault, never use "fixed" number inside scripts, like "get 1" or similar.
by rextended
Mon May 13, 2024 7:22 pm
Forum: General
Topic: Wrong country when selecting Time Zone Autodetect
Replies: 23
Views: 2257

Re: Wrong country when selecting Time Zone Autodetect

How often does the device change countries/time zones during normal use?
by rextended
Fri May 10, 2024 7:25 pm
Forum: General
Topic: Wrong country when selecting Time Zone Autodetect
Replies: 23
Views: 2257

Re: Wrong country when selecting Time Zone Autodetect

Some features, for me, are completely useless.
How often does the device change countries/time zones during normal use?

Turning off auto detection also makes less useless "home calls"...
by rextended
Fri May 10, 2024 7:22 pm
Forum: Scripting
Topic: Access to $defconfWifiPassword from run after reset script
Replies: 1
Views: 308

Re: Access to $defconfWifiPassword from run after reset script

You can read it only on permanent netinstall scripts, not on run-after-reset.
by rextended
Thu May 09, 2024 12:04 pm
Forum: Announcements
Topic: Long range wireless links - share your experience
Replies: 50
Views: 47223

Re: Long range wireless links - share your experience

Remaining within European regulations, a link made in a perfect way (no mind the producer), at 30km, would have a signal of around -79dB in good weather, -88 in light drizzle... So unless you break the law, there's no point in expecting anything good. I repeat: With any producer, remaining within th...
by rextended
Wed May 08, 2024 8:55 pm
Forum: Scripting
Topic: Functions and function parameters
Replies: 54
Views: 104564

Re: Functions and function parameters

now it's ok, I found the solution https://forum.mikrotik.com/viewtopic.php?t=197800 I put ':put' and everything works For avoid useless print, like { :local func do={ :return [:nothing] } :put "run test1" :put [$func domainName=123] :put "run test2" :put [$func domainName=223] :...
by rextended
Wed May 08, 2024 7:11 pm
Forum: Scripting
Topic: log entry and action when occurs [SOLVED]
Replies: 4
Views: 4181

Re: log entry and action when occurs [SOLVED]

search better on forum, some of my script do not catch twice the same log, only new added log..... https://forum.mikrotik.com/viewtopic.php?p=1051243#p1051243 :global lastLog :if ([:typeof $lastLog] != "num") do={:set lastLog 0} { :local id2num do={:return [:tonum "0x$[:pick $1 1 [:le...
by rextended
Wed May 08, 2024 7:08 pm
Forum: Scripting
Topic: Simple MAC List fetch into array into IP Binding
Replies: 1
Views: 284

Re: Simple MAC List fetch into array into IP Binding

use json format inside the file, and appropriate routeros commands for manage json
by rextended
Wed May 08, 2024 6:57 pm
Forum: Announcements
Topic: Long range wireless links - share your experience
Replies: 50
Views: 47223

Re: Long range wireless links - share your experience

Mind you, other than non-standard illegal amateur work, you can't expect anything good in terms of bandwidth from a 30km 5GHz link. This is why the maximum connection distance I make is less than 16km. When I need more distance, I use licensed Ceragon products on 13 / 18 GHz. PS: AF60-LR 5Km 1.9Gbps...
by rextended
Mon May 06, 2024 1:58 pm
Forum: Scripting
Topic: Change word in comment
Replies: 11
Views: 2792

Re: Change word in comment

Useless info if you not provide what you have done, since the example change ethernet comment, not user hotspot comment.
by rextended
Sat May 04, 2024 2:06 am
Forum: Wireless Networking
Topic: Guide: Enable Wave2 on RB4011 WITH both 5GHz and 2,4GHz working simultaneously
Replies: 6
Views: 713

Re: Guide: Enable Wave2 on RB4011 WITH both 5GHz and 2,4GHz working simultaneously

The cat complains about the added bullshit, not that he did well or not to "share a method", which then doesn't work... https://forum.mikrotik.com/viewtopic.php?p=1072906#p1072888 The original first post ,except for the text formatting. There is a way to have both drivers simultaneously in...
by rextended
Thu May 02, 2024 2:38 pm
Forum: Beginner Basics
Topic: Unable to block YOUTUBE,FAEBOOK,...
Replies: 4
Views: 423

Re: Unable to block YOUTUBE,FAEBOOK,...

Another topic on the same thing...
Use the SEARCH function on the forum: it is full of this type of topic...

And as usual the answer is: It cannot be done permanently,
and everyone responds just to have fun objecting pointlessly about this thing.
by rextended
Thu May 02, 2024 10:57 am
Forum: Wireless Networking
Topic: Guide: Enable Wave2 on RB4011 WITH both 5GHz and 2,4GHz working simultaneously
Replies: 6
Views: 713

Re: Guide: Enable Wave2 on RB4011 WITH both 5GHz and 2,4GHz working simultaneously

But do you realize that you are writing in the official MikroTik forum and that you can't even decide what it does or doesn't do if the user reads what you wrote on the forum? You cannot use the forum to enforce your licenses. Ridiculous. These instructions that follow are under strict copyright lic...
by rextended
Tue Apr 30, 2024 3:30 pm
Forum: General
Topic: cache full, not storing since 7.14
Replies: 18
Views: 5031

Re: cache full, not storing since 7.14

The default firewall rules dropping all on input at the end, so if not allowed before, nothing is allowed after. If you write "If my memory serves me well " it is because you have deleted the default rules, so you cannot recheck them, sinning of pride. v6, but are like the same for v7 http...
by rextended
Tue Apr 30, 2024 12:50 pm
Forum: General
Topic: Unsquashfs
Replies: 7
Views: 650

Re: Unsquashfs

Of course. If the equipment is yours, I don't see any problem. You bought the device (hardware), but NOT the software, you do not have the right to reverse engineering it. It's more than obvious. If you need the source of the "public" parts just ask MikroTik, but you have no rights to the...
by rextended
Tue Apr 30, 2024 12:45 pm
Forum: General
Topic: cache full, not storing since 7.14
Replies: 18
Views: 5031

Re: cache full, not storing since 7.14

Hello, I had the same issue and solved it by setting a firewall rule to block outside requests on port 53 UDP, The MK DNS server was acting as a public DNS server. Your failure: As usual, in this cases, either you configured the firewall badly, or thinking you were the smartest you deleted the defa...
by rextended
Mon Apr 29, 2024 2:56 pm
Forum: General
Topic: date format in console
Replies: 2
Views: 381

Re: date format in console

Just read the warnings on the forum...
viewtopic.php?t=196072
by rextended
Mon Apr 29, 2024 2:54 pm
Forum: General
Topic: Unsquashfs
Replies: 7
Views: 650

Re: Unsquashfs

The purpose of this unsquashfs?

Is it legal to reverse engineer routeros?
by rextended
Mon Apr 29, 2024 2:37 pm
Forum: Scripting
Topic: Unexpected behavior when finding by variable value
Replies: 6
Views: 571

Re: Unexpected behavior when finding by variable value

Is it now? (*) idiotic != allowed idiotic <> allowed ... internal code for /ip add find where address =$ address (eval /ip address find where=$address;$network;$netmask;$broadcast;$interface;$actual-interface;$invalid;$dynamic;$disabled;$comment;$.id;$.nextid;$.dead;(= $address $address);5) (= item...
by rextended
Mon Apr 29, 2024 2:01 am
Forum: Scripting
Topic: Unexpected behavior when finding by variable value
Replies: 6
Views: 571

Re: Unexpected behavior when finding by variable value

comment =$ comment ??? Is not one "Unexpected behavior", it is always idiotic to call variables with the same name as fields, and this is true in all programming languages(*). # code not fixed / optimized, except for the variable name { :put ("HARDCODED: " . [/ip firewall filter...
by rextended
Fri Apr 26, 2024 7:24 pm
Forum: Scripting
Topic: "my script does not work" in v7.10
Replies: 5
Views: 503

Re: "my script does not work" in v7.10

https://forum.mikrotik.com/viewtopic.php?t=196072 stop spam on forum the script is really shitty, this is what you want, but still shitty. :local dateint do={ :local days [ :pick $d 8 10 ]; :local month [ :pick $d 5 7 ]; :local year [ :pick $d 0 4 ]; :return [:tonum ("$year$month$days")]; ...
by rextended
Fri Apr 26, 2024 3:12 pm
Forum: RouterBOARD hardware
Topic: mikrotik mUPS?
Replies: 14
Views: 1315

Re: mikrotik mUPS?

The discontinued MikroTik product is not the best for do that, and do not have any battery inside...
You read the instruction?
For example, the product do not convert 12V input (from battery) to 24V PoE-out when DC/PoE-in is lost.
by rextended
Fri Apr 26, 2024 12:36 pm
Forum: Scripting
Topic: Schedule
Replies: 5
Views: 471

Re: Schedule

I add a comment to each line, now is more clear.......... What's wrong with that suggestion? Imo, it's simple and easy to understand. Is untested and do not work (ignoring the "..." ), and do not work on all v6 / v7.10- / 7.10+ , since the OP do not specify the version. is less readable an...
by rextended
Fri Apr 26, 2024 10:15 am
Forum: Scripting
Topic: Schedule
Replies: 5
Views: 471

Re: Schedule

:if (11 = [:pick begin=8 end=10 [/system/clock/get date as-string]] do={...} else={...}
Fun...

Don't write things at random or made up from who knows what, and at least try them before writing them on the forum.
by rextended
Fri Apr 26, 2024 10:10 am
Forum: Scripting
Topic: Schedule
Replies: 5
Views: 471

Re: Schedule

Please , when you open a topic, give it a relevant title , otherwise if all the topics on the scheduler were called "Scheduler" you know what a mess. Schedule something each day, and on sceduler on on-event : # create a function getday that return the current day set on RouterOS, as numbe...
by rextended
Wed Apr 24, 2024 3:46 pm
Forum: General
Topic: RouterOS 7 can't edit dynamic object
Replies: 18
Views: 1870

Re: RouterOS 7 can't edit dynamic object

It is useless to continue on this plan, for 3 reasons: The first is that in your case you use the wrong tools and try to modify something that is used for something else to do something that you do in the wrong way; The second is that dynamic rules are dynamic, assigning them other values or disabli...
by rextended
Wed Apr 24, 2024 2:42 pm
Forum: Scripting
Topic: How to use fetch tool with IPv6
Replies: 9
Views: 792

Re: How to use fetch tool with IPv6

It was just meant to be a temporary solution...
Like the others that I have proposed over time and it took years to integrate them into RouterOS...
by rextended
Wed Apr 24, 2024 2:18 pm
Forum: General
Topic: RouterOS 7 can't edit dynamic object
Replies: 18
Views: 1870

Re: RouterOS 7 can't edit dynamic object

@rextended - please, checkout the updates to my previous comment
the same you...


Given what you added (on post #6), I'd better remove myself from this discussion...
by rextended
Wed Apr 24, 2024 2:12 pm
Forum: General
Topic: RouterOS 7 can't edit dynamic object
Replies: 18
Views: 1870

Re: RouterOS 7 can't edit dynamic object

Those rules are there to make the hotspot work.

Why you need hotspot?

If you don't need the hotspot, disable it.
If you not need the hotspot just for the tv, set it bypassed on hotspot ip bindings.

Are you trying to peel potatoes with a pencil?
You're using the wrong tool...
by rextended
Wed Apr 24, 2024 1:18 pm
Forum: Scripting
Topic: How to use fetch tool with IPv6
Replies: 9
Views: 792

Re: How to use fetch tool with IPv6

{ /ipv6 firewall address-list add address=api.myip.com list=api.myip.com :delay 2s :local ipv6add ([/ipv6 firewall address-list print as-value where comment="api.myip.com"]->0->"address") :set ipv6add [:pick $ipv6add 0 [:find $ipv6add "/" -1] ] :put [/tool fetch host=a...
by rextended
Tue Apr 23, 2024 2:09 pm
Forum: Beginner Basics
Topic: invalid mtu 1492 on pppoe-out1
Replies: 5
Views: 643

Re: invalid mtu 1492 on pppoe-out1

17.14.2 ??????????? Ask your provider to provide correct MTU of 1500 on pppoe. C:\Windows>mtupath -4 google.it MTU path scan to google.it (142.251.143.163), ttl=64, limit=48 # 16 processing - best MSS 1472 (estimated MTU 1500) [pPPPPpPppPpppppp] # 01 nearest minimum MTU on local interface #1 MSS IN...
by rextended
Tue Apr 23, 2024 2:05 pm
Forum: Beginner Basics
Topic: Addlist/DNS Blocking Problem
Replies: 4
Views: 555

Re: Addlist/DNS Blocking Problem

I do not see on your post any word related to MikroTik or RouterOS.
by rextended
Mon Apr 15, 2024 11:31 pm
Forum: Virtualization
Topic: CHR ARM64 images are broken? [SOLVED]
Replies: 22
Views: 4221

Re: CHR ARM64 images are broken? [SOLVED]

Also missing "bootloader" at the start of the image.... FA 31 C0 8E D0 BC 00 7C 89 E6 50 07 50 1F FB FC BF 00 06 B9 00 01 F2 A5 EA 1D 06 00 00 BE BE 07 B3 04 80 3C 80 74 23 80 3C 00 75 09 83 C6 10 FE CB 75 EF CD 18 BE 9B 06 AC 3C 00 74 0B 56 BB 07 00 B4 0E CD 10 5E EB F0 EB FE 8B 14 8B 4C ...
by rextended
Mon Apr 15, 2024 11:04 pm
Forum: Virtualization
Topic: CHR ARM64 images are broken? [SOLVED]
Replies: 22
Views: 4221

Re: CHR ARM64 images are broken? [SOLVED]

Unquestionably 0.RouterOS Boot map 0.RouterOS Boot\EFI (empty) 0.RouterOS Boot\EFI\BOOT BOOTX64.EFI 0.RouterOS Boot\lost+found (empty) 1.RouterOS SHOW_LICENSE UPGRADED 1.RouterOS\[SYS] Journal 1.RouterOS\bin bash milo 1.RouterOS\boot (empty) 1.RouterOS\dev bootdev bootpart 1.RouterOS\lost+found (emp...
by rextended
Mon Apr 15, 2024 10:27 pm
Forum: Virtualization
Topic: CHR ARM64 images are broken? [SOLVED]
Replies: 22
Views: 4221

Re: CHR ARM64 images are broken? [SOLVED]

https://wiki.mikrotik.com/wiki/Manual:CHR_Hetzner 32 curl -L https://cdn.mikrotik.com/routeros/7.15beta9/chr-7.15beta9.img.zip | funzip | dd of=/dev/sda bs=1M 64 curl -L https://cdn.mikrotik.com/routeros/7.15beta9/chr-7.15beta9-arm64.img.zip | funzip | dd of=/dev/sda bs=1M Inside the image file are ...
by rextended
Mon Apr 15, 2024 10:11 pm
Forum: Scripting
Topic: CHR routerboard command not availble anymore [SOLVED]
Replies: 5
Views: 2789

Re: CHR routerboard command not availble anymore [SOLVED]

No logic on check what do not exist.

true when is a routerboard
:put ([/system resource get board-name] != "CHR")
by rextended
Mon Apr 15, 2024 9:49 pm
Forum: Useful user articles
Topic: How to: Edge router and BNG optimization for ISPs Topic is solved
Replies: 68
Views: 93994

Re: How to: Edge router and BNG optimization for ISPs Topic is solved

grrrrrr.... SBIOO :) We are closer than I thought...
by rextended
Mon Apr 15, 2024 7:51 pm
Forum: Useful user articles
Topic: How to: Edge router and BNG optimization for ISPs Topic is solved
Replies: 68
Views: 93994

Re: How to: Edge router and BNG optimization for ISPs Topic is solved

You are Italian or is trasmitted outside the Italy? To be precise, it is allowed when it is cold, at any time, in summer only from 11pm to 11am... :lol: The " crimes of the glimmerbar " are always set in summer.. "barlume", mean glimmer on Italian but at the same time "bar&q...
by rextended
Mon Apr 15, 2024 10:40 am
Forum: Virtualization
Topic: CHR ARM64 images are broken? [SOLVED]
Replies: 22
Views: 4221

Re: CHR ARM64 images are broken? [SOLVED]

Wrong comparison method from the start. Especially because you haven't even explained well what you're comparing and where you downloaded the files from, what procedure did you use, etc., etc., etc. You've definitely made some mistakes or the file you're checking is a corrupt or incomplete download....
by rextended
Sun Apr 14, 2024 11:34 am
Forum: Useful user articles
Topic: How to: Edge router and BNG optimization for ISPs Topic is solved
Replies: 68
Views: 93994

Re: How to: Edge router and BNG optimization for ISPs Topic is solved

Strange... They gave you a rip-off...
My network of radios licensed for hundreds of € doesn't care if it transits IPv4 or IPv6, since it only works on layer 2...
I think it's you they sold the toys to...
by rextended
Sat Apr 13, 2024 12:43 am
Forum: Scripting
Topic: Fetching a file regardless of name
Replies: 0
Views: 592

Re: Fetching a file regardless of name

Two very bad errors: fetsh do not download all files magically, only one file at time, and "find" inside name is like ChatGPT idiocy. do not install all .npk on the device... just because the file exist... and do not reinvent the weel: original filenames already have architecture name insi...
by rextended
Fri Apr 12, 2024 6:13 pm
Forum: General
Topic: Issue with Auto Upgrade / packages from another MikroTik device
Replies: 5
Views: 2303

Re: Issue with Auto Upgrade / packages from another MikroTik device

Shouldnt you be using `/system/package/update/check-for-updates` and `/system/package/update/download` ? Or is that v7 only?
Before answering, make sure you are talking about the same topic, obviously NOT.
by rextended
Fri Apr 12, 2024 6:10 pm
Forum: General
Topic: dst-address-list negation do not work in firewall rule
Replies: 3
Views: 432

Re: dst-address-list negation do not work in firewall rule

1) on doubt, use winbox,
2) if traffic is on bridge fasted from something, the firewall do not see the traffic.
by rextended
Fri Apr 12, 2024 6:01 pm
Forum: Scripting
Topic: Script SMS forward sms
Replies: 7
Views: 1489

Re: Script SMS forward sms

use search function on forum, replace send email with send sms
by rextended
Fri Apr 12, 2024 5:30 pm
Forum: Scripting
Topic: Netwatch down script can't email
Replies: 4
Views: 611

Re: Netwatch down script can't email

Send email on status up instead of on status down.
When go down memorize the datetime in a global variable,
when up send mail with the global variable value
by rextended
Fri Apr 12, 2024 5:22 pm
Forum: Scripting
Topic: foreach log message
Replies: 1
Views: 318

Re: foreach log message

The script is full of error.
Eg.
where .. or where
} closed too early
set $cont
by rextended
Tue Apr 09, 2024 5:28 pm
Forum: Scripting
Topic: Saving file package version in a variable [SOLVED]
Replies: 5
Views: 2596

Re: Saving file package version in a variable [SOLVED]

the file is called .npk?
why you use () ???
by rextended
Tue Apr 09, 2024 10:04 am
Forum: Scripting
Topic: Script to turn off and turn on the router automatically
Replies: 13
Views: 4790

Re: Script to turn off and turn on the router automatically

Why write this thing? Once turned off you have to go and turn it on "manually", there is nothing automatic in the RouterBOARD that, once turned off, makes it turn on again, or must be find a UPS to which RouterOS can sends commands like "now turn me off and turn me back on when the p...
by rextended
Fri Apr 05, 2024 4:33 pm
Forum: Scripting
Topic: Updating CA root certs regularly [SOLVED]
Replies: 2
Views: 2506

Re: Updating CA root certs regularly [SOLVED]

remove frills, improve logics { :do { /tool fetch url="https://pki.goog/roots.pem" dst-path="roots-goog.pem" :delay 2s /certificate remove [find where authority expired] import file-name="roots-goog.pem" passphrase="" /file remove [find where name="roots-...
by rextended
Mon Mar 25, 2024 2:27 pm
Forum: Scripting
Topic: execute & parse
Replies: 15
Views: 1046

Re: execute & parse

Given that it seems like xxxxx to me, unnecessary complications, it's done like this: :global addten do={ :local input [:tonum $1] :return ($input + 10) } :global removeten do={ :local input [:tonum $1] :return ($input - 10) } :global dosomething do={ :local func [:tostr $1] :local input [:tostr $2]...
by rextended
Mon Mar 25, 2024 10:59 am
Forum: Beginner Basics
Topic: What happens to an interface that is not part of any bridge?
Replies: 7
Views: 766

Re: What happens to an interface that is not part of any bridge?

Quick and easy answer:
It's like it's another bridge.
by rextended
Mon Mar 25, 2024 10:54 am
Forum: Scripting
Topic: execute & parse
Replies: 15
Views: 1046

Re: execute & parse

RouterOS is not a programming language.

There are certainly simpler ways of doing things.

Concrete and well-explained examples may have specific suggestions.
by rextended
Sat Mar 23, 2024 4:40 pm
Forum: Scripting
Topic: Isolate a value from a console output [SOLVED]
Replies: 25
Views: 4525

Re: Isolate a value from a console output [SOLVED]

Is why is important to check the data flow and prevent expected errors... So, my script do all basic test like: The interface exist? The interface have no address? The interface have multiple addresses? After that checks, the interface exist, for sure, and have only one address, for sure, on format ...
by rextended
Sat Mar 23, 2024 4:32 pm
Forum: Scripting
Topic: Isolate a value from a console output [SOLVED]
Replies: 25
Views: 4525

Re: Isolate a value from a console output [SOLVED]

Is why on my script, I check all before
:return [:toip [:pick $ifadd 0 [:find $ifadd "/" -1]]]
And I'm pretty sure that $ifadd is one address (with or without "/n") so no nil or str is returned, but one ip...
by rextended
Sat Mar 23, 2024 11:48 am
Forum: Scripting
Topic: Isolate a value from a console output [SOLVED]
Replies: 25
Views: 4525

Re: Isolate a value from a console output [SOLVED]

How to manage errors without using shitty on-error. { :global ipfrominterface do={ :local iface [:tostr $1] :local ifadd 0.0.0.0 /interface :if ([:len [find where name=$1]] != 1) do={:return "interface >$iface< do not exist"} /ip address :local temp [find where interface=$iface] :if ([:len...
by rextended
Fri Mar 22, 2024 4:35 pm
Forum: Scripting
Topic: Isolate a value from a console output [SOLVED]
Replies: 25
Views: 4525

Re: Isolate a value from a console output [SOLVED]

ignoring the way, the syntax is this: :set currentIPv4 [/ip address get [find where interface=$wanInt] address] ; :set currentIPv4 [:pick $currentIPv4 0 ([:len $currentIPv4] - 3)] :put $currentIPv4 1.2.3.4 obviously this do not consider the other script part you do not have pasted, like where $curre...
by rextended
Fri Mar 22, 2024 4:31 pm
Forum: Scripting
Topic: Isolate a value from a console output [SOLVED]
Replies: 25
Views: 4525

Re: Isolate a value from a console output [SOLVED]

Until is /xx, if is, for example, /9 do not work.

Use everityme proper method.

why do you use brackets { } randomly and without any logical reason?
by rextended
Fri Mar 22, 2024 4:25 pm
Forum: Scripting
Topic: Isolate a value from a console output [SOLVED]
Replies: 25
Views: 4525

Re: Isolate a value from a console output [SOLVED]

where you get the useless do {} and the other frills??????????
{
/ip address
:local wfaddress [get [find where interface=$wanInt] address]
:put $wfaddress
:local waddress  [:pick $wfaddress 0 [:find $wfaddress "/" -1]]
:put $waddress
}
by rextended
Wed Mar 20, 2024 5:41 pm
Forum: Scripting
Topic: Error handling in RouterOS 7 Scripting (ROS7) [SOLVED]
Replies: 6
Views: 3963

Re: Error handling in RouterOS 7 Scripting (ROS7) [SOLVED]

Of course there is a way. Even more than one. For example make two scripts, and call from a third script only the correct script for that version. :if ([/system resource get version]~"^7") do={ # call script for v7 /system script run v7script } else={ # call script for v6 /system script ru...
by rextended
Wed Mar 20, 2024 4:08 pm
Forum: Scripting
Topic: Error handling in RouterOS 7 Scripting (ROS7) [SOLVED]
Replies: 6
Views: 3963

Re: Error handling in RouterOS 7 Scripting (ROS7) [SOLVED]

No matter how you write the script,
sys ntp client servers provide error on v6 and the script is not executed at all.

You can not prevent the error if the script itself have bad syntax inside... is never run...
by rextended
Tue Mar 19, 2024 12:20 pm
Forum: Scripting
Topic: RouterOS get uptime days [SOLVED]
Replies: 10
Views: 4353

Re: RouterOS get uptime days [SOLVED]

My function timetoseconds is correct...
viewtopic.php?p=930465#p930465

but if already is v7.12.1 (and up) just simply...
:put "Uptime: $([:tonum [/system resource get uptime]] / 86400) days"
by rextended
Sun Mar 17, 2024 2:41 am
Forum: General
Topic: Does the uptime value reset?
Replies: 2
Views: 400

Re: Does the uptime value reset?

The max uptime can be only ~71w02:27:52 so 497d02:27:52 is the max.
After that value the 32 bit tick counter reset.
by rextended
Sun Mar 17, 2024 1:16 am
Forum: Scripting
Topic: How to delete backup and RSC files that have been stored for more than 1 month
Replies: 5
Views: 1143

Re: How to delete backup and RSC files that have been stored for more than 1 month

{ /system clock :local now [$datetime2epoch ("$[get date] $[get time]")] :local wait 2592000 ; # seconds, 1 month :local fdate 0 :local removed 0 /file :foreach file in=[find where type~"backup|script"] do={ :set fdate [$datetime2epoch [get $file creation-time]] :if ($fdate < ($...
by rextended
Sat Mar 16, 2024 8:04 pm
Forum: Scripting
Topic: Help for creating a script to delete ophran IPV6 PPP profiles
Replies: 1
Views: 319

Re: Help for creating a script to delete ophran IPV6 PPP profiles

Help for creating a script to delete ophran IPV6 PPP profiles except default profiles undeletable . /ppp profile print where !default [:local k $name; ([:len [/ppp secret find where profile=$k]] < 1)] for remove (at your own risk), but do not check if the profiled is used elsewhere ... /ppp profile ...
by rextended
Sat Mar 16, 2024 7:53 pm
Forum: Scripting
Topic: simple double if / else error [SOLVED]
Replies: 11
Views: 4334

Re: simple double if / else error [SOLVED]


You remember all the links to what I wrote on the forum better than me... ;)
by rextended
Fri Mar 15, 2024 6:21 pm
Forum: Scripting
Topic: /tool/fetch - 6.x vs 7.x
Replies: 2
Views: 528

Re: /tool/fetch - 6.x vs 7.x

Could be url encoding

Try changes:
@ -> %40
And the other non plain characters inside text? Probably non-7-bit-ascii text?
Probably must be all urlencoded (the text part, not all) with my urlencode function.
by rextended
Fri Mar 15, 2024 6:01 pm
Forum: Scripting
Topic: get IP ADDRESSES on interface
Replies: 13
Views: 16555

Re: get IP ADDRESSES on interface

/ipv6 address print where interface=WAN and global :local wanipv6global [/ipv6 address get [find where interface=WAN and global] address] Obviously some problems can occour if the interface have more than one address..... Trying to not forget one, one IPv6 can have one or more flags: disabled dynam...
by rextended
Fri Mar 15, 2024 5:42 pm
Forum: Scripting
Topic: simple double if / else error [SOLVED]
Replies: 11
Views: 4334

Re: simple double if / else error [SOLVED]

but it seems OK to me :local var [:put <etc>] is like correct???? Not tested, for obvious reasons, but must be like this: /tool netwatch :local v1 [get [find where host=8.8.8.8 ] status] :local v2 [get [find where host=1.1.1.1 ] status] :local v3 [get [find where host=208.67.220.220] status] :if ((...
by rextended
Mon Mar 11, 2024 10:43 am
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 96
Views: 71054

Re: ✂ Rextended Fragments of Snippets

Sorry, not... Ask on forum (on a separate/proper topic).
by rextended
Sun Mar 10, 2024 3:02 am
Forum: General
Topic: A place for poetry
Replies: 63
Views: 247738

Re: A place for poetry

(welcome back!)
I say -
no longer hidden
by rextended
Fri Mar 08, 2024 3:37 pm
Forum: Scripting
Topic: Automatic NAT 1:1 Rules Update Script for PPPoE Connections
Replies: 2
Views: 421

Re: Automatic NAT 1:1 Rules Update Script for PPPoE Connections

3. **No Interruption of Active Connections**: The script updates only new connections with the new external IP, leaving existing connections unaffected to avoid disruptions. bullshit: if the IP changes, the previous connection to an IP that no longer exists doesn't make the slightest sense. 4. **Au...
by rextended
Fri Mar 08, 2024 11:46 am
Forum: Scripting
Topic: How to delete backup and RSC files that have been stored for more than 1 month
Replies: 5
Views: 1143

Re: How to delete backup and RSC files that have been stored for more than 1 month

I do not have suggestions, only solutions. :global datetime2epoch do={ :local dtime [:tostr $1] /system clock :local cyear [get date] ; :if ($cyear ~ "....-..-..") do={:set cyear [:pick $cyear 0 4]} else={:set cyear [:pick $cyear 7 11]} :if (([:len $dtime] = 10) or ([:len $dtime] = 11)) do...
by rextended
Thu Mar 07, 2024 5:55 pm
Forum: Scripting
Topic: How do I protect source code from being pirated?
Replies: 29
Views: 1649

Re: How do I protect source code from being pirated?

No one remember MetaROUTER?
by rextended
Thu Mar 07, 2024 5:53 pm
Forum: Scripting
Topic: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)
Replies: 289
Views: 78976

Re: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)

The biggest vulnerability that can you have on the internet are the little men (and women) sitting in front of a screen, with a keyboard and a mouse...
No matter how much you filter, if you have incompetent people at work, your network will always leak everywhere...
by rextended
Thu Mar 07, 2024 5:22 pm
Forum: Scripting
Topic: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)
Replies: 289
Views: 78976

Re: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)

Flashstart is just one provocation... ;) *********************** But most infiltration attacks start with a simple probe to see if they can get in. This means that there is some basic error in the network configuration. Everything must be blocked unless explicitly admitted, so the IP list is absolut...
by rextended
Thu Mar 07, 2024 5:15 pm
Forum: Scripting
Topic: How do I protect source code from being pirated?
Replies: 29
Views: 1649

Re: How do I protect source code from being pirated?

You could easily encrypt the script in an unassailable way, but...
If the routerboard has to decipher it in some way to execute it, the decoding method is already ready...
by rextended
Thu Mar 07, 2024 4:59 pm
Forum: Wireless Networking
Topic: Wifi 7 - MikroTik when???
Replies: 79
Views: 17386

Re: Wifi 7 - MikroTik when???

<joke></joke>
I would bet my life that it's not a joke...

Inside the DNS queries are redirected to 114.114.114.114 and 114.114.115.115 ......................
by rextended
Thu Mar 07, 2024 4:56 pm
Forum: General
Topic: cache full, not storing since 7.14
Replies: 18
Views: 5031

Re: cache full, not storing since 7.14

3) So you already know the answer.
by rextended
Thu Mar 07, 2024 4:45 pm
Forum: Scripting
Topic: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)
Replies: 289
Views: 78976

Re: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)

Also some paid lists from Bambeneck Consulting, AbuseIPdb, MalwarePatrol I may offer 2-3 different mixes of lists that may be more suitable for your specific needs. I'm thinking about US$100/yr or US$10/mo. This is a scam, I don't think that whoever provides you with the paid lists agrees with the ...
by rextended
Thu Mar 07, 2024 4:39 pm
Forum: Scripting
Topic: Try to login with Hercules Failed
Replies: 3
Views: 409

Re: Try to login with Hercules Failed

Why you try to use the API like are telnet with another program born to not do that?
by rextended
Thu Mar 07, 2024 3:17 pm
Forum: Scripting
Topic: How do I protect source code from being pirated?
Replies: 29
Views: 1649

Re: How do I protect source code from being pirated?

What could ever be so precious to protect? If you do not have administrator rights on the RouterBOARD, it means that it is not yours. If you have that right, remove all other users. Buy one for yourself and don't let anyone access it. You can already see how to configure it from the one you already ...
by rextended
Thu Mar 07, 2024 3:11 pm
Forum: Scripting
Topic: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)
Replies: 289
Views: 78976

Re: Address lists downloader (DShield, Spamhaus DROP/EDROP, etc)

I'm thinking about US$100/yr or US$10/mo.
Flashstart cost much less and is better implemented all over the world.
by rextended
Wed Mar 06, 2024 1:51 pm
Forum: Scripting
Topic: Calculate date and time in script
Replies: 8
Views: 850

Re: Calculate date and time in script

on v6.x do not work any that is only on v7.x you can use only my functions on v6 Example of 3 days (259200 seconds) and 1 hour (3600 seconds) ahead mar/04/2024 16:37:18 :global datetime2epoch do={ :local dtime [:tostr $1] /system clock :local cyear [get date] ; :if ($cyear ~ "....-..-..") ...
by rextended
Tue Mar 05, 2024 11:17 pm
Forum: Scripting
Topic: Calculate date and time in script
Replies: 8
Views: 850

Re: Calculate date and time in script

1ft + 1m do not do 2 something , You must first convert ft to m, or m to ft, or both to another omogeneous format. Since "mar/04/2024 16:37:18" is a stupid string, only an idiot of a programmer (I'm referring to the past) could choose such a silly method of representing the date, instead o...
by rextended
Tue Mar 05, 2024 4:06 pm
Forum: Scripting
Topic: Cannot get secret-download-key from script [SOLVED]
Replies: 3
Views: 3838

Re: Cannot get secret-download-key from script [SOLVED]

Try this:
Do not resurrect years old topic.
by rextended
Tue Mar 05, 2024 9:02 am
Forum: Scripting
Topic: Is 8MB in a variable from a txt file is possible?
Replies: 54
Views: 3789

Re: Is 8MB in a variable from a txt file is possible?

I doubt anyone in their right mind imports a 100MB list of IPs to block... at that point is faster to block everything and implement a white list...
If you have to work on files, a container is better, or better yet, an external server...
by rextended
Mon Mar 04, 2024 9:18 pm
Forum: Scripting
Topic: Is 8MB in a variable from a txt file is possible?
Replies: 54
Views: 3789

Re: Is 8MB in a variable from a txt file is possible?

The var size limit is the memory on the device.
I take it for granted that one imports 8 megs of address list into appropriate devices, not into little toys like the hAP lite... :lol:

viewtopic.php?p=1012752&hilit=readfile#p1012752
by rextended
Mon Mar 04, 2024 2:05 pm
Forum: Scripting
Topic: Disable Single LAN IP Address
Replies: 4
Views: 568

Re: Disable Single LAN IP Address

Seeing the degree of the OP question, I doubt your answers are adequate.
First of all the OP needs to understand how IPv4 works...
by rextended
Mon Mar 04, 2024 1:43 pm
Forum: Scripting
Topic: Is 8MB in a variable from a txt file is possible?
Replies: 54
Views: 3789

Re: Is 8MB in a variable from a txt file is possible?

From ROS version 7.13 there is /file/read command (currently undocumented) which you can use to read file chunked with arguments chunk-size and offset . First, fetch command will need to download whole file on to FS and not be used to return response data as value to variable. This can be useful fo...
by rextended
Mon Mar 04, 2024 12:52 pm
Forum: Scripting
Topic: Delete all connection in Firewall-Connections
Replies: 15
Views: 21420

Re: Delete all connection in Firewall-Connections

Ignoring wrong way of programming with useless do={...} and other things... still missing "where timeout>60" that make completely useless on-error... /ip firewall connection print where (timeout>60) [remove $".id"] If the device is fast enough, the timeout can be decreased from 6...
by rextended
Tue Feb 27, 2024 12:49 am
Forum: Scripting
Topic: export scripts from the repository saved under a specific owner
Replies: 8
Views: 753

Re: export scripts from the repository saved under a specific owner

False, already are implemented the export of specific scripts... /system script export where owner=admin or /system script export where name=<script name> The problem is to import it for specific user... ******************************* I write this to extract at least all possible commands and param...
by rextended
Sun Feb 25, 2024 1:41 pm
Forum: Scripting
Topic: $PIANO - interactive "player piano" & studio-quality recorder using :beep
Replies: 6
Views: 1031

Re: $PIANO - interactive "player piano" & studio-quality recorder using :beep

$PIANO - interactive "player piano" & studio-quality recorder using :beep

Bravo. 👏👏👏👏👏👏
by rextended
Sun Feb 25, 2024 1:39 pm
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 15
Views: 2619

Re: Creating a script for sending SMS

Since SMS are free, send one sms each 12h... or you use more than 60GB every 12h? https://telemach.hr/poslovni/mobilna-telefonija Pravi je problem što 5G nije osmišljen kao rješenje za zamjenu optičkih vlakana, to se tako prenosi, ali onda svaka firma na ovaj ili onaj način pokušava omesti one koji ...
by rextended
Sat Feb 24, 2024 10:15 am
Forum: General
Topic: removing remote address from all pppoe secret [SOLVED]
Replies: 2
Views: 830

Re: removing remote address from all pppoe secret [SOLVED]

At your own risk:

/ppp secret set [find] !remote-address
by rextended
Fri Feb 23, 2024 11:11 pm
Forum: General
Topic: A place for poetry
Replies: 63
Views: 247738

Re: A place for poetry

A new light in the sky.
there are fewer and fewer of us here –
We are not alone.
by rextended
Fri Feb 23, 2024 2:53 pm
Forum: General
Topic: Restarting interface when it's down ( based on status, not the ping )
Replies: 3
Views: 357

Re: Restarting interface when it's down ( based on status, not the ping )

Try manually setting the speed of the SFP port
... on both side.

The same thing I would have answered.
by rextended
Fri Feb 23, 2024 2:24 pm
Forum: Scripting
Topic: Automatic Simple Queue based on IPv6 Neighbors [SOLVED]
Replies: 4
Views: 1536

Re: Automatic Simple Queue based on IPv6 Neighbors [SOLVED]

Writing that "Apparently MikroTik doesn't understand <insert wrong syntax here>" is quite arrogant. It's not up to RouterOS (MikroTik is the company) to figure out what you wanted to do and try to guess the commands you wanted executed. Apparently you doesn't understand script syntax. This...
by rextended
Wed Feb 21, 2024 4:18 pm
Forum: Beginner Basics
Topic: Site access problem
Replies: 4
Views: 495

Re: Site access problem

How can I fix it?
Nothing to do with any MikroTik products.

Ask/Change the ISP.
by rextended
Wed Feb 21, 2024 4:14 pm
Forum: Scripting
Topic: Scripts cannot run with permission denied V7.13.4
Replies: 12
Views: 3406

Re: Scripts cannot run with permission denied V7.13.4

Please Suggest me any one how to fix netwatch host script 0) Do not hijack other people topic. 1) Read changelog before update. And not only the one for the <version you use>, but all changelogs between <previous version> and <version you use>. 2) If work, why upgrade? 3) Add "ftp" policy...
by rextended
Wed Feb 21, 2024 4:11 pm
Forum: Scripting
Topic: Scripts cannot run with permission denied V7.13.4
Replies: 12
Views: 3406

Re: Scripts cannot run with permission denied V7.13.4

@mozerd
@rextended ... so why are you stateing point # 3) ?

@sims
FTP is needed to version 7.13 for dynu script to work
Thank you all for your input
by rextended
Wed Feb 21, 2024 4:03 pm
Forum: General
Topic: Public-Mikrotik-Bandwidth-Test-Server(s)
Replies: 1024
Views: 1148806

Re: Public-Mikrotik-Bandwidth-Test-Server(s)

He was telling me it was the official bandwith test from mikrotik. He's a storyteller or you probably misunderstood. About ping: EDIT: May 16'th 2022 - ICMP Ping has been disabled. in the btest server. ( This was done to prevent ping-speed tests against this btest server ) Is the first line of the ...
by rextended
Mon Feb 19, 2024 6:51 pm
Forum: Scripting
Topic: Scripts cannot run with permission denied V7.13.4
Replies: 12
Views: 3406

Re: Scripts cannot run with permission denied V7.13.4

1) Read changelog before update. And not only the one for the 7.13, but all changelogs between 7.11 and 7.13.

2) If work, why upgrade?

3) Add "ftp" policy.
by rextended
Thu Feb 15, 2024 9:52 pm
Forum: Scripting
Topic: Script MD5 Hash Generator
Replies: 20
Views: 18390

Re: Script MD5 Hash Generator

Thanks for sharing, There are very few errors, and the writing style is acceptable. I like that you are inspired from my scripts... https://forum.mikrotik.com/viewtopic.php?t=177551#p965201 just at the start... :local strMessage [:tostr "$1"] is like :local strMessage [:tostr [:tostr $1 ]]...
by rextended
Thu Feb 15, 2024 9:48 pm
Forum: Scripting
Topic: MikroTik Script to restore backup in scheduler [SOLVED]
Replies: 8
Views: 5996

Re: MikroTik Script to restore backup in scheduler [SOLVED]

In this case, it is of no use,
otherwise if you have to do multiple operations on the same file
it is simpler to write a script using a variable/constant that represents the name of the file,
without rewriting it entirely each time.
by rextended
Thu Feb 15, 2024 1:26 pm
Forum: Scripting
Topic: MikroTik Script to restore backup in scheduler [SOLVED]
Replies: 8
Views: 5996

Re: MikroTik Script to restore backup in scheduler [SOLVED]

/y at the end is wrong and useless. Not working without it though Still wrong, becayse "/" before the y is useless, and is still useless inside the scheduler. "y" only can be used just if the script is tested on terminal. It's like this and there's nothing you can do about it.
by rextended
Thu Feb 15, 2024 10:24 am
Forum: Scripting
Topic: Script breaks on ROS 7 due to changes in date format
Replies: 4
Views: 629

Re: Script breaks on ROS 7 due to changes in date format

Or without errors:

RouterOS 7.10+ code

{
:local ds    [/system clock get date]
:local mm    [:tonum [:pick $ds 5  7]]
:local dd    [:tonum [:pick $ds 8 10]]
:local senha "user*$($mm * $dd)"
/ip hotspot user set "user" password=$senha
}
by rextended
Wed Feb 14, 2024 1:47 pm
Forum: Scripting
Topic: /port using the used-by property
Replies: 20
Views: 1136

Re: /port using the used-by property

With where and the "and"s:
Rex, thank you. Please explain for me (so that I understand for the future)- why do you still need where?

Without where and the "and"s:
Rx tk u pl. exp. 4 me so that I u-stand 4 future why u still need where?
by rextended
Wed Feb 14, 2024 11:38 am
Forum: Scripting
Topic: /port using the used-by property
Replies: 20
Views: 1136

Re: /port using the used-by property

I can't have any usb port to test, only serials, but the syntax is this:
/port
:foreach item in=[find where name~"usb" and used-by="" and inactive=no] do={:put [get $item name]}
by rextended
Tue Feb 13, 2024 7:12 pm
Forum: Scripting
Topic: Test if array is associative, multi-dimensional, or simple list [SOLVED]
Replies: 15
Views: 3562

Re: Test if array is associative, multi-dimensional, or simple list [SOLVED]

All possible cases inside one function. II skipped the recursive check to see how many sub-arrays there are within the sub-arrays and so on, it seemed excessive to me. :global testArray do={ :local isNumeric false :local isMapped false :local arrayNumeric false :local mappedNumeric false :foreach tm...
by rextended
Tue Feb 13, 2024 5:56 pm
Forum: Scripting
Topic: /port using the used-by property
Replies: 20
Views: 1136

Re: /port using the used-by property

(don't worry, I'm only offended by those who plot behind my back, cowards and traitors...)

********************

As already written...
What you really want is
/port print where used-by=""
:put [/port find where used-by=""]
by rextended
Tue Feb 13, 2024 3:47 pm
Forum: Scripting
Topic: /port using the used-by property
Replies: 20
Views: 1136

Re: /port using the used-by property

You still not read what I write.

Retry.
by rextended
Tue Feb 13, 2024 3:46 pm
Forum: Scripting
Topic: if / else in telnet
Replies: 6
Views: 808

Re: if / else in telnet

You want create a port scanner or test if http service is up on one server?
by rextended
Tue Feb 13, 2024 3:19 pm
Forum: Scripting
Topic: /port using the used-by property
Replies: 20
Views: 1136

Re: /port using the used-by property

/port :foreach item in=[find] do={ :put [get $item "used-by"] } First, use right syntax Second, the "find" results are ids, not field value. I do not have usb2, only serial0: :put [/port find where name=serial0] *1 ok, *1 is the id of the serial0 :put [/port find name=serial0 !i...
by rextended
Mon Feb 12, 2024 3:48 pm
Forum: Scripting
Topic: Test if array is associative, multi-dimensional, or simple list [SOLVED]
Replies: 15
Views: 3562

Re: Test if array is associative, multi-dimensional, or simple list [SOLVED]

[some concepts I already know you know, but the explanation is for others who don't know] I do not understand what you mean :global x [:toarray ""] create the array :set ($x->9) 9 set the index 9 (zero based) to 9 :put [:len $x] the lenght is 10 (from 0 to 9) because previous instruction a...
by rextended
Mon Feb 12, 2024 2:50 pm
Forum: Scripting
Topic: Test if array is associative, multi-dimensional, or simple list [SOLVED]
Replies: 15
Views: 3562

Re: Test if array is associative, multi-dimensional, or simple list [SOLVED]

One array can contain all types of data, can only be used "foreach" for search if a sub-array exist. if ->0 is undefined ("nothing"), but the lenght is > 0, the array have only key pairs, if last ->n is defined (can also be "nil"), and is the same length (- 1) of the ar...
by rextended
Sat Feb 10, 2024 1:11 pm
Forum: Wireless Networking
Topic: Set COUNTRY parameter - WAP ac LTE6 [SOLVED]
Replies: 8
Views: 3060

Re: Set COUNTRY parameter - WAP ac LTE6 [SOLVED]

The most important thing in Italy is that you cannot transmit beyond your property with excessive residue, or create point-to-point connections that cross public land or other private property not of the same starting owner (no mater the power or the scope). (WISPs and those who can install them pay...
by rextended
Fri Feb 09, 2024 7:35 pm
Forum: General
Topic: Howto locate the parent address entry (subnet/range definition) of an IP ?
Replies: 3
Views: 439

Re: Howto locate the parent address entry (subnet/range definition) of an IP ?

Is for find the IP in-side x.x.x.0/something, not exact IP.

The default firewall already drop all not allowed.
by rextended
Fri Feb 09, 2024 1:19 pm
Forum: General
Topic: Howto locate the parent address entry (subnet/range definition) of an IP ?
Replies: 3
Views: 439

Re: Howto locate the parent address entry (subnet/range definition) of an IP ?

I find it wrong to put the blacklist before the whitelist. First of all must pass the whitelisted IPs, then block the blacklisted IPs. Or do something like this, that prevent IP on whitelist to be blocked if one range on blacklist include them. /ip firewall filter add action=drop chain=forward dst-a...
by rextended
Thu Feb 08, 2024 11:36 am
Forum: General
Topic: How to query the entry by "unset" parameter [SOLVED]
Replies: 4
Views: 854

Re: How to query the entry by "unset" parameter [SOLVED]

In all of your attempts, everytime what is after the = is everytime one string: "", nil, nill, nul, null, unset, with or without "".

Easy:
/ip firewall nat print where !src-address

or:
/ip firewall nat print where src-address=[:nothing]
by rextended
Mon Feb 05, 2024 10:54 am
Forum: Scripting
Topic: How should the local variable be called in if? [SOLVED]
Replies: 11
Views: 3314

Re: How should the local variable be called in if? [SOLVED]

Instead of insisting with useless ";", understand that all variables, local and global, must be defined at the start of the script, not on subsection. { :local q 0 :local yys 134 :local gsd 1936 :if ([:len [/file find where name="Save$yys$"gsd".txt"] ] > 0) do={ :set q ...
by rextended
Sat Feb 03, 2024 10:49 pm
Forum: General
Topic: [Discussion] MikroTik configuration abstraction complexity
Replies: 164
Views: 11262

Re: [Discussion] MikroTik configuration abstraction complexity

Probably if RouterOS had been open source,
ForumOS64 would now exist with everything it needed...
Even the useless Dark-Mode...
by rextended
Wed Jan 31, 2024 8:01 pm
Forum: General
Topic: 7.13 wireless package split question
Replies: 90
Views: 24741

Re: 7.13 wireless package split question

   
by rextended
Wed Jan 31, 2024 7:48 pm
Forum: General
Topic: 7.13 wireless package split question
Replies: 90
Views: 24741

Re: 7.13 wireless package split question

@infabo We have no guarantee that the staff who PROGRAM RouterOS will ignore our comments. Probably our reports and proposals on the forum are not even passed on to the programmers, just because those of the staff who read the forum do not consider them worthy of note. Like this: https://forum.mikr...
by rextended
Wed Jan 31, 2024 7:42 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

When I initially "discovered" ...
Let's not confuse the NAND of previous products with the 16MiB Flash used now...

Now that I think about it, I've never found a MikroTik device with Flash greater than 16MiB...
by rextended
Wed Jan 31, 2024 7:40 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

Fact: The design used for that processor prevented it from using more than 640kB of memory.

So someone decided that limit, it could be there, but the worst thing was that it was FORCED TO MAINTAIN IT even afterwards, for "decades"...
by rextended
Wed Jan 31, 2024 7:33 pm
Forum: General
Topic: 7.13 wireless package split question
Replies: 90
Views: 24741

Re: 7.13 wireless package split question

is dumb If I worked at MikroTik as a programmer the problem would have already been solved, in fact, it probably would never have been created, because I would have done everything in a more logical way: you only download the drivers (and optional features) you need based on the model, without down...
by rextended
Wed Jan 31, 2024 7:21 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

Bill Gates said: you don't need more than 640kB. MT, can you explain to us why you are so in love with such small 16 MB flash? I think there isn't a person in the world (who knows what they're talking about) who reads that specification and doesn't wonder why the damned thing they keep doing this b...
by rextended
Wed Jan 31, 2024 7:05 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

@sirbryan Bad idea to buy a product without knowing if they will put the remaining part on the market and without any test that all parts (AP+CPE) are working as expected... Would you buy an electric car first, without knowing if they would ever make batteries for that model? But you're right about...
by rextended
Wed Jan 31, 2024 5:44 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

   
by rextended
Wed Jan 31, 2024 5:01 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

mANTBox ax for WISP without any CPE (except "Build your own") is completely useless...
by rextended
Wed Jan 31, 2024 4:21 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

Now I understand what market MikroTik products from v7 are aimed at...
by rextended
Wed Jan 31, 2024 3:21 pm
Forum: Scripting
Topic: Can you control the length of the generated string? In ROS 6.XX.
Replies: 3
Views: 609

Re: Can you control the length of the generated string? In ROS 6.XX.

:local num 00 ; is completely useless the ; and the 00 if not inside quotes, because numeric 000000000000000000000000000 is 0 (add "" is useless, if "00" is added to 1, first "00" is converted on a number, and is 0 + 1 = 1 // adding "1" as string to "00&q...
by rextended
Wed Jan 31, 2024 2:45 pm
Forum: Announcements
Topic: Newsletter #116 | January 2024
Replies: 95
Views: 33050

Re: Newsletter #116 | January 2024

mANTBox ax 15s? Is not the correct name "mANTBox 52 ax 15s"? Any plans for the mANTBox ax 1 9 s or for sell directly the L22UGS-5HaxD(2HaxD) or should I buy the mANTBox ax 15s just for the internal RouterBOARD and replace the internal radios on the old mANTBox ac 19s? (no matter the 2,4GHz...
by rextended
Fri Jan 26, 2024 11:49 am
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 96
Views: 71054

Re: ✂ Rextended Fragments of Snippets

@jaclaz and the others: I can't continue to comment this in my topic, this on this topic is off-topic in... my topic. So I'm not answering this anymore. You will only see me as a normal user who reports bugs and reads the forum. I will still continue to fix my scripts if there is an error. I will no...
by rextended
Fri Jan 26, 2024 10:17 am
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 96
Views: 71054

Re: ✂ Rextended Fragments of Snippets

Very sad, that such basic ask like "can you please not use swear words" is taken as "ingratitude" What you write is not true, and by deleting the posts, as you have already done, you erase the evidence. You deleted my reply post, it was the first: https://forum.mikrotik.com/view...
by rextended
Thu Jan 25, 2024 3:28 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 96
Views: 71054

Re: ✂ Rextended Fragments of Snippets

Given the continued ingratitude of the forum's administrative staff, I will stop. Did it cost so much to admit that, even if in good faith, the moderator had been wrong? Someone will finally celebrate this event and be happy (is not one allusion for the administrative staff). I feel sorry for the ot...
by rextended
Thu Jan 25, 2024 11:55 am
Forum: Announcements
Topic: v7.14beta [testing] is released!
Replies: 510
Views: 158469

Re: v7.14beta [testing] is released!

CNAME records and the name they are pointing to having a different TTL.
What should the resolver do when the client requests an A record, the record in the cache is a CNAME and it points to a record that already has expired.

The Playstation problem plague...
by rextended
Thu Jan 25, 2024 10:38 am
Forum: Beginner Basics
Topic: Antivirus Firewall Filter Rules [SOLVED]
Replies: 1
Views: 1212

Re: Antivirus Firewall Filter Rules [SOLVED]

The demo config is very old,
Default firewall rules on new device are perfect.
by rextended
Thu Jan 25, 2024 10:32 am
Forum: RouterBOARD hardware
Topic: Default password sticker wrong!!! [SOLVED]
Replies: 16
Views: 6321

Re: Default password sticker wrong!!! [SOLVED]

The flap of the label, at the top right, is raised... Typical of when the label is removed and reattached. Use netinstall with both the option to NOT keep the previous configuration AND not apply the default. This way you can have access to the device without a password. Once logged in via MAC addre...
by rextended
Thu Jan 25, 2024 10:14 am
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

Facts:
Winbox for Mac does not exist,
unless your name is @Normis and you want to tease.
You have not specified either the version of Winbox used, nor the version of netinstall, nor the exact name of the packages downloaded.
by rextended
Wed Jan 24, 2024 10:49 pm
Forum: Scripting
Topic: How to make Mikrotik beep on adding new log entry
Replies: 9
Views: 1148

Re: How to make Mikrotik beep on adding new log entry

where I'm checking the logs every 1 second, the CPU usage sits at a constant 20%
10 seconds suggested is not a random time...
by rextended
Wed Jan 24, 2024 10:42 pm
Forum: General
Topic: CRS354-48P-4S+2Q+ traffic problem on ports 1 to 8
Replies: 437
Views: 128413

Re: CRS354-48P-4S+2Q+ traffic problem on ports 1 to 8

it's ridiculous that these are still being sold with so many problems.
You have no concrete method of comparison,
Only those who complain write here on the forum,
not all those satisfied who had no problems...
by rextended
Wed Jan 24, 2024 6:34 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

@holvoetn 1) The CRS112-8P-4S is a PoE switch, not a router. 2) There is a total lack of professionalism in the user's speeches which makes me believe he is here to act as a troll, rather than actually wanting help. He took this forum as one vent because he doesn't know the product. 3) The device c...
by rextended
Wed Jan 24, 2024 5:25 pm
Forum: Beginner Basics
Topic: ISP subnet distribution [SOLVED]
Replies: 5
Views: 1237

Re: ISP subnet distribution [SOLVED]

Something like this: /interface bridge add name=bridge /interface bridge port add bridge=bridge interface=sfp1 add bridge=bridge interface=ether1 add bridge=bridge interface=ether2 add bridge=bridge interface=ether3 add bridge=bridge interface=ether4 /ip address add address=150.15.130.66/29 interfac...
by rextended
Wed Jan 24, 2024 4:58 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

What you have made clear about yourself is sufficient. I'm sorry, but before I get banned for what I could answer you, I better stop writing on this topic. Addendum: Exact words https://help.mikrotik.com/docs/display/ROS/Netinstall#Netinstall-Introduction In short, the Netinstall procedure goes like...
by rextended
Wed Jan 24, 2024 4:50 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

(see my next post)
by rextended
Wed Jan 24, 2024 4:40 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

It says "no package included".
Better you read the netinstall guide: If you don't download the packages and select on the netinstall the right folder, how do you install them?
by rextended
Wed Jan 24, 2024 4:37 pm
Forum: General
Topic: SNMP IPv6
Replies: 1
Views: 355

Re: SNMP IPv6

Apaprently not exposed on SNMP
by rextended
Wed Jan 24, 2024 4:32 pm
Forum: General
Topic: ⚠️WARNING: RouterOS v7.10+ will break all scripts based on [/system clock get date] or other date(s)
Replies: 66
Views: 16048

Re: ⚠️WARNING: RouterOS v7.10+ will break all scripts based on [/system clock get date] or other date(s)

Instead of :pick $date 4 6, the new date format you do :pick $date 8 10
Thank you so much! It works now.
Instead of blindly copying and pasting, try to understand what that command is for and why it was used that way.
by rextended
Wed Jan 24, 2024 4:19 pm
Forum: Announcements
Topic: v7.13.5 [stable] is released!
Replies: 909
Views: 274644

Re: v7.13.2 [stable] is released!

No terminal, go on winbox/webfig "Log"
by rextended
Wed Jan 24, 2024 4:18 pm
Forum: Announcements
Topic: v6.49.12 [stable] is released!
Replies: 23
Views: 13480

Re: v6.49.12 [stable] is released!

6.50 will probably never come out,
so obviously now we'll go forward for example as x.x.13 long-term and x.x.14 stable...
I hope they don't release 6.49.12 long-term at the same time as 6.49.12 stable to avoid the same mess that happened previously...
by rextended
Wed Jan 24, 2024 4:16 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

One example:
Upgrading from 7.12 to 7.13.2 and do a reset-configuration disk space is 7% free.
Netinstalling directly the 7.13.2 disk space free is 9%...
Something is left regardlessly the "reset"...
by rextended
Wed Jan 24, 2024 3:49 pm
Forum: Announcements
Topic: v7.13.5 [stable] is released!
Replies: 909
Views: 274644

Re: v7.13.2 [stable] is released!

i updated 7.13.2 but i cant downrage back . its not work like before i downrage
What device is it and what is written in the logs?
by rextended
Wed Jan 24, 2024 3:38 pm
Forum: General
Topic: Blocking IP's by region [SOLVED]
Replies: 22
Views: 36451

Re: Blocking IP's by region [SOLVED]

Precisely... Trusting something like that is foolish... Nobody forbids to add on the .rsc instruction to how bypass firewall, create new superuser, do whatever you want with that device... Let's pretend I create the list, mischievously I start providing it free for months, there are even those who s...
by rextended
Wed Jan 24, 2024 3:35 pm
Forum: Beginner Basics
Topic: mangle "reply dst.address"
Replies: 2
Views: 587

Re: mangle "reply dst.address"

The port 10000-20000 are not on exclusive use for VoIP.
Mark your VoIP provider IPs, not generic ports.
by rextended
Wed Jan 24, 2024 3:19 pm
Forum: General
Topic: Blocking IP's by region [SOLVED]
Replies: 22
Views: 36451

Re: Blocking IP's by region [SOLVED]

Script to download current country IP list
[...]
💀⚠️CRITICAL: Never trust who provides scripts containing "/import" from "/tool fetch" from external sources.
viewtopic.php?t=203733#p1051321
by rextended
Wed Jan 24, 2024 3:06 pm
Forum: General
Topic: 💀⚠️CRITICAL: Never trust who provides scripts containing "/import" from "/tool fetch" from external sources.
Replies: 2
Views: 668

💀⚠️CRITICAL: Never trust who provides scripts containing "/import" from "/tool fetch" from external sources.

💀⚠️CRITICAL: Never trust who provides scripts containing " /import " from " /tool fetch " from external sources. NEVER TRUST , there is no guarantee that the remote site will not be modified on purpose to execute arbitrary commands on your router. It's one thing to download and i...
by rextended
Wed Jan 24, 2024 2:49 pm
Forum: General
Topic: Warning message "<network> not a bridge port" after upgrade to RouterOS 13.2
Replies: 4
Views: 725

Re: Warning message "<network> not a bridge port" after upgrade to RouterOS 13.2

Please change wrong info in the title The message says exactly what it says: "apnet not a bridge port". /interface bridge vlan # apnet not a bridge port add bridge=bridge1 tagged=bridge1, apnet ,ether1 vlan-ids=20 In fact, you configured the device as if the interface were part of it, even...
by rextended
Wed Jan 24, 2024 2:47 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

It is true, goto point 4)
The internal configuration database is damaged and the device must be netinstalled.
If the problem persist, ask RMA from your distributor.
by rextended
Wed Jan 24, 2024 2:39 pm
Forum: General
Topic: CRS354-48P-4S+2Q+ traffic problem on ports 1 to 8
Replies: 437
Views: 128413

Re: CRS354-48P-4S+2Q+ traffic problem on ports 1 to 8

After reading this topic, I was expecting similar problems, but I've been waiting for 3 years for something to stop working...

Probably users who have problems have caused the device to overheat because it is in a place with little replacement or covered by other peripherals...
by rextended
Wed Jan 24, 2024 2:35 pm
Forum: Beginner Basics
Topic: impossible to log in using old account
Replies: 8
Views: 759

Re: impossible

There are two problems: The first is that nowhere in the forum is there "something" with which you can contact the administrators, everything left to itself or you deduce to contact support@mikrotik.com The second, that a title like "impossible" it doesn't help anyone, on the con...
by rextended
Wed Jan 24, 2024 2:09 pm
Forum: The User Manager
Topic: Credentials Password
Replies: 1
Views: 1044

Re: Credentials Password

if making this change
What change?
by rextended
Wed Jan 24, 2024 1:52 pm
Forum: Wireless Networking
Topic: ACL for one Client is not working
Replies: 2
Views: 532

Re: ACL for one Client is not working

Remove that rule, paste this one below into the terminal, then replace the fake address with the correct MAC address:
/interface wireless access-list
add authentication=no interface=wlan1 signal-range=-120..-41 mac-address=DE:AD:BE:EF:00:00
by rextended
Wed Jan 24, 2024 1:33 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

Also I don't understand, that the crs112 accepts its internetfacing port only on eth1. With eth8 it's not working. Though the rest of the config was adapted... But this is no important. I'm sorry, but objectively it's definitely a configuration error on your part. As 0.0.0.0/24 came up in one point...
by rextended
Wed Jan 24, 2024 1:30 pm
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

3) Remove that line on dhcp-server network . Most likely that is exactly the problem, but I don't rule out anything else because obviously, it's just a small piece of the configuration. 4) If you don't write things down, we don't know them. 5) Instead my experience, since 2007, with the exception of...
by rextended
Wed Jan 24, 2024 11:41 am
Forum: Beginner Basics
Topic: DHCP doesn't deliver an address for a gateway
Replies: 89
Views: 4555

Re: DHCP doesn't deliver an address for a gateway

https://forum.mikrotik.com/viewtopic.php?t=203686 Since my CRS112-8G-4S (specified the model in full, since there are multiple versions of "crs112") with software and firmware version 7.13.2, completely empty, except the dhcp-server, ip and pool configured, with a directly connected Asus l...
by rextended
Wed Jan 24, 2024 10:56 am
Forum: Scripting
Topic: How to make Mikrotik beep on adding new log entry
Replies: 9
Views: 1148

Re: How to make Mikrotik beep on adding new log entry

Good morning. What device do you have? As @holvoetn already wrote, if it doesn't have a beeper it's all useless. Is possible use this as a basis: https://forum.mikrotik.com/viewtopic.php?p=1004552#p1004546 To obtain this: :global lastLog :if ([:typeof $lastLog] != "num") do={:set lastLog 0...
by rextended
Wed Jan 24, 2024 10:46 am
Forum: Wireless Networking
Topic: Link SXTsq 5 ac - OmniTIK 5 ac
Replies: 6
Views: 770

Re: Link SXTsq 5 ac - OmniTIK 5 ac

It's unrealistic speed (without knowing "number of clients, interference, government regulation, etc.") You have an omnidirectional antenna that senses disturbances coming from any direction... It's not like a point-to-point link made with two SXTs... Max speed, ignoring "number of cl...
by rextended
Wed Jan 24, 2024 10:41 am
Forum: Scripting
Topic: Delete all connection in Firewall-Connections
Replies: 15
Views: 21420

Re: Delete all connection in Firewall-Connections

I already answered 1 year ago...
You must add "where timeout>60" like my example because closed connections during the run of the script break anything.
by rextended
Tue Jan 23, 2024 11:32 pm
Forum: Announcements
Topic: v7.14beta [testing] is released!
Replies: 510
Views: 158469

Re: v7.14beta [testing] is released!

This is a beta and should not be used in production.
I quote
by rextended
Tue Jan 23, 2024 11:31 pm
Forum: General
Topic: CCR2004-16G-2S+ no hosts on bridge ROS v7.11
Replies: 8
Views: 1946

Re: CCR2004-16G-2S+ no hosts on bridge ROS v7.11

It's not a configuration issue. In reality I was thinking of the internal configuration database being corrupt, rather than your mistake. And I realized now that "How many entries are there inside?" could be misunderstood: I meant how many static entries you added, not how many are presen...
by rextended
Tue Jan 23, 2024 7:24 pm
Forum: Wireless Networking
Topic: Separating clients on a LAN is important in a wifi network.
Replies: 2
Views: 691

Re: Separating clients on a LAN is important in a wifi network.

Using the split-horizon on bridge disables hardware offloading on all switch chips present, so all traffic passes through the CPU.
So using split-horizon also depends on what you use and how... but I totally agree about isolating each different wifi.
by rextended
Tue Jan 23, 2024 7:02 pm
Forum: General
Topic: Upgrade to 7.13.2 drops WLAN1 on Metal 2SHPn
Replies: 1
Views: 403

Re: Upgrade to 7.13.2 drops WLAN1 on Metal 2SHPn

You didn't write that you did the update "by hand". You didn't write whether or not you also installed the separate wireless package during or after the update. You didn't write that you didn't read the release notes before upgrading. Notice - Starting from RouterOS version 7.13, significa...
by rextended
Tue Jan 23, 2024 6:57 pm
Forum: Wireless Networking
Topic: Link SXTsq 5 ac - OmniTIK 5 ac
Replies: 6
Views: 770

Re: Link SXTsq 5 ac - OmniTIK 5 ac

1) Obviously.
2) At sight. The further you go, the less is the capacity...
3) The question assumes that is already know the distance, number of clients, interference, government regulation, etc.
4) The same reply for point 3)
by rextended
Tue Jan 23, 2024 6:46 pm
Forum: Wireless Networking
Topic: Configure WIFI v.7.13 [SOLVED]
Replies: 15
Views: 10220

Re: Configure WIFI v.7.13 [SOLVED]

lets not produce "empty" posts.
Your is another one, don't be rude: viewtopic.php?t=203686

The question I asked you, which you obviously didn't answer, probably because it was uncomfortable for you, is useful.
by rextended
Tue Jan 23, 2024 6:39 pm
Forum: General
Topic: hEX POE not doing POE
Replies: 8
Views: 651

Re: hEX POE not doing POE

802.3af = ~48V, so...
by rextended
Tue Jan 23, 2024 6:34 pm
Forum: General
Topic: CCR2004-16G-2S+ no hosts on bridge ROS v7.11
Replies: 8
Views: 1946

Re: CCR2004-16G-2S+ no hosts on bridge ROS v7.11

How many entries are there inside /interface bridge host?
by rextended
Tue Jan 23, 2024 6:22 pm
Forum: General
Topic: CCR2004-16G-2S+ no hosts on bridge ROS v7.11
Replies: 8
Views: 1946

Re: CCR2004-16G-2S+ no hosts on bridge ROS v7.11

If reboot do not solve,
reload last working backup, install 7.13.2 and retry.
by rextended
Tue Jan 23, 2024 6:19 pm
Forum: General
Topic: IP and route configuration for /28
Replies: 12
Views: 1524

Re: IP and route configuration for /28

You must disable hardware offload on each port on the bridge.
by rextended
Tue Jan 23, 2024 6:00 pm
Forum: Announcements
Topic: v7.14beta [testing] is released!
Replies: 510
Views: 158469

Re: v7.14beta [testing] is released!

Just compare .npk... 2.686.976 - 2.244.753 byte = 442.223 byte... Removed the file wil6436-cube-sa-tg.brd 13.472 byte wil6436-cube-tg.brd 13.472 byte wil6436-tg.fw 986.764 byte So, uncompressed on NAND/Flash are 1.013.663 byte (~1MiB) less This compensate for some device this: !) rose-storage - move...
by rextended
Tue Jan 23, 2024 5:58 pm
Forum: General
Topic: Wrong country when selecting Time Zone Autodetect
Replies: 23
Views: 2257

Re: Wrong country when selecting Time Zone Autodetect

different users to have different time zones as other systems allow.
This should be done from webfig/winbox based on how the OS is set up, not a router setting...
by rextended
Tue Jan 23, 2024 5:34 pm
Forum: General
Topic: Wrong country when selecting Time Zone Autodetect
Replies: 23
Views: 2257

Re: Wrong country when selecting Time Zone Autodetect

Useless call home.
It should be done once and off the first successfull time you turn on the device on internet, not other times.
by rextended
Tue Jan 23, 2024 5:27 pm
Forum: Beginner Basics
Topic: Cant get into my Mikrotik
Replies: 5
Views: 962

Re: Cant get into my Mikrotik

This is only true for some devices, not all. Documentation can always be improved, but often what is not read is in the eyes of the observer... My suggestion is to look at what you use, it's written on it... https://i.mt.lv/cdn/rb_images/1059_hi_res.png In the OP's case, this is the device, and clea...
by rextended
Tue Jan 23, 2024 5:22 pm
Forum: Announcements
Topic: v6.49.12 [stable] is released!
Replies: 23
Views: 13480

Re: v6.49.12 [stable] is released!

I don't understand, 6.49.12 was never long-term, and 6.50 will probably never come out, so obviously now we'll go forward for example as x.x.13 long-term and x.x.14 stable... I hope they don't release 6.49.12 long-term at the same time as 6.49.12 stable to avoid the same mess that happened previousl...
by rextended
Tue Jan 23, 2024 5:16 pm
Forum: Wireless Networking
Topic: Configure WIFI v.7.13 [SOLVED]
Replies: 15
Views: 10220

Re: Configure WIFI v.7.13 [SOLVED]

distant upgrade
No matter the productor of the device, a distant update CAN fail, so upgrade CAN go worse...
Always keep the car engine running... you might leave...

Ask yourself a question: Do you really need v7 on those working devices instead of 6.49.12?
by rextended
Tue Jan 23, 2024 5:11 pm
Forum: Scripting
Topic: Firmware upgrade script not working w/ 7.11.2
Replies: 5
Views: 1379

Re: Firmware upgrade script not working w/ 7.11.2

Why first post is deleted?
by rextended
Tue Jan 23, 2024 5:07 pm
Forum: General
Topic: Wrong country when selecting Time Zone Autodetect
Replies: 23
Views: 2257

Re: Wrong country when selecting Time Zone Autodetect

...and disable autodetect, unless you constantly move the router from one time zone to another.
Autodetect on/off do not influence DST, the change is still automatic, if the time zone set use it.
by rextended
Tue Jan 23, 2024 4:49 pm
Forum: Announcements
Topic: v6.49.12 [stable] is released!
Replies: 23
Views: 13480

Re: v6.49.12 [stable] is released!

Are we going backward now?
In what sense? I do not understand...
by rextended
Tue Jan 23, 2024 4:40 pm
Forum: Scripting
Topic: Firmware upgrade script not working w/ 7.11.2
Replies: 5
Views: 1379

Re: Firmware upgrade script not working w/ 7.11.2

We've never had an issue with our script running the updates until this version that the routers are stuck on. It is impossible to evaluate what you do not display. But from what we read in the screenshot of the logs, if they are generated by the script, I assume it is poorly done. We also noticed ...
by rextended
Tue Jan 23, 2024 4:36 pm
Forum: Beginner Basics
Topic: How to chainge forums skin? [SOLVED]
Replies: 3
Views: 1150

Re: How to chainge forums skin? [SOLVED]

Direct link:
ucp.php?i=165
by rextended
Tue Jan 23, 2024 10:14 am
Forum: Announcements
Topic: WinBox v3.40 released!
Replies: 164
Views: 156768

Re: WinBox v3.40 released!

you can always just keep using the old one :)
This is fundamental
by rextended
Mon Jan 22, 2024 2:37 pm
Forum: Announcements
Topic: WinBox v3.40 released!
Replies: 164
Views: 156768

Re: WinBox v3.40 released!

For historical purposes only...
felice.png
by rextended
Mon Jan 22, 2024 2:34 pm
Forum: Scripting
Topic: Questions about generating valid random MAC? [SOLVED]
Replies: 17
Views: 3775

Re: Questions about generating valid random MAC? [SOLVED]

or directly
:local t [$rndMAC]
by rextended
Mon Jan 22, 2024 11:18 am
Forum: Announcements
Topic: WinBox v3.40 released!
Replies: 164
Views: 156768

Re: WinBox v3.40 released!

What do you mean "teaser"? That is just a wine install, that has been possible for a long time.
The Winbox icon...? (not the winbox64.exe)

Is just a wine link with custom icon?
by rextended
Mon Jan 22, 2024 11:11 am
Forum: Scripting
Topic: Questions about generating valid random MAC? [SOLVED]
Replies: 17
Views: 3775

Re: Questions about generating valid random MAC? [SOLVED]

00:00:00.4 = 400ms

What are the benefits of your writing style?
In what sense? I'm confused.

May I ask for your advice?
This is why the forum is here, anyone can answer you.
by rextended
Mon Jan 22, 2024 11:05 am
Forum: Announcements
Topic: WinBox v3.40 released!
Replies: 164
Views: 156768

Re: WinBox v3.40 released!

@normis, when? :))
by rextended
Mon Jan 22, 2024 10:57 am
Forum: Scripting
Topic: Questions about generating valid random MAC? [SOLVED]
Replies: 17
Views: 3775

Re: Questions about generating valid random MAC? [SOLVED]

You use the script on x86 or CHR?

There is no random number generator on v6, and using an extremely fast CPU produces the same number.
I add one artificious delay on previous sript (please remove quoted scripts on your post) that apparently on my CHR/x86 fix the problem (and work on both v6 and v7)
by rextended
Mon Jan 22, 2024 2:38 am
Forum: Scripting
Topic: Questions about generating valid random MAC? [SOLVED]
Replies: 17
Views: 3775

Re: Questions about generating valid random MAC? [SOLVED]

I have decided to choose V6.49.10. In this version, I would like to ask the forum experts how to use the most concise script to generate a valid random MAC? Forget the endless writings of @vingjfg who doesn't read my posts, so he doesn't know that simply 2 lines are enough to generate MAC address w...
by rextended
Sat Jan 20, 2024 2:10 am
Forum: The Dude
Topic: How do I get the flag status
Replies: 4
Views: 1192

Re: How do I get the flag status

/dude device print detail where !.dead

/dude device print detail where .dead
by rextended
Fri Jan 19, 2024 5:08 pm
Forum: Scripting
Topic: Netwatch with fetch stopped working after 7.13
Replies: 20
Views: 3865

Re: Netwatch with fetch stopped working after 7.13

???

try to replace the line
:local MessageText "$VarLocal $DevNameGlobal is Down";
with this line
:local MessageText "$VarLocal $DevNameGlobal is NOT UP";

I have one suspect...
by rextended
Fri Jan 19, 2024 3:34 pm
Forum: Scripting
Topic: Netwatch with fetch stopped working after 7.13
Replies: 20
Views: 3865

Re: Netwatch with fetch stopped working after 7.13

Script :global testg :local testl "script-test" :log info "testg is $testg and testl is $testl" on-up on netwatch :log info "test netwatch up start" :global testg "nw-test" /system script run scriptnw :log info "test netwatch up end" the export /syst...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 43