Community discussions

MikroTik App

Search found 13878 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 47
by rextended
Fri Jun 13, 2025 6:04 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

Update goes fail with CRS device multiple times... Hello together i tried the FW update from 7.18.2 to 7.19 (7.19.1) multiple times, and it always end up in the never ending boot loop. In the end only netinstall back to 7.18.2 helps. I was tried on two routers, but booth CRS device ( CRS212-1G-10S-...
by rextended
Fri Jun 13, 2025 10:11 am
Forum: Beginner Basics
Topic: GP & CSA for Mikrotik devices
Replies: 7
Views: 4901

Re: GP & CSA for Mikrotik devices

viewtopic.php?p=1148093#p1148047

I would propose an addition:
#24: The user usually is not able to follow or understand multiple information in a single post, so either he only considers the first one or the last one ignores all the previous ones.
by rextended
Fri Jun 13, 2025 10:10 am
Forum: Scripting
Topic: DHCP Threshold Alert
Replies: 5
Views: 722

Re: DHCP Threshold Alert

Second Is #16 of the list:
viewtopic.php?p=1128345

I would propose an addition:
#24: The user usually is not able to follow or understand multiple information in a single post, so either he only considers the first one or the last one ignores all the previous ones.
by rextended
Fri Jun 13, 2025 1:17 am
Forum: Scripting
Topic: made function from dhcp server total user lease
Replies: 3
Views: 895

Re: made function from dhcp server total user lease

FNleasetotal1 do not :return nothing...

still not return nothing, also with useless :put [$function] (which means nothing written so randomly).
by rextended
Fri Jun 13, 2025 1:13 am
Forum: Scripting
Topic: DHCP Threshold Alert
Replies: 5
Views: 722

Re: DHCP Threshold Alert

Why do most people read the "first line" and ignore everything else that is written?
by rextended
Wed Jun 11, 2025 6:48 pm
Forum: Scripting
Topic: DHCP Threshold Alert
Replies: 5
Views: 722

Re: DHCP Threshold Alert

the first error is to use quote instead of code that make unreadable what you post. The second, very serious, mistake is to use the same name as the objects as the variable name. Another error is you do not specify RouterOS version, for example "used" exist on 7.19.1 but not on 7.16.2
by rextended
Wed Jun 11, 2025 10:19 am
Forum: MikroTik hardware questions
Topic: RB5009 cannot enter the system after restart
Replies: 98
Views: 12315

Re: RB5009 cannot enter the system after restart

@felixka

Can you please consider updating the guide so that it actually installs 7.18.2 instead of 7.0.3?

Thanks.
by rextended
Tue Jun 10, 2025 6:09 pm
Forum: Scripting
Topic: Remove mac address in IP-DHCP-LEASE from another script [SOLVED]
Replies: 8
Views: 1413

Re: Remove mac address in IP-DHCP-LEASE from another script [SOLVED]

why on first you do not wrote [find where="test"] ???
the reason why it doesn't work in the second line is the same.

you're close... compare the two [find ...] and see why the second one is not similar to the first one.
by rextended
Tue Jun 10, 2025 4:55 pm
Forum: Scripting
Topic: Remove mac address in IP-DHCP-LEASE from another script [SOLVED]
Replies: 8
Views: 1413

Re: Remove mac address in IP-DHCP-LEASE from another script [SOLVED]

So, remove what? remove want a number (from print) or an item id... and MAC address is not one and not another.
why don't you put the [find where ...], that return the apporpriate id wanted from remove, in the script like on first line?
by rextended
Mon Jun 09, 2025 11:17 pm
Forum: Scripting
Topic: made function from dhcp server total user lease
Replies: 3
Views: 895

Re: made function from dhcp server total user lease

FNleasetotal1 do not :return nothing...
by rextended
Sun Jun 08, 2025 2:29 am
Forum: General
Topic: Public-Mikrotik-Bandwidth-Test-Server(s) ( now shutdown as of April 1st 2025 )
Replies: 1093
Views: 1324953

Re: Public-Mikrotik-Bandwidth-Test-Server(s) ( now shutdown as of April 1st 2025 )

Hi, I've try to be sure from several IPs, I got auth failed using password I-Am-Not-A-Cron-Script and user according the first post, pity :(

Certo che sei sveglio...

according the first post the free service no longer exist
by rextended
Fri Jun 06, 2025 1:08 pm
Forum: General
Topic: Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure
Replies: 11
Views: 1752

Re: Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure

Can you tell me where it is written?
Said by MT support in one of my tickets, when I had a similar issue.
They should write this publicly somewhere rather than reporting it in tickets... 🤦🏻‍♂️
by rextended
Fri Jun 06, 2025 10:56 am
Forum: Announcements
Topic: v7.20beta [testing] is released!
Replies: 203
Views: 41555

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

There are routers that won't be accessible remotely to correct the ASN and/or router-id after the fact, so MikroTik should publish a valid/tested upgrade path (covering at least a few common setups) so we don't have to travel to remote datacenters and mountains to do the upgrade. In general, but wh...
by rextended
Fri Jun 06, 2025 10:45 am
Forum: General
Topic: Adding profile to users in V7 with no userman [SOLVED]
Replies: 6
Views: 1077

Re: Adding profile to users in V7 with no userman [SOLVED]

user-manager do not exist at all on v7. On v7 they add a radius server called with same name, but is not the same thing. Even if it could hypothetically migrate something ("try"), it doesn't work as expected and has absolutely none of the tools that the user manager had before. The real us...
by rextended
Fri Jun 06, 2025 10:32 am
Forum: General
Topic: Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure
Replies: 11
Views: 1752

Re: Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure

sendmail code

      :onerror errtext

I remember that somewhere I have already discussed this issue and for it to work correctly the variable must be defined first, if I remember correctly...
viewtopic.php?t=203158#p1046867
by rextended
Fri Jun 06, 2025 10:30 am
Forum: General
Topic: Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure
Replies: 11
Views: 1752

Re: Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure

[:do ... on-error] was deprecated

Can you tell me where it is written?
by rextended
Thu Jun 05, 2025 2:01 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

Can't you at least show a little good will to conceal the fact that you're not here to be a leech?
:return "$($LcaseMnts->$mnthStart)/$[$Fzerofill $dayStart]/$yearStart $timeStart"
by rextended
Thu Jun 05, 2025 1:34 pm
Forum: MikroTik hardware questions
Topic: RB5009 cannot enter the system after restart
Replies: 98
Views: 12315

Re: RB5009 cannot enter the system after restart

I found a temporary solution...if you unplug all the eth cable and leave only the power, it boot up normally.
try it


Your problem has absolutely nothing to do with what is described on this topic.
by rextended
Thu Jun 05, 2025 1:24 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

@jaclaz
The solution is on the script itself.
The feeds are over, we are not his employees.
by rextended
Tue Jun 03, 2025 6:29 pm
Forum: Scripting
Topic: script trigger on interface down
Replies: 12
Views: 3562

Re: script trigger on interface down

For example: # for kill the EventHandler run /system script job remove [find where .id=$jobID] :global jobID *0 :global EventHandler do={ /log info "The interface $1 change status." # put here what you want to do after some checks, etc. :return 0 } :set jobID [:execute ":global EventH...
by rextended
Tue Jun 03, 2025 5:23 pm
Forum: Scripting
Topic: script trigger on interface down
Replies: 12
Views: 3562

Re: script trigger on interface down

Does ROS provide a way of monitoring interface states or properties?
Not everywhere, but can be done by scripting.
by rextended
Tue Jun 03, 2025 5:19 pm
Forum: Scripting
Topic: script trigger on interface down
Replies: 12
Views: 3562

Re: script trigger on interface down

The thread was revived re-stating the question in much more general terms, and Josephny's suggestion does cover one of the possible events that can happen on an interface. Honestly, it doesn't seem to me to be very far from the on-state-change / on-up / on-down requirement. It is more logical and c...
by rextended
Tue Jun 03, 2025 1:26 pm
Forum: Scripting
Topic: script trigger on interface down
Replies: 12
Views: 3562

Re: script trigger on interface down

This works great for me:

Please see:
Doesn't cover the OP's request at all...
by rextended
Tue Jun 03, 2025 12:15 am
Forum: Scripting
Topic: script trigger on interface down
Replies: 12
Views: 3562

Re: script trigger on interface down

Evidence that proves this?
by rextended
Fri May 30, 2025 7:35 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

Another good point... ;)
by rextended
Fri May 30, 2025 5:37 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

The scheduler, script and on-event script are present on supout?
If yes: Except what is stored inside script, ANY script, on any position.
by rextended
Fri May 30, 2025 11:37 am
Forum: General
Topic: Effective Backup Strategy for a MikroTik Router in Disaster Recovery Scenarios
Replies: 12
Views: 1968

Re: Effective Backup Strategy for a MikroTik Router in Disaster Recovery Scenarios

https://forum.mikrotik.com/viewtopic.php?p=858564#p858564 At the time there were no containers, but basically you need to back up and sync: files on device, eSIM, containers, the dude database, the dude files, user-manager database, user-manager files certificates (CA for generate new certs not long...
by rextended
Thu May 29, 2025 12:26 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

It looks like we found a workaround for scripts...
We? :lol:

FIX code

/ip/service set [find name="winbox" !dynamic] address=192.168.0.0/24
by rextended
Thu May 29, 2025 12:14 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

I suggest: Put port status in separate tab instead of mixing togeter configuration and working status
by rextended
Thu May 29, 2025 12:08 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

7.18.2 code

# software id = 6A66-ZR6Z
# serial number = ****
Last edited by BartoszP on 2025-05-29 10:52:34, edited 3 times in total. Reason: serial# obsfucation
Thanks.... but.... ;)
by rextended
Thu May 29, 2025 12:06 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

If you define service by number (numbers="") instead of name command
let's not start writing bull–t.
by rextended
Thu May 29, 2025 11:59 am
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

It looks like root of the problem might be in naming i.e. dynamic entries have same name as static ones. Right, for do test I use MAC telnet, because changing address cut me out from winbox.... Ok, another problem added... The problem is RouterOS... two entry with same name, only the last count... ...
by rextended
Thu May 29, 2025 11:11 am
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

Another note: Same error occurs when trying to set addresses parameter for other IP services. Our script sets address parameter for each of ssh, telnet and winbox, and all three routinely fail with the same error message shown above. Look at ip services output and you will understand why. Changing ...
by rextended
Wed May 28, 2025 7:14 pm
Forum: Scripting
Topic: feature request; less case sensitivity
Replies: 5
Views: 1166

Re: feature request; less case sensitivity

When you asked "Google" to change google docs so that it doesn't automatically capitalize new line, what did they say to you? This tendency to pretend that because of others one must modify the behavior of one's programs denotes many things. Above all, where is it written that Google Docs ...
by rextended
Wed May 28, 2025 5:34 pm
Forum: Scripting
Topic: Converting String to two integers
Replies: 5
Views: 3354

Re: Converting String to two integers

917.5kbps if you remove kbps remain 917.5 that on RouterOS is still a string because do not support decimal numbers, so, on that case: 123.45Mbps/917.5kbps split at bps/ and -3 length and you have: 123.4M and 917.5k If you want omogeneous numbers, convert both on bit: check if are present M or K and...
by rextended
Wed May 28, 2025 1:54 pm
Forum: The Dude
Topic: winbox login
Replies: 5
Views: 17351

Re: winbox login

Y.Y.Y.Y is everytime 127.0.0.1???
by rextended
Wed May 28, 2025 1:02 pm
Forum: Announcements
Topic: v7.20beta [testing] is released!
Replies: 203
Views: 41555

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

*) bgp - decode and log notifications;
Thanks...


*) routing-filter - added filter-wizard (filter generator with v6-like syntax);
Uh....
by rextended
Tue May 27, 2025 6:37 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

I feel sorry for you, it's time you hire someone or study scripting.

We are not here to work for you, to explain to us step by step what you need and we will do it for you.
by rextended
Tue May 27, 2025 5:21 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

If you do not know scripting, you must not alter the function. so, between :global futuredatetimestr do={ and } you must not change or add anything. And if you have one example on how to call the function :put [$futuredatetimestr 1d00:00:00] you must respect that example so: :global futuredatetimest...
by rextended
Tue May 27, 2025 12:17 pm
Forum: Beginner Basics
Topic: Single address DHCP (/30)
Replies: 4
Views: 1219

Re: Single address DHCP (/30)

sure, if there is only one number in the pool, obviously it only assigns one...
by rextended
Tue May 27, 2025 11:10 am
Forum: Beginner Basics
Topic: Single address DHCP (/30)
Replies: 4
Views: 1219

Re: Single address DHCP (/30)

basta che metti solo un IP, anziché un intervallo....
by rextended
Mon May 26, 2025 10:07 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

Now it's time for you to learn how to script, I can't spoon-feed you.

Use :pick
by rextended
Mon May 26, 2025 10:00 pm
Forum: MikroTik hardware questions
Topic: RB5009 cannot enter the system after restart
Replies: 98
Views: 12315

Re: RB5009 cannot enter the system after restart

@pe1chl I want to be clear and precise: I am not saying that this is your error in any way. By the way, as you can see, I also tried it personally on the RB5009, and it seemed to work... Until I turned it back on day after when I read the problem on forum... What I was referring to is written here,...
by rextended
Mon May 26, 2025 9:38 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19.1 [stable] is released!

Aside from the idiot (I'm referring to the one who was reported but the moderators didn't care and left the insult), we need to be objective. Let's base it on the facts. In RouterOS it is possible to start the device permanently with the factory bios, in case there are problems, in fact that option ...
by rextended
Mon May 26, 2025 8:08 pm
Forum: Scripting
Topic: Need help with auto-reboot
Replies: 6
Views: 1375

Re: Need help with auto-reboot

But the most important question is: why if there is watchdog for this specific thing, you prefer to waste time making scripts? https://help.mikrotik.com/docs/spaces/ROS/pages/8978694/Watchdog If 8.8.8.8 do not respond for 6 times on 60 seconds, the device reboot (1 ping each 10 seconds is the defaul...
by rextended
Mon May 26, 2025 7:58 pm
Forum: Scripting
Topic: Need help with auto-reboot
Replies: 6
Views: 1375

Re: Need help with auto-reboot

is not :execute /system reboot without quotas, is :execute "/system reboot" Writing script exports instead of scripts makes everything harder. Why don't you use winbox or terminal editor??? Also one line script is hard to fix and understand: :local failedCount 0; :local totalCount 20; :loc...
by rextended
Mon May 26, 2025 7:46 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

Is your copy&paste broken? Is not the same script.... [test@6.48.7] > :put [$futuredatetimestr 1d00:00:00] 2025/05/27 18:47:04 Are you able to read and understand previous posts? :local interval [/system scheduler get [find where name=TEST] interval ] and use CODE tag, not QUOTE tag, or make scr...
by rextended
Mon May 26, 2025 6:29 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

:global futuredatetimestr do={ /system clock :local vdate [get date] :local vtime [get time] :local vgmt [:tonum [get gmt-offset]]; :if ($vgmt > 0x7FFFFFFF) do={:set vgmt ($vgmt - 0x100000000)} :local prMntDays [:toarray "0,0,31,59,90,120,151,181,212,243,273,304,334"] :local daysOnMnt [:t...
by rextended
Mon May 26, 2025 6:15 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

add to current unix time the seconds from interval, and change back the unix time on date and time.

all functions to do that already exist on my repository
by rextended
Mon May 26, 2025 5:49 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

:local interval [/system scheduler get [find where name=TEST] interval ] {... :put $ interval {... :local interval do={ and then how many times must it be written that IT IS WRONG TO USE VARIABLE NAMES THAT ARE THE SAME AS OBJECTS THAT ALREADY EXIST ??? if you get "interval" you can not us...
by rextended
Mon May 26, 2025 5:14 pm
Forum: Scripting
Topic: Need help with auto-reboot
Replies: 6
Views: 1375

Re: Need help with auto-reboot

Until you test the script on the terminal, you have everytime to confirm y/n.
Only :execute "/sys reboot" can avoid that on terminal (and is :execute "/sys reboot" not :execute {/sys reboot}).


If you run the script on scheduler, confirmation are not needed.
by rextended
Mon May 26, 2025 5:01 pm
Forum: Scripting
Topic: Remove Address List Entry by Comment
Replies: 5
Views: 6462

Re: Remove Address List Entry by Comment

Uselessly complex: /ip firewall address-list remove [find where list="list-name"] and the OP is "Remove Address List Entry by Comment" so: /ip firewall address-list remove [find where comment="the comment"] but that delete only when the comment is EXACTLY "the comm...
by rextended
Mon May 26, 2025 4:11 pm
Forum: Scripting
Topic: Taking next run from another script [SOLVED]
Replies: 41
Views: 5648

Re: Taking next run from another script [SOLVED]

The instruments are all there.
viewtopic.php?t=177551#p977175
by rextended
Fri May 23, 2025 7:23 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19 [stable] is released!

open separate topic and show "roguevpn" script
by rextended
Fri May 23, 2025 7:20 pm
Forum: MikroTik hardware questions
Topic: RB5009 cannot enter the system after restart
Replies: 98
Views: 12315

Re: RB5009 cannot enter the system after restart

https://forum.mikrotik.com/viewtopic.php?p=1142228#p1142228 It all started from here, but whatever happens the forum users are not responsible for the firmware/software in any way. For the record: even my RB5009 where I did the tests (for 70x0 Armada), now that I tried to turn it on again, does not ...
by rextended
Fri May 23, 2025 7:04 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19 [stable] is released!

WinBox 3 doesn't work with 7.21. WTF ??? Ok, WinBox 4 is still on beta , is far from be stable and interface usable on producion, and this is their move. (And what's the problem? Just use the classic method, just remove the "beta" label...) So from 7.21, if not already from 7.20, WinBox 3...
by rextended
Fri May 23, 2025 5:39 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19 [stable] is released!

Hello,

over a 100 Cap's are down due to this 7.19 update!

And who made you update the devices in production with software that was just released yesterday???
But how do you work? Didn't you even take a separate test?
by rextended
Fri May 23, 2025 5:36 pm
Forum: Announcements
Topic: v7.19.1 [stable] is released!
Replies: 410
Views: 82079

Re: v7.19 [stable] is released!

On the other hand idiots claiming that there is some secret reasons to do this anyway probably pushed some to do it Re: v7.18.2 [stable] is released! Post by rextended » Fri May 09, 2025 9:09 pm To avoid having problems like in other topics, it's better to update while you can... ignoring whether o...
by rextended
Wed May 21, 2025 3:31 pm
Forum: Scripting
Topic: LTE radio status to file - CME22
Replies: 1
Views: 1007

Re: LTE radio status to file - CME22

"output=" is unrecognized RouterOS command.

you must pass a string to :execute, not a function result.

Where you see :execute [<something>] syntax?
by rextended
Mon May 19, 2025 7:54 pm
Forum: General
Topic: Backup password confirmation FEATURE REQ
Replies: 9
Views: 1969

Re: Backup password confirmation FEATURE REQ

there should be at least some "Show Password" option
Already exist from 2007.................. on Settings click on "Hide Password" tho show or hide password... on terminal is already showed, but the line on new v7 do not go on history.
by rextended
Fri May 16, 2025 9:50 pm
Forum: Beginner Basics
Topic: Looking for tutorials how to configure MikroTik routerOS based routers
Replies: 9
Views: 1801

Re: Looking for tutorials how to configure MikroTik routerOS based routers

I do not see any HA if you do not have 2 (two) different internet sources from different directions (yes, directions...).

You still have only one breaking point and if the switch breaks everything stops.
by rextended
Fri May 16, 2025 9:18 pm
Forum: Forwarding Protocols
Topic: Routing or NAT ? Suggestions needed...
Replies: 15
Views: 3449

Re: Routing or NAT ? Suggestions needed...

I'm sorry for being vague, I just looked at my IP-letter from the ISP where it says: (IP's changed) IP-addresses: 10.10.10.4-14 Gateway: 10.10.10.1 Netmask: 255.255.255.240 IP-Net: 10.10.10.0/28 and what happened to the .2 and .3???? a typo in the letter for sure??? So I guess I have to pick a port...
by rextended
Fri May 16, 2025 9:04 pm
Forum: General
Topic: Backup password confirmation FEATURE REQ
Replies: 9
Views: 1969

Re: Backup password confirmation FEATURE REQ

Why are you reading me if you blocked me? You are not consistent with what you write. 2. Testing it immediately requires a reboot, ever consider that the router may be in use and can't be instantly rebooted. As an excuse it's ridiculous, when you reset it you could have FIRST tried to reload the bac...
by rextended
Fri May 16, 2025 5:53 pm
Forum: Forwarding Protocols
Topic: Routing or NAT ? Suggestions needed...
Replies: 15
Views: 3449

Re: Routing or NAT ? Suggestions needed...

A /28 are 16 addresses or 14 if the ISP like wate ip, or 12 if ISP like wate ip and for ptp are used the IPs of the pool, not 10.... You didn't explain well, just gave vague clues. If your provider gives you 198.51.100.y as its IP and assigns you 198.51.100.(usually y +1 or y -1) and also gives you ...
by rextended
Fri May 16, 2025 12:46 pm
Forum: Scripting
Topic: Block TOR list with script
Replies: 2
Views: 1325

Re: Block TOR list with script

What would be the request?

Do you expect any correct result by writing random things in the script?

Who is convinced that just using :toarray will convert that file into an array?
Ask whoever made that awful script.
by rextended
Fri May 16, 2025 11:25 am
Forum: General
Topic: Winbox - Terminal is asking for password after Firmware Upgrade
Replies: 3
Views: 1070

Re: Winbox - Terminal is asking for password after Firmware Upgrade

firmware is firmware,
software is software.


Netinstall the device and see if is any error on formatting NAND/Flash
by rextended
Fri May 16, 2025 11:07 am
Forum: Scripting
Topic: Add and then selectively remove files
Replies: 8
Views: 1534

Re: Add and then selectively remove files

I do not have any experience with ups&mikrotik linked directly.

ups topic log all ups related logs, the same you can see on "memory"
by rextended
Thu May 15, 2025 11:56 pm
Forum: Scripting
Topic: DynDNS update with Strato DNS fails
Replies: 10
Views: 2376

Re: DynDNS update with Strato DNS fails

Google "http error 301"...
by rextended
Thu May 15, 2025 7:52 pm
Forum: General
Topic: Backup password confirmation FEATURE REQ
Replies: 9
Views: 1969

Re: Backup password confirmation FEATURE REQ

"export" is better than backup, and why you set a password for yourself ? You are the first one who made a mistake, you should have tested if the backup you just made would recover , instead of hoping that it would work later. You can also write the password wrong twice in the same way...
by rextended
Thu May 15, 2025 7:04 pm
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 641
Views: 300470

Re: v7.18.2 [stable] is released!

I asked about the importance of that "Optimal nand stability requires a backup-routerboot upgrade" message but never got an answer. To avoid having problems like in other topics, it's better to update while you can... ignoring whether one uses that feature or not. There is more underneath...
by rextended
Thu May 15, 2025 7:02 pm
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 641
Views: 300470

Re: v7.18.2 [stable] is released!

..[CUT]..
Remember when something goes wrong during the upgrade, your device is bricked.
And do not bother trying to upgrade 16MB flash devices ..

And do not bother trying to upgrade unsupported devices ..

viewtopic.php?p=1142236#p1142236
by rextended
Thu May 15, 2025 3:19 pm
Forum: Scripting
Topic: DynDNS update with Strato DNS fails
Replies: 10
Views: 2376

Re: DynDNS update with Strato DNS fails

just simply use url="..." with right parameters without all other useless frills.
by rextended
Thu May 15, 2025 3:18 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2412
Views: 5307812

Re: 📣 WinBox 4 is here 📣



Plus One Here !! :-)
This is NOT the place to ask for RouterOS improvements. It is for WinBox 4.
I think it's about exporting logins saved inside winbox, it has nothing to do with users inside routers.
I hope...
by rextended
Thu May 15, 2025 3:08 pm
Forum: Scripting
Topic: Add and then selectively remove files
Replies: 8
Views: 1534

Re: Add and then selectively remove files

1) & 2) Yes! 3) I checked the documentation and I don't see what exactly will be written, and when (i.e., on what occurrences). Work exactly as "memory", just is saved on disk and persist after reboot. You can choice what event save on disk. Usually I save on disk only "critical&q...
by rextended
Thu May 15, 2025 3:03 pm
Forum: Scripting
Topic: Add and then selectively remove files
Replies: 8
Views: 1534

Re: Add and then selectively remove files

(see next post)
by rextended
Thu May 15, 2025 3:01 pm
Forum: General
Topic: The Hikvision camera is not working with the CRS328-24P-4S+ switch
Replies: 3
Views: 1139

Re: The Hikvision camera is not working with the CRS328-24P-4S+ switch

What is the reply from Hikvision?

Hikvision produce the device, not MikroTik.
by rextended
Thu May 15, 2025 12:14 pm
Forum: Scripting
Topic: Add and then selectively remove files
Replies: 8
Views: 1534

Re: Add and then selectively remove files

is /system, not :system do not use names for variables like what already exist Uusing separators, the English date format or the names of the months has always been a bullshit in computer science when it comes to "indexing" something. For names, use :pick to selectiveli get year, month, da...
by rextended
Thu May 15, 2025 11:53 am
Forum: General
Topic: Whats wrong with mikrotik and your AX Series?
Replies: 18
Views: 2368

Re: Whats wrong with mikrotik and your AX Series?

curious what technology @rextended replaced it with I do not advertise for third parties, out of respect for the forum that hosts us. I have used, or rather I still use where I have now mounted it, the shitty products of Cambium Shittium, crappy interface and ridiculous functions. They always make ...
by rextended
Thu May 15, 2025 11:38 am
Forum: General
Topic: Whats wrong with mikrotik and your AX Series?
Replies: 18
Views: 2368

Re: Whats wrong with mikrotik and your AX Series?

Their administrators are still convinced that 802.11ac is better than nv2. (yes, ac, is wanted)
From the lab tests this truth is overwhelming.
But they are all office workers, no one has ever gone out to get their hands dirty working with their own products as WISP.
by rextended
Thu May 15, 2025 10:52 am
Forum: Beginner Basics
Topic: Review of PPPoE and Firewall rules for improvements [SOLVED]
Replies: 10
Views: 2604

Re: Review of PPPoE and Firewall rules for improvements [SOLVED]

1- Why is blocking ICMP a bad idea? It is written everywhere, and in any case the Linux kernel already prevents its abuse, therefore, apart from particular cases (which I do not want to talk about so as not to confuse) it should always be allowed for correct MTU negotiation. 2- Is the problem the M...
by rextended
Wed May 14, 2025 7:53 pm
Forum: Scripting
Topic: DynDNS update with Strato DNS fails
Replies: 10
Views: 2376

Re: DynDNS update with Strato DNS fails

On the script the url is right, why on log the url is not the same?...
by rextended
Wed May 14, 2025 7:35 pm
Forum: Scripting
Topic: DynDNS update with Strato DNS fails
Replies: 10
Views: 2376

Re: DynDNS update with Strato DNS fails

Google "http error 301"...
by rextended
Wed May 14, 2025 4:49 pm
Forum: General
Topic: CRS354-48P-4S+2Q+ traffic problem on ports 1 to 8
Replies: 456
Views: 160283

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

Contac support, not forum users...
by rextended
Wed May 14, 2025 11:31 am
Forum: Forwarding Protocols
Topic: BGP routing issue
Replies: 17
Views: 3612

Re: BGP routing issue

You are all continuing to write in a circle, but no one has a response from the OP who wanted a solution IMMEDIATELY, instead he was written to 12 days later and the user has already disappeared. You are making empty conjectures, because: 1) You have no responses or confirmations; 2) In the "as...
by rextended
Tue May 13, 2025 5:17 pm
Forum: General
Topic: Upgrading Memory and Routing Table Limit
Replies: 3
Views: 1193

Re: Upgrading Memory and Routing Table Limit

For upgrading memory, you must open the lid... So, no warranty... ???

Do you know how to google?
try "open CRS520-4XS-16XQ" in the search...


How many active table you have on the device in production, and from what source?
by rextended
Tue May 13, 2025 5:11 pm
Forum: Forwarding Protocols
Topic: BGP routing issue
Replies: 17
Views: 3612

Re: BGP routing issue

If I remember correctly, or if it hasn't changed over time, it's not enough to be multihomed with two links to the same AS, but you need at least two different AS... Unless you need to assign different ways to reach different remote IPs, even if you have two or more providers, the default route will...
by rextended
Tue May 13, 2025 5:02 pm
Forum: Forwarding Protocols
Topic: BGP routing issue
Replies: 17
Views: 3612

Re: BGP routing issue

I have been using BGP on v6 for years, with no issues with IPv4 or IPv6. After some forced use of v7 on CCR2004, I removed that router because it works better with CCR1036 on v6. I can't wait for them to fix all the issues on v7. Listing here is pointless, the forum is full of complaints that have r...
by rextended
Tue May 13, 2025 4:39 pm
Forum: General
Topic: Whats wrong with mikrotik and your AX Series?
Replies: 18
Views: 2368

Re: Whats wrong with mikrotik and your AX Series?

In fact, that's what I wrote before... inside the house the ax products are valid, but outside they are like the ac ones without the nv2.
However many laboratory tests you can do, then in real life, and when it's your job, it's different.
by rextended
Tue May 13, 2025 1:05 pm
Forum: General
Topic: Whats wrong with mikrotik and your AX Series?
Replies: 18
Views: 2368

Re: Whats wrong with mikrotik and your AX Series?

Nv2 is the only thing that make usable RouterOS devices for WISP. Contrary to anything that someone who does NOT work as a WISP with MikroTik products might write, the NV2 is the only reason why I did not replace the MikroTik devices with others to work with years ago. Now in fact I do not use them ...
by rextended
Tue May 13, 2025 12:59 pm
Forum: General
Topic: Whats wrong with mikrotik and your AX Series?
Replies: 18
Views: 2368

Re: Whats wrong with mikrotik and your AX Series?

For what?

NV2 no longer exist and QuickSet is not for WISP.
by rextended
Tue May 13, 2025 11:43 am
Forum: Scripting
Topic: WAN traffic statistics
Replies: 10
Views: 4303

Re: WAN traffic statistics

Units should be consistent.

If calculations are in xiB, the result cannot be in xB

gigabyte => gibibyte


:local gb gib 1073741824

:local gb 1000000000
by rextended
Mon May 12, 2025 7:34 pm
Forum: Beginner Basics
Topic: Review of PPPoE and Firewall rules for improvements [SOLVED]
Replies: 10
Views: 2604

Re: Review of PPPoE and Firewall rules for improvements [SOLVED]

It is V i Tal that you ask your provider to protect you from (true) DDoS because you yourself have configured the device so that after a few minutes of DDoS the system crashes due to exhausted memory. The firewall is terrible and the choice to block ICMP is also terrible. Not to mention uselessly pr...
by rextended
Mon May 12, 2025 5:55 pm
Forum: Scripting
Topic: loop "for" in /interface bridge port [SOLVED]
Replies: 11
Views: 2211

Re: for i loops in /interface bridge port [SOLVED]

The logic of anything would be that they should not already be bridged ports before trying to put them in again...

The script assumes to configure a device that has never been configured, not to modify something that already exists...
by rextended
Mon May 12, 2025 5:05 pm
Forum: Scripting
Topic: loop "for" in /interface bridge port [SOLVED]
Replies: 11
Views: 2211

Re: for i loops in /interface bridge port [SOLVED]

hw=yes disabled=no are defaults, so, completely useless. :global GconnEth "ether1" ; # WAN interface :global GmgmtEth "ether5" ; # MGMT interface /int bridge remove [find] add name=bri-lan protocol-mode=none /int bridge port remove [find] :foreach iTest in=[/int ethernet find whe...
by rextended
Mon May 12, 2025 4:14 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

yes, thanks, fixed previous post

:local lrttavg           ($"rtt-avg"      / 1000)

# or with approx fix:
:local lrttavg           ($"rtt-avg"      / 1000)
:if (($"rtt-avg" % 1000) > 0) do={ :set lrttavg ($lrttavg + 1) }
by rextended
Mon May 12, 2025 4:12 pm
Forum: Scripting
Topic: loop "for" in /interface bridge port [SOLVED]
Replies: 11
Views: 2211

Re: for i loops in /interface bridge port [SOLVED]

So, the error message is correct, what do you expect?
by rextended
Mon May 12, 2025 3:49 pm
Forum: Scripting
Topic: loop "for" in /interface bridge port [SOLVED]
Replies: 11
Views: 2211

Re: for i loops in /interface bridge port [SOLVED]

/interface bridge port export
what show?
by rextended
Mon May 12, 2025 3:35 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

Just thinking aloud, but the "risk" [...] right... in pseudocode, just one example if (x % 1000) > 0 then add +1 to the result. on that way 00000 is 0, 100000 is 100 and all numbers between 000001 and 099999 are inside 001..100 but 100001 is 101 And the line " Netwatch had a down eve...
by rextended
Mon May 12, 2025 3:29 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

If you do not notice, the previous post is all what you need for write that line on logs.
by rextended
Mon May 12, 2025 3:14 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

or better for fix all, not only spaces.... /tool netwatch :local thisBox [/system identity get name] :local lhost [:toip $host] :local lstatus $status :local llosspercent ($"loss-percent" / 10) :local lrttavg ($"rtt-avg" / 1000) :local netwatchID ([find where host=$lhost and type...
by rextended
Mon May 12, 2025 3:04 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

easy for some problems:
was $roundrttavg ms
->
was $"roundrttavg"ms
by rextended
Mon May 12, 2025 10:15 am
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

academically that's one thing,
but in practice, just ignore microseconds and use milliseconds...
so a /1000 suffice...

instead if it were, for example, the voltage "2357",
there is a big difference between writing 23V and 23.57V
by rextended
Sat May 10, 2025 12:41 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

The FACTS are that what you are doing with SUPPORT is completely useless . Use the netinstall 7.12.x that works and forget about them fixing it for old factory-routerboot devices. If then the 7.18.2 factory-firmware update in your model works, MAYBE you have solved the problem. Since netinstall 7.12...
by rextended
Fri May 09, 2025 11:09 pm
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 641
Views: 300470

Re: v7.18.2 [stable] is released!

To avoid having problems like in other topics, it's better to update while you can... ignoring whether one uses that feature or not.
There is more underneath (unsaid, don't ask) that makes it worth updating.

ERRATA CORRIGE: ARM64 / AMPERE 70x0 (Armada) IS SUPPORTED
by rextended
Fri May 09, 2025 8:49 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

MikroTik has released a new update that also includes the ipq8060
It is worth a try...
viewtopic.php?p=1142236#p1142236
by rextended
Fri May 09, 2025 8:09 pm
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 641
Views: 300470

Re: v7.18.2 [stable] is released!

Note that the procedure to update the backup bootloader at https://help.mikrotik.com/docs/spaces/ROS/pages/40992878/RouterBOARD#RouterBOARD-Protectedbootloader has now been updated to support version 7.18.2 (ONLY!) so when you get those warnings about NAND stability after an upgrade, now is the tim...
by rextended
Fri May 09, 2025 7:36 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

That's just text describing what that value is, it's not operations... >< is used to identify where the value should be written, it's just text... :log info "runtime loss-percent is >$($llosspercent/10)< %" :log info "runtime rtt-avg is >$lrttavg< us >$($lrttavg/1000)< ms" It is ...
by rextended
Fri May 09, 2025 3:43 pm
Forum: General
Topic: What os / browser / version do you use for this forum ?
Replies: 11
Views: 2101

Re: What os / browser / version do you use for this forum ?

different internet connection.

:wink:
by rextended
Fri May 09, 2025 3:24 pm
Forum: Beginner Basics
Topic: How can I set a static IP address for a specific device? [SOLVED]
Replies: 3
Views: 1635

Re: How can I set a static IP address for a specific device? [SOLVED]

I suggest you to use on pool IP range x.x.x.101 -> x.x.x.199 (99 dynamic devices on home suffice... or not?...) and when you set static lease change the y.y.y.1xx to y.y.y.201 next device y.y.y.202 next y.y.y.203 and so on till y.y.y.254 for each device (~54 static devices on home suffice... or not?...
by rextended
Fri May 09, 2025 3:18 pm
Forum: General
Topic: What os / browser / version do you use for this forum ?
Replies: 11
Views: 2101

Re: What os / browser / version do you use for this forum ?

Actualy sometime I get "500" error, but with "F5" all work again until the next time I open the forum next day.
by rextended
Fri May 09, 2025 3:04 pm
Forum: General
Topic: What os / browser / version do you use for this forum ?
Replies: 11
Views: 2101

Re: What os / browser / version do you use for this forum ?

W10 Pro for Workstations (64 bit) 22H2 19045.5796
F 138.0.1 (64 bit)
by rextended
Fri May 09, 2025 2:47 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

FYI, thr-loss-percent reports a value ten times the actual set value. That is, Netwatch has a value of 80% and the log shows: You do not read??? :log info "runtime loss-percent is >$llosspercent</10 %" $llosspercent /10 % And, the rtt-avg of 24516 actually means 24.516ms. The same: :log i...
by rextended
Fri May 09, 2025 2:45 pm
Forum: General
Topic: Using AI to help configuring RouterOS and scripting
Replies: 51
Views: 7674

Re: Using AI to help configuring RouterOS and scripting

the unique charm of RouterOS scripting isn't lost when someone stumbles upon rextended’s script collection.
Sorry, but in what sense, I don't understand... :?:
by rextended
Thu May 08, 2025 8:13 pm
Forum: The User Manager
Topic: removing sessions
Replies: 3
Views: 10255

Re: removing sessions

:foreach i in=[/user-manager session find where active=no] do { /user-manager session remove $i; }

This remove only inactive sessions

Necroposting for that????

is better 2+2=4 or 1+2+3+4+5-11=4 ?

/user-manager session remove [find where active=no]
by rextended
Thu May 08, 2025 8:11 pm
Forum: Scripting
Topic: user-manager session Removal
Replies: 4
Views: 3880

Re: user-manager session Removal

Necroposting for that????
:foreach i in=[/user-manager session find where active=no] do { /user-manager session remove $i; }

is better 2+2=4 or 1+2+3+4+5-11=4 ?

/user-manager session remove [find where active=no]
by rextended
Thu May 08, 2025 3:22 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Scripting in the context of Netwatch

also the name can be omitted (...) or can be duplicated. This is how to read properties and runtime results: /tool netwatch :local lhost [:toip $host] :local lstatus $status :local lsince $since :local ldonetests $"done-tests" :local lfailedtests $"failed-tests" :local lsentcount...
by rextended
Thu May 08, 2025 2:12 pm
Forum: Scripting
Topic: Scripting in the context of Netwatch
Replies: 57
Views: 5500

Re: Error when defining any local variable

Please provide an appropriate title, the current one IS WRONG and ONLY creates CONFUSION. First of all it is wrong to refer to netwatch in this way "/tool/netwatch get [find host=8.8.8.8]" because there can be more than 1 netwatch with the same IP 8.8.8.8, second, thr-avg is a property, an...
by rextended
Thu May 08, 2025 2:11 pm
Forum: General
Topic: Netwatch UP threshold
Replies: 61
Views: 5713

Re: Netwatch UP threshold

///
by rextended
Wed May 07, 2025 1:46 pm
Forum: Beginner Basics
Topic: can not create dummy ip pool 0.0.0.0-0.0.0.0 in routeros 7.18.2
Replies: 8
Views: 1780

Re: can not create dummy ip pool 0.0.0.0-0.0.0.0 in routeros 7.18.2

Before judging people [...] I didn't judge what you know, but how you behave. If I do something I don't know, I would never dare to write a title on a forum as if I were a RouterOS expert and there is a problem since 7.18.2. Your attitude is wrong and creates confusion for others. Chatgpt told me [...
by rextended
Tue May 06, 2025 3:07 pm
Forum: Beginner Basics
Topic: can not create dummy ip pool 0.0.0.0-0.0.0.0 in routeros 7.18.2
Replies: 8
Views: 1780

Re: can not create dummy ip pool 0.0.0.0-0.0.0.0 in routeros 7.18.2

Topic title: Can not create dummy ip pool 0.0.0.0-0.0.0.0 in routeros 7.18.2 ridiculous title Is there any version of RouterOS where such a stupid thing can be done? Chat gpt advises me chapgpt insist Any insight is much appreciated. SOLVED: The problem is not Sh1tGPT, it's you who listens to it.
by rextended
Fri May 02, 2025 3:03 pm
Forum: Scripting
Topic: Add interface to VRF by script / API
Replies: 16
Views: 4500

Re: Add interface to VRF by script / API

I forgot to specify that you can specify BOTH a list AND an interface in the v7 VRF definition. for example: /ip vrf add name=vrfTEST interfaces=listForVRFtest,ether3 and both previous v7 methods are valid. Then I won't investigate further what happens if an interface is both in the list and specifi...
by rextended
Fri May 02, 2025 3:01 pm
Forum: Scripting
Topic: Add interface to VRF by script / API
Replies: 16
Views: 4500

Re: Add interface to VRF by script / API

I add on previous post "example on v7 without list code"
by rextended
Fri May 02, 2025 2:50 pm
Forum: Scripting
Topic: Add interface to VRF by script / API
Replies: 16
Views: 4500

Re: Add interface to VRF by script / API

More easy add/remove compared with v6 if you use interface list: # create vrf and list, or better, first the list, then the vrf... /interface list add name=listForVRFtest /ip vrf add interfaces=listForVRFtest name=vrfTEST # add interface /interface list member add list=listForVRFtest interface=ether...
by rextended
Fri May 02, 2025 1:18 pm
Forum: Scripting
Topic: Add interface to VRF by script / API
Replies: 16
Views: 4500

Re: Add interface to VRF by script / API

Necroposting for nothing. The OP is very poorly written and explained even worse. Here we are, ten years later, and you still cannot add an interface to an existing VRF without replacing the existing ones... Don't write bulls–t. It's you who can't do it, not others. MikroTik can't fix your incompete...
by rextended
Fri May 02, 2025 12:30 pm
Forum: General
Topic: Here is a script & netwatch to auto reboot if/when you can't ping something
Replies: 4
Views: 5610

Re: Here is a script & netwatch to auto reboot if/when you can't ping something

providing scripts in this way, is really a bad way and should not be trusted (but I don't question the author of the OP) >>> dont-require-permissions=yes [...] policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon assigning ALL permissions to a script, especially if "pasted&qu...
by rextended
Thu May 01, 2025 11:46 am
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

You "knew about previous problems" with "old factory bootloader" and "why", but you didn't say any of this in your previous replies, and instead kept that knowledge to yourself. We are not mind readers here...we can only go off of what you actually say out loud , not w...
by rextended
Thu May 01, 2025 11:40 am
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

Sorry you wrote all this for nothing. OP can't read more than 2 lines in a single post that ignores the others, and you wrote a poem... https://forum.mikrotik.com/viewtopic.php?t=216303#p1140488 It has an ipq8060 chipset and the factory-firmware version is not upgradeable Despite what was clearly wr...
by rextended
Tue Apr 29, 2025 8:21 pm
Forum: General
Topic: Using AI to help configuring RouterOS and scripting
Replies: 51
Views: 7674

Re: Using AI to help configuring RouterOS and scripting

AI, or not AI, that is the question.

The last post.
by rextended
Tue Apr 29, 2025 7:58 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Bug: Phantom empty message in Telegram when sending from a third-party script

<also can be here useless return> Honestly, I'm tired of writing the same thing a hundred times everywhere on the forum. Make do. I'm tired of always having to prove everything and that people constantly try to refute (even writing wrong things before even checking them, like the post before yours)...
by rextended
Tue Apr 29, 2025 7:54 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Bug: Phantom empty message in Telegram when sending from a third-party script

I think you missed the previous pieces, it all started from this post:
viewtopic.php?t=215841#p1135988
and we're talking about how that script was written and why it causes errors when written that way.
by rextended
Tue Apr 29, 2025 10:57 am
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Bug: Phantom empty message in Telegram when sending from a third-party script

Coming here and writing "there is an alternative solution to your solution, but it is more complex" (and it doesn't work) is not a great solution... A simple check in the function body fixes the problem: :if ([$len $0]!=0) do={ }. and something should be put in there anyway, so why not JUS...
by rextended
Mon Apr 28, 2025 8:28 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

On the 23rd I asked you to give some commands and write the result on the forum, but you didn't care. https://forum.mikrotik.com/viewtopic.php?t=94303#p580430 I managed to find a RouterBOARD 3011UiAS and checked it out. It has an ipq8060 chipset and the factory-firmware version is not upgradeable al...
by rextended
Mon Apr 28, 2025 4:01 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

Factory firmware is presently 7.18.2 on both routers. I don't think so, how did you update it? factory-firmware: 3.27 on bad router / 3.41 on good router current-firmware: 7.18.2 upgrade-firmware: 7.18.2 Premise: factory-software and factory-firmware are two completely different things that should ...
by rextended
Mon Apr 28, 2025 2:49 pm
Forum: General
Topic: Device-mode not in backup
Replies: 3
Views: 1266

Re: Device-mode not in backup

Well, if you simply base it, without reasoning, that someone work with MikroTik products only if and since is registered on the forum... [and aside from the fact that (read carefully again) the WORK/PLAY part wasn't in the least referred to you] I'll avoid answering the "who has the biggest&quo...
by rextended
Mon Apr 28, 2025 2:27 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

In meantime try to netinstall the device with netinstall64 7.16.2 Did you read it? I wrote it on the 23rd, but like everything else, you didn't care . If you read the post carefully or didn't get distracted by the other roosters, at least for Netinstall you would have solved it immediately. I then ...
by rextended
Sat Apr 26, 2025 2:48 pm
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 641
Views: 300470

Re: v7.18.2 [stable] is released!

Is a device upgraded from v6, have some leftovers. Remove supout, is only for support@mikrotik.com and not for be shared on user forum because can contain sensitive data. I strongly suggest you change all your RouterBOARD passwords and also your wireguard keys. Consider that everything written insid...
by rextended
Sat Apr 26, 2025 2:45 pm
Forum: General
Topic: Downgrade ROS from 7.18.2
Replies: 3
Views: 1095

Re: Downgrade ROS from 7.18.2

use netinstall and install again the 6.48.7
by rextended
Sat Apr 26, 2025 2:25 pm
Forum: General
Topic: Device-mode not in backup
Replies: 3
Views: 1266

Re: Device-mode not in backup

Starting from the fact that requests must be made to support@mikrotik.com and not on the user forum, and that the device-mode is made with the feet because it doesn't take into account the equipment already in production, by those who WORK with it and don't PLAY with it... It makes no sense at all, ...
by rextended
Thu Apr 24, 2025 6:38 pm
Forum: MikroTik hardware questions
Topic: Chateau LTE-12 EG12-EA Manula download Link
Replies: 1
Views: 3249

Re: Chateau LTE-12 EG12-EA Manula download Link

The last available is:
https://upgrade.mikrotik.com/firmware/EG12-EA/EG12EAPAR01A12M4G/image

No matter if is reported the last as EG12EAPAR01A13M4G
by rextended
Thu Apr 24, 2025 5:58 pm
Forum: General
Topic: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]
Replies: 14
Views: 3139

Re: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]

I use S.I.C.E. (Capannori, ~5Km from Lucca) as distributor for the equipments, they have a lot of well trained staff.

I am in the same region, but Lucca is a little far away...

Curious why you asked...
by rextended
Thu Apr 24, 2025 5:53 pm
Forum: Beginner Basics
Topic: Not able to ping any address with pingtool
Replies: 10
Views: 1560

Re: Not able to ping any address with pingtool

@jaclaz

on 3rd comment: ether1 is on LAN bridge and also on WAN
by rextended
Thu Apr 24, 2025 3:07 pm
Forum: General
Topic: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]
Replies: 14
Views: 3139

Re: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]

finally made a personal visit on site... a certain 5hitty tplink did the aforementioned filter... no comment...



Thank you all for your time.
by rextended
Thu Apr 24, 2025 12:15 pm
Forum: General
Topic: How to block YouTube effectively
Replies: 50
Views: 40064

Re: How to block YouTube effectively

check my post and tellme if it works for you
viewtopic.php?t=216387
the usual bull~it, nothing new
by rextended
Thu Apr 24, 2025 12:14 pm
Forum: General
Topic: Block youtube/facebook using Layer 7 working perfect and blocking on pc and phones
Replies: 2
Views: 1791

Re: Block youtube/facebook using Layer 7 working perfect and blocking on pc and phones

Blocking YouTube with DNS is something that works only if you have full control of the devices... By default, for example, when some browsers are installed, they use DoH and not the "classic" DNS... Every now and then someone on the forum brings these topics back into fashion with "so...
by rextended
Thu Apr 24, 2025 11:45 am
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

you're right, it's an oversight, and the change is bull–it. It says "accept" in the comment and I got confused add action= drop chain=input comment="defconf: accept ICMP" log=yes log-prefix=fw-3-drop-icmp protocol=icmp anyway for this "problem" I think it doesn't count
by rextended
Thu Apr 24, 2025 10:54 am
Forum: Scripting
Topic: Scripts for black list vpn attackers...
Replies: 2
Views: 1213

Re: Scripts for black list vpn attackers...

That's the right way to crash your router by running out of memory. (and often they do it on purpose, because the intent is not to break into the network, but to crash the router...) Automatic blacklists are for ISPs (neither, really...), not consumers. You don't have enough resources to stop real d...
by rextended
Thu Apr 24, 2025 10:50 am
Forum: General
Topic: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]
Replies: 14
Views: 3139

Re: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]

Thanks for the tip.

For DNS, it definitely works at the command prompt, and there are no extensions installed on the browser.
(use my DNS and the servers server other 2000 customers that do not have that problem.
When I have physical access to the device then I will investigate further.
by rextended
Thu Apr 24, 2025 10:30 am
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

Just press the wrong button, and goodbye everything... /system routerboard reset-button set enabled=yes hold-time=5s..10s on-event=reset-configuration /system script add dont-require-permissions=yes name=reset-configuration owner=admin policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensit...
by rextended
Thu Apr 24, 2025 10:25 am
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

I'm not sure why you're accepting "untracked" in the first rule (i.e. connection-state=established,related ,untracked )... that is actually all traffic if it's first rule, I'm not sure why that is there... is the default https://forum.mikrotik.com/viewtopic.php?p=856824#p856824 untracked ...
by rextended
Wed Apr 23, 2025 8:55 pm
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

I wrote "Maybe", not that you are, you just appeared on the forum.
I have been here longer, and maybe I really am... :lol: ... :-|
by rextended
Wed Apr 23, 2025 8:51 pm
Forum: Beginner Basics
Topic: Load Balancing and Failover not working with my VPN connection
Replies: 4
Views: 1040

Re: Load Balancing and Failover not working with my VPN connection

do 2 VPN and use the adequate route like internet1/internet2 change...
by rextended
Wed Apr 23, 2025 8:41 pm
Forum: General
Topic: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]
Replies: 14
Views: 3139

Re: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]

@eltikpad On the CPE if I connect, for example, with fetch on https://mail.yahoo.com it responds, and the https certificate is correct, once passed their tplink router (I really want to say that I neither sold it to him nor configured it), nothing that contains "mail" anywhere in the domai...
by rextended
Wed Apr 23, 2025 8:20 pm
Forum: General
Topic: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]
Replies: 14
Views: 3139

Re: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]

That's right, I provide the connection and public IPs, but I don't control or manage their internal routers. Yes, I checked my devices and there is no filter (stupid filter I would say) that does this thing, but if someone had already had to deal with something like this... maybe it was enlightening...
by rextended
Wed Apr 23, 2025 8:13 pm
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

For ALL I mean ALL , not 1,3,4, etc............. sorry, almost all Are exactly 1000 tcp port, less than 2%. For almost , at least I expect 90%... Nmap for default scan exactly 1000 "random" ports? The #9 is still valid, till now... https://forum.mikrotik.com/viewtopic.php?p=1139632#p1139557
by rextended
Wed Apr 23, 2025 7:52 pm
Forum: General
Topic: NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]
Replies: 14
Views: 3139

NOT MT related: All domains containing "mail" in any part of the FQDN do not work [SOLVED]

NOT MT related: All domains containing "mail" in any part of the FQDN do not work I have a customer who has this problem on his internal PCs. I can't go there to check it out in person right now, I had to limit myself to doing some quick checks with remote desktop. Anyone have any idea wha...
by rextended
Wed Apr 23, 2025 7:16 pm
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

As you can see ALL ports are shown as opened.

For ALL I mean ALL, not 1,3,4, etc.............
by rextended
Wed Apr 23, 2025 5:31 pm
Forum: Beginner Basics
Topic: Load Balancing and Failover not working with my VPN connection
Replies: 4
Views: 1040

Re: Load Balancing and Failover not working with my VPN connection

The VPN (what is it?) does not pass through Internet1 or Internet2?

Redo the graph and you will understand why when the current Internet(1|2) does not work the VPN anymore
by rextended
Wed Apr 23, 2025 5:10 pm
Forum: Beginner Basics
Topic: Not able to ping any address with pingtool
Replies: 10
Views: 1560

Re: Not able to ping any address with pingtool

The more I look for the the WAN IP & router, the more I couldn't find it. Please edit your post and include verbatim copy of config using < / > code tags. Remove serials. No need to use external services. Is a spammer for the classical NameSurname and edit some week later the post for add the s...
by rextended
Wed Apr 23, 2025 5:02 pm
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

WinBOX: "Couldn 't add New NAT Rule - to-addres or to-ports must be specified (6)" Terminal: "failure: to-addresses or to-ports must be specified" I thought so too, but evidently it is a censorship for the rest of the text of the comment which contained private data that was elid...
by rextended
Wed Apr 23, 2025 2:47 pm
Forum: Beginner Basics
Topic: Default firewall configuration and nmap outputs [SOLVED]
Replies: 46
Views: 6389

Re: Default firewall configuration and nmap outputs [SOLVED]

I wonder what the chances are that all ports are actually open, it's unlikely. Probably "tarpit" & co. are used by the ISP to avoid the hassles you generate with port scanners. Even my customers end up in blacklist for 24 hours if they start doing scans. Either they warn me beforehand,...
by rextended
Wed Apr 23, 2025 2:11 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

I reread everything quite carefully, but perhaps not enough, and nowhere did I read that he netinstalled the two routerboards one after the other instead of one the month before and one today. And I don't even think I read that when it fails with that one, putting another netinstall succeeds, etc. o...
by rextended
Wed Apr 23, 2025 1:02 pm
Forum: MikroTik hardware questions
Topic: Netinstall on RM3011 Fails need help (technical questions)
Replies: 95
Views: 14280

Re: Netinstall on RM3011 Fails need help (technical questions)

If I try to netinstall 6.49.11 it says "Installing" for about 5 seconds then switches to "READY" it never formats the drive or installs routeros. Go on control panel/ethernet connections and disable all (included eg. bluetooth, wifi, etc.) devices except the ethernet used. Not m...
by rextended
Wed Apr 23, 2025 2:47 am
Forum: Scripting
Topic: Remove unit from GPS data - string operators - variable type
Replies: 2
Views: 1022

Re: Remove unit from GPS data - string operators - variable type

Bad assumptions: RouterOS do not support decimal numbers, only integer, so, only string if dot is present, or convert (using strings splitting at the dot) 1.480000 m to 1480 mm or 1480000 µm Use correct syntax, is full of errors and omissions. :local monGPS [/system gps monitor once as-value] :local...
by rextended
Tue Apr 22, 2025 4:51 pm
Forum: General
Topic: Public IP pool over pppoe
Replies: 21
Views: 2723

Re: Public IP pool over pppoe

Obviously the usual firewall considerations need to be made. Per i 2,5G ti consiglio una RB5009, è perfetta... A casa ho una 100M via CPE wireless RBSXTsqG-5acD... con me stesso... e la hEX-S è perfetta... stando in campagna niente fibra.............. Uh, questo è il post #13000, non me ne ero neanc...
by rextended
Tue Apr 22, 2025 11:06 am
Forum: Scripting
Topic: script to add bulk of users to UserMan
Replies: 10
Views: 1740

Re: script to add bulk of users to UserMan

( On v6 web interface exist "add batch" and you can download the list of generated users. )
by rextended
Tue Apr 22, 2025 10:57 am
Forum: General
Topic: Reset RouterOS without losing remote access (Winbox/SSH)
Replies: 21
Views: 2481

Re: Reset RouterOS without losing remote access (Winbox/SSH)

He probably demanded an immediate answer... and he just go away...

However, by not explaining the reason, he doesn't get the right hint.
by rextended
Tue Apr 22, 2025 10:42 am
Forum: General
Topic: Feature Request: Optional ability to restore without keeping MAC addresses
Replies: 18
Views: 2250

Re: Feature Request: Optional ability to restore without keeping MAC addresses

The main problem with .backup files is that if there is an error in the various databases where the configuration is, or "surprises" left by the migration from one version to another (you can read hundreds of cases on the forum) they carry the defects of one device to the next , without t...
by rextended
Sat Apr 19, 2025 2:16 pm
Forum: General
Topic: Reset RouterOS without losing remote access (Winbox/SSH)
Replies: 21
Views: 2481

Re: Reset RouterOS without losing remote access (Winbox/SSH)

He probably demanded an immediate answer... and he just go away...
by rextended
Sat Apr 19, 2025 2:10 pm
Forum: General
Topic: Feature Request: Optional ability to restore without keeping MAC addresses
Replies: 18
Views: 2250

Re: Feature Request: Optional ability to restore without keeping MAC addresses

It's not a competition . Just curiosity. - You have multiple remote customers Ok, you can (must...) have multiple .rsc for each customer, like you have multiple .backup for each custimer..... - Some of those remote customers may have different parts of the updates already configured. My .rsc script...
by rextended
Sat Apr 19, 2025 1:52 pm
Forum: General
Topic: Feature Request: Optional ability to restore without keeping MAC addresses
Replies: 18
Views: 2250

Re: Feature Request: Optional ability to restore without keeping MAC addresses

@Paternot Just let us export the backup from (say) RB5009 *DEAD* to *RB5009 NEW* @rextended Great, if you then explain to me how you export the backup from a dead device without extract nand/flash and put elsewhere, etc. And if she's dead, who cares if the new has that old MACs ... (in fact, it coul...
by rextended
Fri Apr 18, 2025 9:50 pm
Forum: General
Topic: Reset RouterOS without losing remote access (Winbox/SSH)
Replies: 21
Views: 2481

Re: Reset RouterOS without losing remote access (Winbox/SSH)

Maybe the meaning is "you can't use netinstall to install a remote device", if so. Otherwise it seems "You can't use the netinstall remote control "... FALSE: if you have the right devices available and connected properly. It is not the first time I do netinstall remotely from ot...
by rextended
Fri Apr 18, 2025 9:40 pm
Forum: General
Topic: Feature Request: Optional ability to restore without keeping MAC addresses
Replies: 18
Views: 2250

Re: Feature Request: Optional ability to restore without keeping MAC addresses

Great, if you then explain to me how you export the backup from a dead device without extract nand/flash and put elsewhere, etc. And if she's dead, who cares if the new has that old MACs... (in fact, it could sometimes be an advantage...) But... why? Because it's easier than managing .backup It does...
by rextended
Fri Apr 18, 2025 9:34 pm
Forum: Scripting
Topic: Issue- Adding user to UserMan using CLI
Replies: 3
Views: 986

Re: Issue- Adding user to UserMan using CLI

/tool user-manager user profile add user=user1
this do not exist and also not work, so, how you do that?

on user section use
/tool user-manager user create-and-activate-profile <username> profile=<profilename> customer=admin
by rextended
Fri Apr 18, 2025 8:36 pm
Forum: General
Topic: How to implement pppoe dialing with 5 minutes interval between every two dials
Replies: 9
Views: 1773

Re: How to implement pppoe dialing with 5 minutes interval between every two dials

But I have a total of 10 PPPoE interfaces that need to dial.
What are you waiting for to explain the whole situation, instead of wasting people's time by giving them one crumb at a time???
by rextended
Fri Apr 18, 2025 8:32 pm
Forum: General
Topic: Reset RouterOS without losing remote access (Winbox/SSH)
Replies: 21
Views: 2481

Re: Reset RouterOS without losing remote access (Winbox/SSH)

It's quicker to do a /export show-sensitive and then delete or reset to default everything that is not needed, it's safer...

If instead it is done to try to clean something "dirty", netinstall should be used...
by rextended
Fri Apr 18, 2025 8:10 pm
Forum: General
Topic: Feature Request: Optional ability to restore without keeping MAC addresses
Replies: 18
Views: 2250

Re: Feature Request: Optional ability to restore without keeping MAC addresses

[...] As in ISP , we use hundreds/thousands of identically configured Mikrotik routers. [...] [...] When we configure a new Mikrotik CPE [...] [...] the new Mikrotik CPE router is ready to be installed and added to our customer ISP network(s). [...] [..] bulk update newer master configurations to a...
by rextended
Fri Apr 18, 2025 7:58 pm
Forum: Scripting
Topic: Issue- Adding user to UserMan using CLI
Replies: 3
Views: 986

Re: Issue- Adding user to UserMan using CLI

As usual, no RouterOS version.
by rextended
Thu Apr 17, 2025 6:59 pm
Forum: General
Topic: Public IP pool over pppoe
Replies: 21
Views: 2723

Re: Public IP pool over pppoe

mikrotik default = bridge port 2..5
no default = no birdge...

mikrotik default = firewall OK if pppoe-out1 is added to WAN interface list
no default = NO firewall...


The bridge is internal between ether2...ether5 (+ sfp1)
pppoe-out1 (or ether1) never go on any bridge
by rextended
Thu Apr 17, 2025 6:16 pm
Forum: General
Topic: Public IP pool over pppoe
Replies: 21
Views: 2723

Re: Public IP pool over pppoe

la configurazione è tipo: pppoe 185.21.12.79 185.62.62.104 sprecato mikrotik brdge 185.62.62.105/29 NIC server1 185.62.62.106 / 255.255.255.248 / Gateway 185.62.62.105 NIC server2 185.62.62.107 / 255.255.255.248 / Gateway 185.62.62.105 NIC server3 185.62.62.108 / 255.255.255.248 / Gateway 185.62.62....
by rextended
Thu Apr 17, 2025 4:10 pm
Forum: General
Topic: Public IP pool over pppoe
Replies: 21
Views: 2723

Re: Public IP pool over pppoe

I don't want to sound like @anav with the answer, but you didn't even list a prerequisite or how the IPs are provided. Since NO ONE here in the forum is a fortune teller, but EVERYONE doesn't answer you exactly as you want or expect, BUT first they want to know why they should spend time for you... ...
by rextended
Thu Apr 17, 2025 1:55 pm
Forum: General
Topic: Firewall to block Facebook but allow WhatsApp?
Replies: 8
Views: 1675

Re: Firewall to block Facebook but allow WhatsApp?

Who am I to judge? No one, of course. Delete Facebook and fix the problem. If it's addictive, it will surely ruin your life in one way or another. If you don't have enough willpower, deactivating Facebook on this way (if possible), is like putting the bottle on the high shelf at a certain time for a...
by rextended
Thu Apr 17, 2025 11:39 am
Forum: General
Topic: Why does ROS allow the creation of a route table with the same name?
Replies: 8
Views: 1200

Re: Why does ROS allow the creation of a route table with the same name?

Useless report without specifing RouterBOARD model (arm/mipsbe, etc.) and RouterOS version , and Useless report on user forum, instead of posting it on relative version topic and report to support@mikrotik.com And please search or read current version topic before post new topic, or at least post i...
by rextended
Wed Apr 16, 2025 7:56 pm
Forum: General
Topic: Allow for some devices, Internet access for 1 hour each day [SOLVED]
Replies: 18
Views: 3782

Re: Allow for some devices, Internet access for 1 hour each day [SOLVED]

All useless, with MAC randomizer on phone that change every hour...
by rextended
Mon Apr 14, 2025 7:03 pm
Forum: Scripting
Topic: SNMP execute scripts
Replies: 12
Views: 8118

Re: SNMP execute scripts

I have the VICE of READING documentation, at least the little written, should be read...

At the time of the OP:
https://wiki.mikrotik.com/Manual:SNMP#R ... s_with_GET

Now:
https://help.mikrotik.com/docs/spaces/R ... ptswithGET
by rextended
Mon Apr 14, 2025 5:04 pm
Forum: Scripting
Topic: SNMP execute scripts
Replies: 12
Views: 8118

Re: SNMP execute scripts

For the OP problem only the solution is simple, add "1" in the right point....


1.2.3.4 1.3.6.1.4.1.14988.1.1.8.1.1.3.3
=>
1.2.3.4 1.3.6.1.4.1.14988.1.1.18.1.1.3.3
by rextended
Fri Apr 11, 2025 12:34 pm
Forum: Scripting
Topic: Operator <%% and copied arrays
Replies: 9
Views: 1410

Re: Operator <%% and copied arrays

Whatever happens,
RouterOS is still router software, it is certainly not a reliable compilation language for creating reliable programs,
let alone with instructions that are not even documented or whose existence is not even admitted...
by rextended
Fri Apr 11, 2025 12:21 pm
Forum: Scripting
Topic: Operator <%% and copied arrays
Replies: 9
Views: 1410

Re: Operator <%% and copied arrays

however, as already written, the bug is the same of previous post links, already corrected on v7.something { :local a [:toarray ""] ; # define new empty array :set ($a->"x") "7" ; # on new array set x = 7 :local b $a ; # define a copy of the first array # put both 7 as ...
by rextended
Fri Apr 11, 2025 11:39 am
Forum: Scripting
Topic: Operator <%% and copied arrays
Replies: 9
Views: 1410

Re: Operator <%% and copied arrays

{ :local a ({}); :local b $a; :local setx do={ :set $x "X"}; ($setx <%% $b); :put $a} Incorrect: $ in front of an undeclared variable means argument! I know very well what $ is for. And where is the $x argument in all script except on :set ??? You pass only $0 So your error is even worse,...
by rextended
Fri Apr 11, 2025 11:17 am
Forum: General
Topic: CCR2216 Rebooting boot loop
Replies: 3
Views: 865

Re: CCR2216 Rebooting boot loop

The question is vague and there are no valid clues, I would never have used a version higher than 7.16.2 in production in devices that must necessarily have v7 because they are not supported by v6. Given the distance and the same problem, I could forcefully deduce that some configuration, applied on...
by rextended
Fri Apr 11, 2025 10:49 am
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 3687

Re: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?

@optio Don't waste your time ("throwing pearls before swine" is rightly a saying that could be misinterpreted by artificial intelligences...) He's focusing on how to leave useless :return instead of understanding that must be removed as he's told from the post #3 (...#2...). Obviously he ...
by rextended
Thu Apr 10, 2025 10:08 pm
Forum: General
Topic: CCR2216 Rebooting boot loop
Replies: 3
Views: 865

Re: Rebooting....

Netinstall.
by rextended
Thu Apr 10, 2025 9:57 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 3687

Re: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?

I have days to get production code running. I wouldn't hire you if you were the last person left. And if I saw any of my employees do something like that, I would have already fired them for incompetence. They both believed ":return" without value was okay. Any intelligent person who read...
by rextended
Thu Apr 10, 2025 9:38 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 3687

Re: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt? (SOLVED: must :return SOMETHI

...and without ever once using artificial deficiency to learn it... And of course the author continues to write posts that seem to be written in the same style as ShatGPT... look how conditioned he is... He probably didn't even read my post, let alone understood EVERYTHING that was written... Such a...
by rextended
Thu Apr 10, 2025 4:30 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 3687

Re: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?

RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt? Original title, for future reference Why did you write RouterOS BUG??? Before writing something like that, wouldn't it be better to first ask for advice on the bugs you have ? Do you like large fonts? A...
by rextended
Thu Apr 10, 2025 4:07 pm
Forum: Scripting
Topic: Operator <%% and copied arrays
Replies: 9
Views: 1410

Re: Operator <%% and copied arrays

The only way to correct inizialize empty array is [:toarray ""] , any other methods do not work as expected and later give only problems. ({}) // ={} // and other frills must not be used. https://forum.mikrotik.com/viewtopic.php?p=973609#p973609 Then inside the function the use of x is not...
by rextended
Tue Apr 08, 2025 1:02 pm
Forum: General
Topic: This "Sorry but the board is temporarily unavailable, please try again in a few minutes." is getting old.
Replies: 48
Views: 9441

Re: This "Sorry but the board is temporarily unavailable, please try again in a few minutes." is getting old.

If this is not possible for some reason, please let me know as it takes me some time to save all the scripts posted here...

Thanks.
by rextended
Tue Apr 08, 2025 10:35 am
Forum: Wireless Networking
Topic: BSSID randomization support
Replies: 13
Views: 2636

Re: BSSID randomization support

(Not tested on capsman) On interfaces is not needed at all to disable and enable the interface, is automatic when change anything on wifi (also comment...)
by rextended
Mon Apr 07, 2025 3:55 pm
Forum: Scripting
Topic: Script to Test WAN and Reset USB Power on Down?
Replies: 12
Views: 9962

Re: Script to Test WAN and Reset USB Power on Down?

probably you skip "or with a little mod:" on post #9... 8)
by rextended
Mon Apr 07, 2025 2:47 pm
Forum: Useful user articles
Topic: How to export your Mikrotik config and share it (Step-by-Step guide)
Replies: 14
Views: 2951

Re: How to export your Mikrotik config and share it (Step-by-Step guide)

I apologize , not being fully versed in English, I still don't understand the meaning. My concept I think is clear about the MAC address: Anyone, if not directly connected, can't do anything. Then we can talk about compromised ISPs, compromised internal peripherals, etc., but they are already insid...
by rextended
Mon Apr 07, 2025 1:28 pm
Forum: Wireless Networking
Topic: BSSID randomization support
Replies: 13
Views: 2636

Re: BSSID randomization support

Your version have from=num to=hex work only for v7.18 and up. For work also on previous v7.1rc7 and up version using :rndstr is more easy. Do not use for variables names already assigned to something. Ignoring useless logging and useless frills, this suffice: /interface/wifi :foreach item in=[find] ...
by rextended
Mon Apr 07, 2025 12:26 pm
Forum: Scripting
Topic: Get string instead of printing in terminal (info about certificates)
Replies: 2
Views: 973

Re: Get string instead of printing in terminal (info about certificates)

(reply to the first post, before the edit 2025-04-07 11:24:16 and 2nd post) in that case the cycle is done differently, and the variable name should not be the same of one objects (already written)... /certificate :foreach crt in=[find] do={ :local cName [get $crt name ] :local cCommName [get $crt c...
by rextended
Mon Apr 07, 2025 12:07 pm
Forum: Useful user articles
Topic: How to export your Mikrotik config and share it (Step-by-Step guide)
Replies: 14
Views: 2951

Re: How to export your Mikrotik config and share it (Step-by-Step guide)

Even if not exploit it, we are back to the first point: If someone knew my router's WAN port's mac address, and somehow could find it on the Internet, they could simply attack it -- not necessarily 'break in' but certainly bring down the ability of the router to communicate with the Internet. Let's...
by rextended
Mon Apr 07, 2025 11:14 am
Forum: Scripting
Topic: What returns :find it it finds nothing? [SOLVED]
Replies: 6
Views: 4150

Re: What returns :find it it finds nothing? [SOLVED]

This (previous) example suffice to explain that not always in RouterOS nil = nil, nil = nothing or nothing = nothing...

example nothing is not equal to nothing code

[rex@test-v7.16.2] > :local a ; :put [:typeof $a] ; :put ($a = [:nothing])
nothing
false
by rextended
Mon Apr 07, 2025 11:09 am
Forum: Scripting
Topic: Scheduler does not launch LTE scripts
Replies: 22
Views: 3487

Re: Scheduler does not launch LTE scripts

Currently if I am forced to use v7 because the device does not support v6, for me the latest version of RouterOS that works is 7.16.2.
by rextended
Mon Apr 07, 2025 1:20 am
Forum: Scripting
Topic: Scripting style
Replies: 3
Views: 1196

Re: ✂ Rextended Fragments of Snippets

I see that within your scripts you usually enter the configuration context and handle things there. Example: /log :foreach rlog in=[find where message~"((25[0-5]|(2[0-4]|[01]\?[0-9]\?)[0-9])\\.){3}(25[0-5]|(2[0-4]|[01]\?[0-9]\?)[0-9])"] do={ And I prefer to use the entire path of the comm...
by rextended
Mon Apr 07, 2025 1:16 am
Forum: Scripting
Topic: Scripting style
Replies: 3
Views: 1196

Re: Scripting style

Hello rextended! I notice you do not use CamelCase ou camelCase in your variable names. To me it is a bit hard to imagine why... Could you elaborate a little on why? Simple: I act according to how I feel like it at that moment. Since these are very simple scripts and not parts of the program that o...
by rextended
Mon Apr 07, 2025 12:55 am
Forum: Scripting
Topic: What returns :find it it finds nothing? [SOLVED]
Replies: 6
Views: 4150

Re: What returns :find it it finds nothing? [SOLVED]

Is not clear at all on post #2: not mix nil and nothing, because nothing is also different from nothing. I do not have at the moment one precise example, but often nil and nothing are uncomparable. :local a ; :put [:typeof $a] ; :put ($a = [:nothing]) Better check the lenght of returned value. If is...
by rextended
Mon Apr 07, 2025 12:45 am
Forum: Scripting
Topic: Scheduler does not launch LTE scripts
Replies: 22
Views: 3487

Re: Scheduler does not launch LTE scripts

Era un tentativo... non capisco perché non dovrebbe funzionare....
by rextended
Mon Apr 07, 2025 12:41 am
Forum: Scripting
Topic: Script to Test WAN and Reset USB Power on Down?
Replies: 12
Views: 9962

Re: Script to Test WAN and Reset USB Power on Down?

I may make mistakes, but before you write, you better double check what I wrote and what you did... (note: I'm on GMT+02:00) [rex@test-v7.16.2] > :global unixtodatetime do={ {... :local ux [:tonum $1] {... :local Fzerofill do={:return [:pick (100 + $1) 1 3]} {... :local prMntDays [:toarray "0,0...
by rextended
Sat Apr 05, 2025 4:35 pm
Forum: General
Topic: /tool/flood-ping - failure: not allowed by device-mode
Replies: 4
Views: 1749

Re: /tool/flood-ping - failure: not allowed by device-mode

@dang21000 please do not write random useless things without any use or any solution. socks: yes what is off is on OP, for example... traffic-gen I'd like to let you know that I'm reporting an issue with the [/flood-ping] tool. I updated to version 7.18.2 and it stopped working. But can I know or n...
by rextended
Sat Apr 05, 2025 4:27 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 10586

Re: Device got hacked 1 min after connected to internet

The mistake continues to be the same:
being in such a hurry to connect the device directly to the internet, without caring about protecting it first.

Was there all this urgency?
by rextended
Sat Apr 05, 2025 1:59 pm
Forum: Scripting
Topic: Scheduler does not launch LTE scripts
Replies: 22
Views: 3487

Re: Scheduler does not launch LTE scripts

Lascia perdere gli script, metti direttamente nello scheduler questo, e guarda se funziona:
:execute "/interface lte at-chat [find where name=\"lte1\"] input=\"at+qnwlock=\\\"common/4g\\\",1,1850,100\""
by rextended
Sat Apr 05, 2025 11:04 am
Forum: Scripting
Topic: Variable names and where expressions
Replies: 15
Views: 2313

Re: Variable names and where expressions

Why this "clarification"?
In the previous post the invalid syntax was in the lack of parentheses around true and false...
Obviously it works if the parentheses are used correctly.
by rextended
Fri Apr 04, 2025 9:03 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Bug: Phantom empty message in Telegram when sending from a third-party script

How to fix that? (whitout define global "echo" outside the script) NEVER CALL TWO TIMES THE SAME FUNCTION WITHOUT USE OR ASSIGN THE RETURNED VALUE Simply add void variable for ignore useless return from the function (return everytime something no matter if :return is used [as must be] insi...
by rextended
Fri Apr 04, 2025 8:39 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Bug: Phantom empty message in Telegram when sending from a third-party script

3) do not use " do { } " to completely enclose a script or similar bulls–t. I don't understand how the function, the "do" block, can't be wrapped in curly brackets "{}" Is do { } not do={...} Read better: completely enclose a script do { <all the script here> } ///////...
by rextended
Fri Apr 04, 2025 3:05 pm
Forum: Scripting
Topic: Variable names and where expressions
Replies: 15
Views: 2313

Re: Variable names and where expressions

As per my previous examples, [ ] is not a condition, it is executed for every single value returned by find/print. > /ip/address/find where [false] > /ip/address/find where [true] > /ip/address/find where [($address~"^192.168.1.1/")] Wrong syntax, do not work, because... is wrong... Correc...
by rextended
Thu Apr 03, 2025 11:36 am
Forum: Scripting
Topic: Variable names and where expressions
Replies: 15
Views: 2313

Re: Variable names and where expressions

/ip/arp/find [{ :put $address :put $interface }] Coding style may vary... [rex@test-v7] > /ip arp find [:put "$address\r\n$interface"] 10.11.12.8 ether1 10.11.12.11 ether2 10.11.12.1 ether3 10.11.12.10 ether4 10.11.12.2 ether5 [rex@test-v7] > /ip arp find [:put $address; :put $interface] ...
by rextended
Wed Apr 02, 2025 8:34 pm
Forum: Scripting
Topic: Variable names and where expressions
Replies: 15
Views: 2313

Re: Variable names and where expressions

I understand that it is not documented, but I have known about it for years. If I had time I should write the manual for "ScriptOS" myself... Then there are other users who by dint of digging also discover new things like >[] , >"" , >{} , <%% etc. even more difficult to discover...
by rextended
Wed Apr 02, 2025 7:27 pm
Forum: General
Topic: Public DNS to private IP
Replies: 44
Views: 3970

Re: Public DNS to private IP

Other than that, for private DNS I recommend using _____.mqtt.internal instead of _____.local.mqtt
(or intranet, or private, or corp, or home, or lan)
https://www.rfc-editor.org/rfc/rfc6762#appendix-G
by rextended
Wed Apr 02, 2025 6:18 pm
Forum: General
Topic: Device-mode changes hit or miss? Mikrotik strategy?
Replies: 38
Views: 5116

Re: Device-mode changes hit or miss? Mikrotik strategy?

As I already suggested, wouldn't it be enough to use the factory password for security?
by rextended
Wed Apr 02, 2025 11:41 am
Forum: Scripting
Topic: Variable names and where expressions
Replies: 15
Views: 2313

Re: Variable names and where expressions

Yes, work as expected. A basic rule is to never use variable names that are the names of <anything> in the system. [rex@test] > /ip/arp/print proplist=address Flags: D - DYNAMIC; C - COMPLETE Columns: ADDRESS # ADDRESS 0 DC 10.10.23.8 1 DC 10.10.23.11 2 DC 10.10.23.1 3 DC 10.10.23.10 4 DC 10.10.23.2...
by rextended
Mon Mar 31, 2025 6:14 pm
Forum: Scripting
Topic: Not Get Hotspot active usres data in telegram bot
Replies: 2
Views: 1317

Re: Not Get Hotspot active usres data in telegram bot

mode=https & url="https
by rextended
Mon Mar 31, 2025 1:18 pm
Forum: General
Topic: MikroTik RB5009 setting up remotely first time
Replies: 55
Views: 5722

Re: MikroTik RB5009 setting up remotely first time

Better the naysayers of those who implicitly suggest deleting the default configuration and therefore the firewall with all that it entails because is more easy,
creating yet another machine that will cause, in one way or another, DDoS...
by rextended
Mon Mar 31, 2025 12:47 pm
Forum: Scripting
Topic: Script for email backup file
Replies: 2
Views: 1687

Re: Script for email backup file

:local EMAIL "it@tlpk.com" :local PASSWORD "xxxx" /system clock :local DATE [get date] :local TIME [get time] /system identity :local FILENAME "Backup $[get name]-$DATE.backup" :local MESSAGE "Please see attached file..." /system backup save name=$FILENAME pa...
by rextended
Mon Mar 31, 2025 12:02 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Bug: Phantom empty message in Telegram when sending from a third-party script

You are not telling us the truth. Only that line cannot give that result. I have already seen errors on the second run , they depend on syntax errors made previously, but if you only show that line, no one can help you... or not? [rex@test] > :global testFunc do={ :put "Called with: $1" } ...
by rextended
Sat Mar 29, 2025 3:57 pm
Forum: Scripting
Topic: Bad configuration
Replies: 3
Views: 1603

Re: Bad configuration

L'apparato è uno switch, non è un router, quindi non ha una configurazione iniziale da router. Penso che la conigurazione è incompleta e che è meglio se ti rivolgi ad un esperto. Attualmente hai configurato lo switch (come se fosse un router) in modo che possa essere sorgente di attacchi DDoS verso ...
by rextended
Sat Mar 29, 2025 3:45 pm
Forum: Beginner Basics
Topic: firewall rules advices
Replies: 7
Views: 2029

Re: firewall rules advices

so it's not necessary to set up rules to protect router againt syn flood, ssh brute forcer, port scanner or other? Your ISP should do that job, not your router. And what about bruteforce... bruteforce what? You are the one leaving the door open, by default they are all closed on WAN side... You sho...
by rextended
Sat Mar 29, 2025 1:58 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Phantom empty message in Telegram when sending from a third-party script

There are dozens of threads on this topic on the forum.
Sorry, but I don't use Telegram and I don't tinker with things I can't test.
by rextended
Sat Mar 29, 2025 1:16 pm
Forum: Scripting
Topic: Bug: Phantom empty message in Telegram when sending from a third-party script
Replies: 27
Views: 14287

Re: Phantom empty message in Telegram when sending from a third-party script

Too many mistakes and too many times to do 2 + 2
do instead (4 / 2) + (((7 + 9) / 2²) * ½)
by rextended
Sat Mar 29, 2025 1:06 pm
Forum: General
Topic: /file console-dump.txt
Replies: 7
Views: 4022

Re: /file console-dump.txt

And the file content? Perfect, you specified both the RouterOS version and the Router model used. This is how it's done... Have you ever thought of simply opening the plain text file and seeing what's written inside? Nothing to worry about . It's a file that is automatically created when " some...
by rextended
Sat Mar 29, 2025 12:40 pm
Forum: Scripting
Topic: What does op type (>[ ... ]) do?
Replies: 4
Views: 2036

Re: What does op type (>[ ... ]) do?

There is a detailed explanation written by others on the forum. Aside from that when you notice a problem, it should be minimized to remove as many parameters as possible: { :local y ; # used later :local z 10 :local j 11 :local x (>[:set y 44 ; :local deletek ; :local overwritew 19]) :local k 12 :l...
by rextended
Sat Mar 29, 2025 11:46 am
Forum: Beginner Basics
Topic: firewall rules advices
Replies: 7
Views: 2029

Re: firewall rules advices

(Now I'm not going to go into a line-by-line list of what's wrong or not, but the last rule... better no comment...) Really disgusting, to be thrown in the trash. Put back the default ones that are more than enough for you. https://forum.mikrotik.com/viewtopic.php?f=13&t=175129&p=856824#p856...
by rextended
Sat Mar 29, 2025 11:27 am
Forum: Scripting
Topic: Help with array created by print as-value - Empty value [SOLVED]
Replies: 6
Views: 10381

Re: Help with array created by print as-value - Empty value [SOLVED]

Not at all, in fact you teach badly and they learn worse. It is wrong, you should never use numbers or IDs in the script. I understand that was just an example, but wrong examples are still wrong. Because, for example, in the terminal there is no point in doing all this to get the IP, then, if it wo...
by rextended
Thu Mar 27, 2025 11:35 am
Forum: General
Topic: Connection tracking table not cleared completely after WAN IP address change
Replies: 38
Views: 14882

Re: Connection tracking table not cleared completely after WAN IP address change

On dhcp-client script:
/ip firewall connection
:foreach idc in=[find where timeout > 60] do={
    remove [find where .id=$idc]
}
by rextended
Thu Mar 27, 2025 11:31 am
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 641
Views: 300470

Re: v7.18.2 [stable] is released!

missing space, is "7.18ab244"
by rextended
Thu Mar 27, 2025 11:30 am
Forum: Announcements
Topic: v7.19beta [testing] is released!
Replies: 525
Views: 227305

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

If is just netinstalled... already the history do not exist...
by rextended
Wed Mar 26, 2025 7:00 pm
Forum: Scripting
Topic: Script to Test WAN and Reset USB Power on Down?
Replies: 12
Views: 9962

Re: Script to Test WAN and Reset USB Power on Down?

All complicated steps useless, isn't it better to use :timestamp and relative functions on RouterOS v7??? For v6 there are still my functions to get the exact date going from unix time. https://forum.mikrotik.com/viewtopic.php?p=977170#p977170 (changed / to - on function) [rex@7.16.2v7] > :global un...
by rextended
Tue Mar 25, 2025 10:25 am
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2412
Views: 5307812

Re: 📣 WinBox 4 is here 📣

The bug is the same, well know...
do not use other characters than \r, \n <SPACE>! etc. until the ~ because on RouterOS are unsupported and rended differently on various terminal/winbox/script, etc.
by rextended
Tue Mar 25, 2025 10:18 am
Forum: Beginner Basics
Topic: When is connection-nat-state applied (default firewall rule)?
Replies: 13
Views: 3566

Re: When is connection-nat-state applied (default firewall rule)?

As you can see here "expanded default rules on forward code": https://forum.mikrotik.com/viewtopic.php?t=215733#p1134906 you need to have an overall vision, you can't consider ONLY that rule to understand it. Some things are implied. For example, it considers only new connection attempts f...
by rextended
Tue Mar 25, 2025 12:38 am
Forum: General
Topic: Feature Request: Auto Supout on Ping Watchdog
Replies: 5
Views: 1452

Re: Feature Request: Auto Supout on Ping Watchdog

Right, I never realized that the options were unrelated, even if in the same context, because I never needed it.


**********


And it's a good thing you wrote it because I didn't remember that note... from 2007...
by rextended
Tue Mar 25, 2025 12:09 am
Forum: General
Topic: Feature Request: Auto Supout on Ping Watchdog
Replies: 5
Views: 1452

Re: Feature Request: Auto Supout on Ping Watchdog

Already exist from 2007...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 47