Community discussions

MikroTik App

Search found 10161 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 34
by rextended
Thu Mar 23, 2023 12:02 am
Forum: RouterBOARD hardware
Topic: Mysterious reset on a CSR112
Replies: 2
Views: 110

Re: Mysterious reset on a CSR112

When the device start to do that, often has flash broken...
by rextended
Wed Mar 22, 2023 11:56 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

@Amm0
Excuse me, but I was sincerely asking about another practical use, except the above, not about the technology to use,
because I can't think of anything else...

@optio
please do not quote all or go out one mess :?:
by rextended
Wed Mar 22, 2023 11:06 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Or you can just be kidnapped and forced to log in and nothing helps (maybe suicide capsule with poison in tooth?) :)
I'd give him the emergency PIN, which if entered still allows decoding and access, but also call the police without notification... :lol: :lol: :lol: :lol:
by rextended
Wed Mar 22, 2023 11:03 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

I'm using web api for refreshing IP on some dyndns service, there is no alternative other than store raw api credentials (user/pass) into script afaik, that's why my backups are always encrypted. Why you do not use the MAC of one or more ethernet interface as seed for encrypt the password? If the s...
by rextended
Wed Mar 22, 2023 10:57 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Actually I have the main network on The Dude, rigth click and open with winbox launch one program that ask for PIN. If PIN is correct*** decode the passed username and password from The Dude and use it as parameters to launch Winbox. (obviously on the RouterBOARDs winbox is authorized only or from l...
by rextended
Wed Mar 22, 2023 10:42 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Script must not store passwords...
At least the first part of the password should be plain text in the script, and an "export" or accidentally unencrypted backup might reveal that part...
by rextended
Wed Mar 22, 2023 10:30 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Or for paranoid encode also the password on SMS :lol: :lol: :lol: :lol: the script chgpass decode it and apply the correct password. :cmd Vq70980q script chgpass KNHT6ICJOMQG63TFEBSXQYLNOBWGKLROFY====== Since the encoding can be arbitrary and not necessarly baseXX, is strong enough for detect failed...
by rextended
Wed Mar 22, 2023 10:20 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Preventing authentication even if password is compromised. I'd like, if possible, to get answers that don't involve what I've already ruled out: username and password being stolen (no matter how or why) Btw. you are missing some hypothesis using sms codes and setting dynamic passwords combining the...
by rextended
Wed Mar 22, 2023 10:12 pm
Forum: General
Topic: WifiWave2 interface menu missing items?
Replies: 4
Views: 132

Re: WifiWave2 interface menu missing items?

Manual upgrade ?

Make sure wifiwave2 package from extra package download is installed.
No, is installed this time :lol: :lol: :lol:
(hint: "Type: WiFi Wave2" on image ;) )

(OT, for other users, I'm referring to this)
viewtopic.php?t=194707#p991302
by rextended
Wed Mar 22, 2023 10:09 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Serious question, I'm not kidding:
Aside from preventing that if someone gets the exact right credentials, on the first try they can log into the router,

what is two-factor authentication for?
by rextended
Wed Mar 22, 2023 10:00 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

The second factor can be simply the SSH cert, the MAC of the device used for try the access, the IP binded to the profile etc. etc. etc. *** BEGIN FIRST HYPOTHETICAL ENVIRONMENT *** Open WinBox, select the device fomr Managed / Neighbors / Romon list, example: "MySecuredRouter KNHT6ICJOMQG63TFE...
by rextended
Wed Mar 22, 2023 1:22 pm
Forum: Scripting
Topic: Creating a baseline config script [SOLVED]
Replies: 2
Views: 126

Re: Creating a baseline config script [SOLVED]

@eallen , And the wireless interfaces? :global ifWAN "ether1" /int bridge remove [find] add name=bri-lan protocol-mode=none /int bridge port remove [find] :foreach ifList in=[/int ethernet find where name!=$ifWAN] do={add bridge=bri-lan interface=$ifList} :foreach ifList in=[/int find whe...
by rextended
Wed Mar 22, 2023 1:11 pm
Forum: General
Topic: Mikrotik 2 Factor authentication
Replies: 29
Views: 698

Re: Mikrotik 2 Factor authentication

Want to change a secure method to an insecure method to add another insecure layer?
by rextended
Wed Mar 22, 2023 1:05 pm
Forum: General
Topic: see MT model from a non-encrypted backup
Replies: 2
Views: 95

Re: see MT model from a non-encrypted backup

The model is not a property you can set, so what's the point of saving it in the backup?

At least search the device name... But also backup have on default for filename the same of device name and the isodate-time...
by rextended
Wed Mar 22, 2023 12:56 pm
Forum: Beginner Basics
Topic: a simple question about Mikrotik ports ?
Replies: 7
Views: 202

Re: a simple question about Mikrotik ports ?

But.. is the same.... what is not correct on my reply?
by rextended
Wed Mar 22, 2023 12:49 pm
Forum: Beginner Basics
Topic: a simple question about Mikrotik ports ?
Replies: 7
Views: 202

Re: a simple question about Mikrotik ports ?

https://i.mt.lv/cdn/product_files/RB1100AHx4v5_180118.png Each port of each group can reach at the same time wire speed, but each grup can communicate with each other to max 2.5Gbps. The max speed at same time between all groups still 2.5Gbps. switch1 group is ether1-5 switch2 group is ether5-10 an...
by rextended
Wed Mar 22, 2023 10:59 am
Forum: Scripting
Topic: Script in IP DHCP Client
Replies: 9
Views: 790

Re: Script in IP DHCP Client

numbers=0 NO never use numbers. You can also write this to be added when you dhcp is bound - and then also remove when unbound (important) NO for same reason on previous posts ********************************* If work do not change. Endless loops are one idiocy, till exist the scheduler or netwatch.
by rextended
Tue Mar 21, 2023 6:57 pm
Forum: General
Topic: Hap Ax Lite WIFI Broken on 7.8 and downgrade [SOLVED]
Replies: 6
Views: 253

Re: Hap Ax Lite WIFI Broken on 7.8 and downgrade [SOLVED]

Is clear, he has copied only routeros without the wifiwave2 separate package...
Also when dowwngrade, because for downgrade to 7.6 he can only download the routeros package...

You must download also the extra packages and put on routerboard routeros v7.8 and ONLY wifiwave2 7.8 package
by rextended
Tue Mar 21, 2023 5:07 pm
Forum: RouterBOARD hardware
Topic: RouterBOOT failed on CRS125-24g-15-RM [SOLVED]
Replies: 5
Views: 352

Re: RouterBOOT failed on CRS125-24g-15-RM [SOLVED]

MikroTik do not have any (authorized or not) service center, for what I know.
Is why you must contact your reseller.
by rextended
Tue Mar 21, 2023 4:33 pm
Forum: Useful user articles
Topic: How to install Winbox on macOS
Replies: 14
Views: 3845

Re: How to install Winbox on macOS

Not working on latest macOS Ventura 13.2.1. Crypt32.dll error in wine.
Probably the fix for CVE-2023-23514 is involved
by rextended
Tue Mar 21, 2023 4:26 pm
Forum: Beginner Basics
Topic: NTP Server issues
Replies: 7
Views: 244

Re: NTP Server issues

without gateway

Probably windows think that do not have internet SO the time is unavailable...

Also RouterOS must be syncronsized with external source for provide NTP service...
by rextended
Tue Mar 21, 2023 2:50 am
Forum: Scripting
Topic: Black list for failed login to IPSec VPN
Replies: 49
Views: 24012

Re: Black list for failed login to IPSec VPN

You forget to add first the admin access :lol: :lol: :lol:
by rextended
Tue Mar 21, 2023 1:52 am
Forum: Scripting
Topic: Black list for failed login to IPSec VPN
Replies: 49
Views: 24012

Re: Black list for failed login to IPSec VPN

Thanks, I do not remember precisely why, but I remember that updating one array defined with ({}) cause later a mess with other arrays defined on same way...
by rextended
Tue Mar 21, 2023 1:00 am
Forum: Useful user articles
Topic: python script for building firewall pinholes and hairpin rules ("port forwarding")
Replies: 3
Views: 202

Re: python script for building firewall pinholes and hairpin rules ("port forwarding")

missing / in front of "ip" Why do not use directly RouterOS script instead of install python just for repeat 2 lines??? # "pinhole name/comment"= "outside_port", "protocol", "inside_host", "inside_port" { :local rules { "Joe web server...
by rextended
Mon Mar 20, 2023 8:19 pm
Forum: General
Topic: SMS Tool - unable to delete inbox message [SOLVED]
Replies: 20
Views: 873

Re: SMS Tool - unable to delete inbox message [SOLVED]

It doesn't matter if the app works or not, some users never use the app and have constant problems with "this feature",
they better know whether to choose the app to work or their connection to work...
by rextended
Mon Mar 20, 2023 7:22 pm
Forum: General
Topic: Hardware Offload or Not Hardware Offload
Replies: 1
Views: 136

Re: Hardware Offload or Not Hardware Offload

If you use the device for mark the connections, you drop the total bandwidth because is a switch, not a router,
all traffic pass inside CPU instead pass only to switch chip...

Only 1.3Gbps max


Image
by rextended
Mon Mar 20, 2023 7:19 pm
Forum: General
Topic: SMS Tool - unable to delete inbox message [SOLVED]
Replies: 20
Views: 873

Re: SMS Tool - unable to delete inbox message [SOLVED]

Did not have problems with ISP yet. It's enabled just that MT smartphone app can have correct internet connectivity status.
There are not only "your connection", others also need to know about these problems before they get screwed...
by rextended
Mon Mar 20, 2023 6:49 pm
Forum: General
Topic: SMS Tool - unable to delete inbox message [SOLVED]
Replies: 20
Views: 873

Re: SMS Tool - unable to delete inbox message [SOLVED]

this one also:
/interface/detect-internet;set detect-interface-list=none;set detect-interface-list=WAN
Bad idea at all use detect-internet...
Some ISP lock-out your router if receive unsolicited DHCP-client requests...
by rextended
Mon Mar 20, 2023 6:47 pm
Forum: Scripting
Topic: why do global vars not work?
Replies: 14
Views: 400

Re: why do global vars not work?

I use 6.48.6 and it work as expected, not needed to go to 6.49.x or v7
by rextended
Mon Mar 20, 2023 5:05 pm
Forum: General
Topic: Connect Two Network with rb951ui-2hnd
Replies: 1
Views: 91

Re: Connect Two Network with rb951ui-2hnd

define: connect two LANs... change to one LAN all the address, conforming to the fist LAN, (or add 2nd IP to the devices, but not everytime is possible) [often suffice just increase subnet mask of both LAN and assign both gateway/dns IPs to main router] else is not merge two LAN, but ROUTING two lit...
by rextended
Mon Mar 20, 2023 4:52 pm
Forum: General
Topic: Morning and Night Packages
Replies: 1
Views: 101

Re: Morning and Night Packages

The master in problem description, congratulations...

viewtopic.php?p=890557#p890557
i have no mikrotik device
Has something changed?
by rextended
Mon Mar 20, 2023 4:49 pm
Forum: General
Topic: L3 Hardware Offloading with fast-track and NAT
Replies: 4
Views: 767

Re: L3 Hardware Offloading with fast-track and NAT

Probably @ekarin user is hijacked, because after years of his unused account, writing that, for no reason, to old post that have already 7.1, is illogic.
by rextended
Mon Mar 20, 2023 4:45 pm
Forum: General
Topic: L3 Hardware Offloading with fast-track and NAT
Replies: 4
Views: 767

Re: L3 Hardware Offloading with fast-track and NAT

The current RouterOS v7 now runs L3 HW Offloading for fasttrack connection without problems. You can try the current RouterOS v7. It should be OK. The post is one year old, I do not think the user wait till now for your (useless... I do not read any advice) reply, L3HW is already available from 7.1...
by rextended
Mon Mar 20, 2023 4:31 pm
Forum: Wireless Networking
Topic: Open SSID gets wrong VLAN
Replies: 6
Views: 345

Re: Open SSID gets wrong VLAN

@anav... vlan VID 1 (also 0 and 4095) is for you (and also for me) like ChatGPT for someone... :lol:

A good habit is use only VID from 10 to 990
by rextended
Mon Mar 20, 2023 3:59 pm
Forum: General
Topic: SMS Tool - unable to delete inbox message [SOLVED]
Replies: 20
Views: 873

Re: SMS Tool - unable to delete inbox message [SOLVED]

Where can we report that it is a bug?
Click on "support" on the following page.
https://mikrotik.com/
by rextended
Mon Mar 20, 2023 3:51 pm
Forum: RouterBOARD hardware
Topic: RouterBOOT failed on CRS125-24g-15-RM [SOLVED]
Replies: 5
Views: 352

Re: RouterBOOT failed on CRS125-24g-15-RM [SOLVED]

The model is: CRS125-24 G -1 S -RM If netinstall not work again, or is defective, or is locked with protected-routerboot, but still defective if has lost the config for no reason. The USER forum can not do any, if is defective. You must contact your reseller for the warranty, and if is out of warran...
by rextended
Mon Mar 20, 2023 3:34 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

No problem bro
thanks for understanding
by rextended
Mon Mar 20, 2023 3:22 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

simply you can reply by advice or somethıng useful instead of replying with meaningless talk we wrote a lot of useless responses Instead of writing something useful to benefit everyone!! I have already provided a working solution to do that on post #2, al other posts, actual or future, are useless,...
by rextended
Mon Mar 20, 2023 2:45 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

Dont write any childrens books..........
Now, I've already written post number #2, it was just a clarification,
and to highlight that when someone use one (supposed) Artificial Intelligence, that person admit that don't have one for himself.
by rextended
Mon Mar 20, 2023 2:41 pm
Forum: Wireless Networking
Topic: Considerations on antennae design and product selection [SOLVED]
Replies: 6
Views: 320

Re: Considerations on antennae design and product selection [SOLVED]

With only one Audience placed to near the center, on top of one closet,
I cover 2 apartments, ~120m² each, one on top of another...
by rextended
Mon Mar 20, 2023 2:25 pm
Forum: Beginner Basics
Topic: How to load the default configuration?
Replies: 1
Views: 80

Re: How to load the default configuration?

just use winbox/webfig and go on system / reset configuration and click on "reset configuration" without selecting any option

if you are unable to access again the device with winbox or webfig, search the instructions of how do a netinstall
by rextended
Mon Mar 20, 2023 2:22 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

The code that needs to be inserted can be found here: https://forum.mikrotik.com/viewtopic.php?t=177551#p980163 Already provided on post #2, and on the post #5 is clear that have read the post... Is true: :local message [/urlencode $output] "/urlencode" not exist, another ChatGPT lie
by rextended
Mon Mar 20, 2023 1:39 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

Yeah better to not provide any help if you reply like that it's not related to copy & paste man this part of my script it didn't work anyway that's why I Asked As I have already written to you, I have already answered you, and correctly. Just copy and paste the full function, which you can find...
by rextended
Mon Mar 20, 2023 1:16 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

I don't provide any help from what it comes from that shit.

But you can not do a complete copy & paste? Why only a few lines? Are the others there for nothing?

End of help.
by rextended
Mon Mar 20, 2023 12:52 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

Can you give me an example how it should be ...and didn't I just do it? How many time you need the same info? https://forum.mikrotik.com/viewtopic.php?p=974517#p974797 Bad attitude copy&paste without understand what you doing... Not noticed before: :local message [/urlencode $output] Where you ...
by rextended
Mon Mar 20, 2023 12:27 pm
Forum: Scripting
Topic: Send Traceroute Report to the Telegram
Replies: 15
Views: 452

Re: Send Traceroute Report to the Telegram

If you use "url", "mode" is useless. <<paste ASCIItoCP1252toURLencode function here>> :local chat_id "" :local bot_token "" :local destination "8.8.8.8" :local output [/tool traceroute $destination] :local timestamp [/system clock get time] :local me...
by rextended
Mon Mar 20, 2023 11:09 am
Forum: Scripting
Topic: why do global vars not work?
Replies: 14
Views: 400

Re: why do global vars not work?

I have integrated some description on previous post...

On v7.6 and previous (only v7) there is present one bug that cause disappearing of global variables,
(see my post on release topic)
is why is important specify both RouterOS version and platform.
by rextended
Mon Mar 20, 2023 10:51 am
Forum: Scripting
Topic: why do global vars not work?
Replies: 14
Views: 400

Re: why do global vars not work?

Globals have to be defined in top-level scope Can be defined any time... but... :if (true) do={:global outx "OK"} :put $outx # this work because the new line, on terminal, is another context that find already defined globally "outx" # using { } prevent the "test1" work...
by rextended
Mon Mar 20, 2023 10:47 am
Forum: Scripting
Topic: why do global vars not work?
Replies: 14
Views: 400

Re: why do global vars not work?

All code run in terminal needs to be in one block.
Except when is never used one ":local" variable.
by rextended
Mon Mar 20, 2023 10:45 am
Forum: Scripting
Topic: why do global vars not work?
Replies: 14
Views: 400

Re: why do global vars not work?

:log info "Why is above blank after it was run once?" Why did you write it like that, if you define the variable after, it's not retroactive.... Why doesn't "something" end up in my global var after I've run this script once (never mind multiple times)??? I don't know what other...
by rextended
Mon Mar 20, 2023 1:14 am
Forum: Scripting
Topic: Mikrotik script editor and ChatGPT
Replies: 20
Views: 957

Re: Mikrotik script editor and ChatGPT

@Rextended I will travel to Italia in may to see your beautiful country :)
Thank you ;)
I hope you enjoy
by rextended
Sat Mar 18, 2023 10:33 am
Forum: General
Topic: [Feature Request] 'configure replace'-like Proposal for ROS 7.x
Replies: 6
Views: 273

Re: [Feature Request] 'configure replace'-like Proposal for ROS 7.x

:if ([ /interface/bridge print count-only where name="foo"] > 0) do={ /interface/bridge set [ find where name="foo" ] protocol-mode="rstp" } else={ /interface/bridge add name="foo" protocol-mode="rstp" } One of the correct ways is: /interface bridge...
by rextended
Fri Mar 17, 2023 7:53 pm
Forum: Announcements
Topic: v6.48.6 [long-term] is released!
Replies: 126
Views: 249506

Re: v6.48.6 [long-term] is released!

I see censorship is starting to work on this forum and inconvenient facts are pushed to other threads. If it was censorship they would have been deleted, not moved. In fact you wrote offtopic again. Unfortunately, even incompetent people can write on the forum, and you are proof of that, so it's be...
by rextended
Fri Mar 17, 2023 12:14 am
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

I'm not sure of installing a switch on the Client Site will be a good image for an "Enterprise Company"-ish. Really? not... A switch for 5Gbps is one switch only also on client side. If you have to manage 100Mbps can suffice, but with 5Gbps you kill the CRS cpu... For example, if you buy ...
by rextended
Thu Mar 16, 2023 11:56 pm
Forum: Scripting
Topic: Black list for failed login to IPSec VPN
Replies: 49
Views: 24012

Re: Black list for failed login to IPSec VPN

Do not use ({}) for define empty array, the correct way is :local arrayvar [:toarray ""] I myself used that method once suggested by another user, but it backfired because, although I don't quite remember now how, it had unwanted effects that backfired on me in programming. IT SEEMS to wo...
by rextended
Thu Mar 16, 2023 5:36 pm
Forum: Scripting
Topic: Random number between 0 and 99 or string between 00 and 99 [SOLVED]
Replies: 11
Views: 3390

Re: Random number between 0 and 99 or string between 00 and 99 [SOLVED]

If I actually had a need for a random number, in V6, and had internet... /tool/fetch to random.org would be even "more random" The online version can be "offline" for some reason or you can need that on closed net... I rewrite some minutest ago the OP and convert it to two disti...
by rextended
Thu Mar 16, 2023 4:11 pm
Forum: Forwarding Protocols
Topic: How in v7? Selectivity accept prefixes, not load the rest?
Replies: 9
Views: 303

Re: How in v7? Selectivity accept prefixes, not load the rest?

I'm not one expert on BGP, but why you can not create filters???
by rextended
Thu Mar 16, 2023 4:07 pm
Forum: Scripting
Topic: Random number between 0 and 99 or string between 00 and 99 [SOLVED]
Replies: 11
Views: 3390

Re: Random number between 0 and 99 or string between 00 and 99 [SOLVED]

Yes, on your example, 3 times "2" and 2 times "11", and 2 times very close to the 2 ("3" and "4") If they are random it could happen , even once in a million, if not more, that the same number comes out 10 times in a row and over... Why not? But obviously one ...
by rextended
Thu Mar 16, 2023 3:58 pm
Forum: Forwarding Protocols
Topic: How in v7? Selectivity accept prefixes, not load the rest?
Replies: 9
Views: 303

Re: How in v7? Selectivity accept prefixes, not load the rest?

On RouterOS 7, if you use filters, what is not accepted is implicity discarded.
by rextended
Thu Mar 16, 2023 2:08 pm
Forum: The Dude
Topic: How to restore backup in new Dude
Replies: 6
Views: 4783

Re: How to restore backup in new Dude

Same problem here,
Same? After 8 years you have a v4.x Dude database to be imported on v6.x?
by rextended
Thu Mar 16, 2023 2:02 pm
Forum: Scripting
Topic: Random number between 0 and 99 or string between 00 and 99 [SOLVED]
Replies: 11
Views: 3390

Re: Random number between 0 and 99 or string between 00 and 99 [SOLVED]

The CPU can have the same load all the time,
so you would never get such different numbers,
but they would always fluctuate in the usual range like 9/10/9/10/11/9/10... etc.
by rextended
Thu Mar 16, 2023 9:51 am
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

but I wanted to know if I could use a CRS, because our "consultant" told us it was feasible for queuing and routing
But which consultant is one who advises you to use a switch as a router with queues for 5GBps??? (does not import the brand)
by rextended
Thu Mar 16, 2023 1:48 am
Forum: Scripting
Topic: Random number between 0 and 99 or string between 00 and 99 [SOLVED]
Replies: 11
Views: 3390

Re: Random number between 0 and 99 or string between 00 and 99 [SOLVED]

Thanks...


IRQs
Something really "random" and not repetable on reboot :lol:
On 2021 the random on v7 not exist or not work... ;)
by rextended
Thu Mar 16, 2023 12:35 am
Forum: Scripting
Topic: Random number between 0 and 99 or string between 00 and 99 [SOLVED]
Replies: 11
Views: 3390

Re: Random number between 0 and 99 or string between 00 and 99 [SOLVED]

Yes, I'm all for feature equalization ;)
by rextended
Wed Mar 15, 2023 6:34 pm
Forum: General
Topic: Routers Coming with Default Passwords
Replies: 20
Views: 604

Re: Routers Coming with Default Passwords

Yes, because if you want set wifi or other interface that appear later because driver must be loaded, the script fail.

If is a simple thing, like set system identity, that not involve wait to load something, delay is not needed.
by rextended
Wed Mar 15, 2023 5:19 pm
Forum: General
Topic: Routers Coming with Default Passwords
Replies: 20
Views: 604

Re: Routers Coming with Default Passwords

Will net install remove the default password and set it to something known by us? These questions surprise me, it seemed to me that you were an expert in mass configuration... I have understand bad... If you netinstall device without flag "Apply default config" (with -r on linux) or using...
by rextended
Wed Mar 15, 2023 4:39 pm
Forum: General
Topic: Routers Coming with Default Passwords
Replies: 20
Views: 604

Re: Routers Coming with Default Passwords

How do you mass brand though when you have to lookup the password for each router individually? Why? As I have already wrote, I must unpack and plug the device to the ethernet cable, what does it take to hold down reset? I don't care what password it has. At this point I'm wondering how do you mass...
by rextended
Wed Mar 15, 2023 2:50 pm
Forum: Scripting
Topic: I did it! Script to compute UNIX time!
Replies: 21
Views: 16162

Re: I did it! Script to compute UNIX time!

Also can be added "first letters uppercase after , . ; ! ? etc.", but then it becomes too complicated for how it was thought. Of course, to do this, a small modification is enough to check if the previous character was one of those in the list considered as sentence breaks... but here we g...
by rextended
Wed Mar 15, 2023 2:37 pm
Forum: Scripting
Topic: I did it! Script to compute UNIX time!
Replies: 21
Views: 16162

Re: I did it! Script to compute UNIX time!

I've tried it and something is wrong here […] Yes, I have pasted a work in progress code, fixed the description of the parameter on the post. I'm going to change the script to implement on no-parameter the "First only case": the Uppercase only at the start, the rest lower. Is why you get ...
by rextended
Wed Mar 15, 2023 12:19 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Functions to convert a string to lowercase, uppercase or proper case (only the first letter up, the other low) Any other non A-Z a-z character passed remain unchanged. Optional parameter: 1) no parameter convert the first letter uppercase, all the others lowercase. 2) "U" convert to upper ...
by rextended
Wed Mar 15, 2023 12:16 pm
Forum: Scripting
Topic: I did it! Script to compute UNIX time!
Replies: 21
Views: 16162

Re: I did it! Script to compute UNIX time!

search tag # rextended str2case string lowercase uppercase proper case Functions to convert a string to lowercase, uppercase or proper case (only the first letter up, the other low) Any other non A-Z a-z character passed remain unchanged. Optional parameter: 1) no parameter convert the first letter ...
by rextended
Wed Mar 15, 2023 10:55 am
Forum: General
Topic: Routers Coming with Default Passwords
Replies: 20
Views: 604

Re: Routers Coming with Default Passwords

I don't see all these problems... For the mass configuration the password is completely ignored, so I have to pick up the device to connect it to the ethernet cable, when I'm there holding down reset takes a moment, and with the branding package I can set the default password that I like... (I wrote...
by rextended
Wed Mar 15, 2023 10:41 am
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

7.8 is only 17 days old...
by rextended
Wed Mar 15, 2023 10:36 am
Forum: Scripting
Topic: How to execute risky Mikrotik commands safely?
Replies: 1
Views: 133

Re: How to execute risky Mikrotik commands safely?

Create a backup,
create a job that resore automatically the backup if on 5 minutes you do not delete the job.

If you lost device control, after 5 mins it reload the backup,
by rextended
Wed Mar 15, 2023 10:32 am
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

@holvoetn Don't waste your time too... Now he even talks that I accuse him of hacking… Whatever anyone else writes, he don't understand a very simple concept: It misuses the hardware that can't do all that, it wasn't born to do it (and neither him, I see)... Now let's see what an idiotic phrase he ...
by rextended
Wed Mar 15, 2023 12:39 am
Forum: Scripting
Topic: putting remote VPN address in a variable if VPN is active [SOLVED]
Replies: 1
Views: 129

Re: putting remote VPN address in a variable if VPN is active [SOLVED]

1) but the peer must be active or give error
:put [/ip ipsec active-peers get ([find]->0) remote-address]

2) / 3) if is > 0 at least one active-peer is present
:put [:len [/ip ipsec active-peers find]]
by rextended
Wed Mar 15, 2023 12:33 am
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

Could you stop be idiot and stop flame person on forum? Does the truth "burn" with flames? But don't you understand that you are using a product that has a completely different purpose as if it were a superior router? It is obvious that the device crashes. In fact, as I told you, years la...
by rextended
Tue Mar 14, 2023 10:53 pm
Forum: RouterBOARD hardware
Topic: MikroTik cAP ax [cAPGi-5HaxD2HaxD] (r2)
Replies: 73
Views: 8747

Re: MikroTik cAP ax [cAPGi-5HaxD2HaxD] (r2)

Sorry, and the news? :?:
The link is on OP...
by rextended
Tue Mar 14, 2023 10:49 pm
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

No one noticed it??? a 911G-5HPnD !!! Uh... .. 64 MB of RAM, birdge cache for 15 minutes (instead of 5), single core 600MHz... Level 3 license, is a CPE, not a router... useless services enabled like loop-protect (has only one ethernet...) Do not have any crypto hardware, CPU used als for l2tp and e...
by rextended
Tue Mar 14, 2023 3:00 pm
Forum: Scripting
Topic: Help with if statement script
Replies: 4
Views: 213

Re: Help with if statement script

Ah, I forgot the ! on translation.... The " " ara mandatory, do not exist "one array of MACs", but "array of strings". Or you find something, or you find "nil", you can not have zero, 0 is a result, and find is not a "count"... If the find not find y...
by rextended
Tue Mar 14, 2023 2:14 pm
Forum: Scripting
Topic: Help with if statement script
Replies: 4
Views: 213

Re: Help with if statement script

You need to translate YOUR need into code... Pratically you want FIND inside $mac array if at least $leaseActMAC is present at least one time... :local mac {"00:11:22:33:44:AA"; "00:11:22:33:44:BB"; "00:11:22:33:44:CC"} :if ([:find $mac $leaseActMAC] > 0) do={ ( do not ...
by rextended
Tue Mar 14, 2023 12:46 pm
Forum: General
Topic: Is it possible to start a Home server with an RB2011UiAS-2HnD-IN ?
Replies: 9
Views: 942

Re: Is it possible to start a Home server with an RB2011UiAS-2HnD-IN ?

@anav
[…] from Iran […]
[…] its probably an illegal use of your internet connection.
If it is true, he risks death if he tries to circumvent the censorships for himself and for others...
by rextended
Tue Mar 14, 2023 12:43 pm
Forum: General
Topic: Is it possible to start a Home server with an RB2011UiAS-2HnD-IN ?
Replies: 9
Views: 942

Re: Is it possible to start a Home server with an RB2011UiAS-2HnD-IN ?

sell my VPN through this router or sell ping reduction VPNs again through this router But how do you come up with certain things? If they already have a "slow" connection of their own, adding an extra layer (a VPN) and going through your connection as well, the ping at least doubles... i'...
by rextended
Tue Mar 14, 2023 1:02 am
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

CRS is a Switch, CCR is a Router.
Do not do router's thing with a switch (for example, routing and queues)
by rextended
Mon Mar 13, 2023 11:48 pm
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

If you see the test result of the devices, for example the RB4011 https://mikrotik.com/product/rb4011igs_rm#fndtn-testresults You can see the max speed of 4,286.9 for 25 queues, obviously if you have less queues.... but have only one SFP+ CCR2004 have 2 SFP+ and https://mikrotik.com/product/ccr2004_...
by rextended
Mon Mar 13, 2023 11:37 pm
Forum: SwOS
Topic: No https support in SwOS web interface?
Replies: 7
Views: 847

Re: No https support in SwOS web interface?

Post by @FramiJhames looks very much like something ChatGPT might come up with.
Ohhh.. what....
by rextended
Mon Mar 13, 2023 11:36 pm
Forum: RouterBOARD hardware
Topic: Mikrotik RouterBoard suitable for a ESXi Network?
Replies: 3
Views: 345

Re: Mikrotik RouterBoard suitable for a ESXi Network?

Question created from ChatGPT???
by rextended
Mon Mar 13, 2023 11:34 pm
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

Perhaps this a ChatGPT invasion LOL
:?:
by rextended
Mon Mar 13, 2023 11:30 pm
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

I don't know what the problem is @aromerombit There isn't the slightest problem, if you pay attention we just want to understand where they teach that bulls…t. It's obvious that if you have to drive 5G and you use a "hEX S" it doesn't work... To have a more precise opinion, you must be mo...
by rextended
Mon Mar 13, 2023 11:26 pm
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

It is the same thing as writing that a bicycle cannot have a speed limited to 200...
OBVIOUS...
by rextended
Mon Mar 13, 2023 11:10 pm
Forum: Scripting
Topic: problem about user name in noip.com script.
Replies: 8
Views: 339

Re: problem about user name in noip.com script.

How to solve my user name "nj:nj@corecasys.com" I-have-already-reply-to-you-on-previous-post But I have also readed the instruction on noip.com.... You read the instruction for group update or you are able only to copy&paste? https://www.noip.com/integrate/request Also why you do not ...
by rextended
Mon Mar 13, 2023 11:08 pm
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

@erlinden, didn't you realize he's a troll? It is not the first time (see previous link on my post) after YEARS that a release has come out, she warns everyone "don't put it, it blocks everything for me" and the others answer... "take some course you don't know how to use it". An...
by rextended
Mon Mar 13, 2023 7:43 pm
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

I don't have the exact site, but also during training this was mentioned a lot, I actually asked about this because right now we are limiting a 3 Gbps service seems like its working though. Who taught you that? We need to go back to who sells this information to get elucidations, otherwise they are...
by rextended
Mon Mar 13, 2023 6:55 pm
Forum: General
Topic: What model to use?
Replies: 31
Views: 1140

Re: What model to use?

for what I have read Mikrotik doesn't limit the bandwidth correctly when is more than 1Gbps
And where did you read it?
by rextended
Mon Mar 13, 2023 6:31 pm
Forum: Scripting
Topic: Mikrotik script editor and ChatGPT
Replies: 20
Views: 957

Re: Mikrotik script editor and ChatGPT

In fact they work both on winbox and on webfig, just open the terminal...
by rextended
Mon Mar 13, 2023 6:07 pm
Forum: Scripting
Topic: problem to get system identity
Replies: 2
Views: 147

Re: problem to get system identity

What you give with this command on terminal?
/system identity export

You have ALREADY defined the mikrotikName valiable with ":global mikrotikName" or ":local mikrotikName" ???

Show all the script, probably the error is on another place.
by rextended
Mon Mar 13, 2023 5:59 pm
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

Realy thinking that i lose many time for hide important data? Now you understand why I treat people like you how should they be treated? If you're not good at doing things, it's not the fault of other forum users or MikroTik staff. https://forum.mikrotik.com/viewtopic.php?p=964230#p964201 Are you t...
by rextended
Mon Mar 13, 2023 2:59 pm
Forum: Scripting
Topic: problem about user name in noip.com script.
Replies: 8
Views: 339

Re: problem about user name in noip.com script.

Probably because is not the domain "jeff.corecasys.net"...
by rextended
Mon Mar 13, 2023 2:44 pm
Forum: Scripting
Topic: problem about user name in noip.com script.
Replies: 8
Views: 339

Re: problem about user name in noip.com script.

Is not my code... https://datatracker.ietf.org/doc/html/rfc2822#section-3.2.1 P.S.: why http and not httpS? fetch do not support redirect. You read the instructions? Like not.... Authorization: base64-encoded-auth-string should be the base64 encoding of username:password. GET /nic/update?hostname=my...
by rextended
Mon Mar 13, 2023 2:29 pm
Forum: Scripting
Topic: Mikrotik script editor and ChatGPT
Replies: 20
Views: 957

Re: Mikrotik script editor and ChatGPT

@anav, @holvoetn,
if both you want, I ask ChatGPT to make me a script, I have ZeroTrust with that... :lol: :lol: :lol:
by rextended
Mon Mar 13, 2023 2:09 pm
Forum: Scripting
Topic: problem about user name in noip.com script.
Replies: 8
Views: 339

Re: problem about user name in noip.com script.

EDIT: added details, see next post
by rextended
Mon Mar 13, 2023 12:25 pm
Forum: Scripting
Topic: Mikrotik script editor and ChatGPT
Replies: 20
Views: 957

Re: Mikrotik script editor and ChatGPT

So thank goodness that there is also ChatGPT that "tells" what MikroTik must do, in addition to all the other experts on the forum who know how to run the company? How lucky the MikroTik Staff is, it's full of people who tell them what to do, otherwise they had already closed since 2003......
by rextended
Mon Mar 13, 2023 11:37 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

ChatGPT strike again: https://forum.mikrotik.com/viewtopic.php?t=194448 //**// I finally understood... They are creating "a machine" to replace one of the most hated jobs in the world: a politician... On the other hand, he speaks well, promises well, it seems that his speeches contain some...
by rextended
Mon Mar 13, 2023 11:34 am
Forum: Scripting
Topic: Mikrotik script editor and ChatGPT
Replies: 20
Views: 957

Re: Mikrotik script editor and ChatGPT

Is why: https://forum.mikrotik.com/viewtopic.php?t=194143 I finally understood... They are creating "a machine" to replace one of the most hated jobs in the world: a politician... On the other hand, he speaks well, promises well, it seems that his speeches contain something ... but in the ...
by rextended
Mon Mar 13, 2023 11:32 am
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

For Mikrotik Staff:
Mans please stop going all time for new version and more testing before pushing version.
Stop doing with us Alpha testers!!!
In fact this version is only over a year old, too little between one long-term version and another.

Do you realize the bullshit you write?
by rextended
Mon Mar 13, 2023 11:29 am
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

This soft 6.48.6 is heavily bugged, be carreful all !!!
Good thing you wrote it!!!
After a year and over of using 6.48.6 on more than 4000 devices, not even ONE has crashed.

Could it be that maybe the problem is elsewhere?
Like how do you set them up or treat them yourself?
by rextended
Mon Mar 13, 2023 11:24 am
Forum: General
Topic: Some flame around v6.48.6 (split from the "v6.48.6 [long-term] is released!" topic)
Replies: 26
Views: 299

Re: v6.48.6 [long-term] is released!

@AUsquirrel be carreful when using software 6.48.6.
Luckily you warned him after 4 months...
Otherwise he was waiting another 4 months...
by rextended
Sun Mar 12, 2023 2:24 am
Forum: Scripting
Topic: Osamahfarhan script`s collection
Replies: 8
Views: 480

Re: Osamahfarhan script`s collection

I prefer that simply the topic from which it is taken is reported, but that the user does not write or pretend that he wrote it. If instead it is part of several fragments, write the original author is enough ;) Instead, if someone use it for commercial purposes, clearly indicate the original author...
by rextended
Fri Mar 10, 2023 9:38 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Function for decode a Base32 string based on RFC 4648 Optional "mustpad" parameter, if is present, consider invalid Base32 input when do not have the required padding (is optional on RFC 4648). Optional "hex" parameter use RFC 4648 base32 Extended Hex Alphabet encoding instead ot...
by rextended
Fri Mar 10, 2023 9:36 pm
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

search tag # rextended decode base32 to string or data based on RFC 4648 Function for decode a Base32 string based on RFC 4648 Optional "mustpad" parameter, if is present, consider invalid Base32 input when do not have the required padding (is optional on RFC 4648). Optional "hex"...
by rextended
Fri Mar 10, 2023 7:41 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Function to convert a string (or a Byte stream) to Base32 based on RFC 4648 Optional "nopad" parameter do not put the padding "=" character (is optional on RFC 4648). Optional "hex" parameter use RFC 4648 base32 Extended Hex Alphabet encoding instead ot the standard enc...
by rextended
Fri Mar 10, 2023 7:39 pm
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

Why not also the Base32??? :lol: search tag # rextended str2base32 string or data to base32 encoding RFC 4648 Function to convert a string (or a Byte stream) to Base32 based on RFC 4648 Optional "nopad" parameter do not put the padding "=" character (is optional on RFC 4648). Opt...
by rextended
Fri Mar 10, 2023 4:20 pm
Forum: Scripting
Topic: Decode USSD on wAP LTE kit [SOLVED]
Replies: 4
Views: 6383

Re: Decode USSD on wAP LTE kit [SOLVED]

A new version with some added error checks:
viewtopic.php?t=194152#p989289
by rextended
Fri Mar 10, 2023 2:40 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Function to convert Base16 to string (or a Byte stream)

Option "ignoreodd" ignore if the decoded string have odd value (must be have only character pairs).

viewtopic.php?p=989289#p989289
by rextended
Fri Mar 10, 2023 2:37 pm
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

search tag # rextended base16dec base16 to string or data decoding Function to convert Base16 to a string (or a Byte stream) Note: the function accept mixed A-F a-f case. Option "ignoreodd" ignore if the decoded string have odd value (must be have only character pairs). pratically is a rev...
by rextended
Fri Mar 10, 2023 2:21 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Function to convert a string (or a Byte stream) to Base16

Optional "lowercase" use lowercase a-f in place of the correct A-F

viewtopic.php?p=989286#p989286
by rextended
Fri Mar 10, 2023 2:18 pm
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

search tag # rextended str2base16 string or data to base16 encoding Function to convert a string (or a Byte stream) to Base16 Optional "lowercase" use lowercase a-f in place of the correct A-F :global str2base16 do={ :local input [:tostr "$1"] :local options [:tostr "$2"...
by rextended
Fri Mar 10, 2023 1:33 pm
Forum: Scripting
Topic: Osamahfarhan script`s collection
Replies: 8
Views: 480

Re: Osamahfarhan script`s collection

Look at what they put in that library 16 hours ago, not even a thank you... Do you understand what I mean now? My original (04 Mar 2023, 02:34): https://forum.mikrotik.com/viewtopic.php?p=988931#p988056 Copied (Commits on Mar 9, 2023): https://github.com/merlinthemagic/MTM-RouterOS-Scripting/blob/ma...
by rextended
Fri Mar 10, 2023 12:51 pm
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

My testing BGP border router still alive and do not crash (CCR2116-12G-4S+ fact 7.2.3 / curr 7.8 / fre HDD 104.8 MiB / free RAM 14.9 GiB) uptime 8d 21:58:02
by rextended
Fri Mar 10, 2023 12:47 pm
Forum: Scripting
Topic: Osamahfarhan script`s collection
Replies: 8
Views: 480

Re: Osamahfarhan script`s collection

for a programmer of your level. Please, I'm just one of many programmers who also script RouterOS. Certainly there are others who are better, at least they are not good with the work of others (I want to clarify that I am not referring to you or to some user HERE on THIS forum...) I still have to t...
by rextended
Fri Mar 10, 2023 12:39 pm
Forum: General
Topic: Public-Mikrotik-Bandwidth-Test-Server(s)
Replies: 922
Views: 959489

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

@TomjNorthIdaho
Thanks.
by rextended
Fri Mar 10, 2023 10:42 am
Forum: Scripting
Topic: Osamahfarhan script`s collection
Replies: 8
Views: 480

Re: Osamahfarhan script`s collection

Headache-inducing, not paginated and the variables are called a,b,c,d etc...

They are from 3 years ago, I expected you to at least fix them with the latest things you learned.
by rextended
Thu Mar 09, 2023 9:15 pm
Forum: General
Topic: Folder that cannot be deleted
Replies: 3
Views: 261

Re: Folder that cannot be deleted

And what does the change log have to do with it? Read the change log... Normal or professional users have to read the change log, no excuse. I'm a normal user, I'm not a person who sits and looks at WinBox all day. Don't read instructions or contraindications on medicines? I don't think you are tak...
by rextended
Thu Mar 09, 2023 2:11 pm
Forum: General
Topic: Folder that cannot be deleted
Replies: 3
Views: 261

Re: Folder that cannot be deleted

use netinstall and everytime read (first, obviously) full changelog from one version to another...
by rextended
Thu Mar 09, 2023 1:29 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Function for decode a Base64 string based on RFC 4648 Optional "url" parameter use URL and filename-safe encoding instead ot the standard encoding. Optional "mustpad" parameter, if is present, consider invalid Base64 input when do not have the required padding (is optional on RFC...
by rextended
Thu Mar 09, 2023 12:22 pm
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

search tag # rextended decode base64 to string or data based on RFC 4648 Function for decode a Base64 string based on RFC 4648 Optional "url" parameter use URL and filename-safe encoding instead ot the standard encoding. Optional "mustpad" parameter, if is present, consider inval...
by rextended
Thu Mar 09, 2023 11:49 am
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

Probably, not.
And I write probably because I do not know a method, not because is on this way for sure.
by rextended
Thu Mar 09, 2023 11:11 am
Forum: General
Topic: Firewall logs to files - naming convention
Replies: 4
Views: 259

Re: Firewall logs to files - naming convention

Is there way how to keep names of logs without change upon next file creation?
Set file count to 1 and lines per file 2000...
1 + 1 = 1...
by rextended
Thu Mar 09, 2023 10:50 am
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

This line is the last one in the script. There's no one to wait for. And so what? What's the difference with the fact that you can't have an interactive session with execute? You're getting heavy. If I explain something to you and then you start looking for absurd twists and turns, it's not fine wi...
by rextended
Thu Mar 09, 2023 10:46 am
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

:global test do={:log info mama}
[…]
This is one function, not one variable where inside is present one string that represent one script for be compared later with parse or execute.
"(eval /log infomessage=mama)" is NOT one script, is [useless] precompiled code.
by rextended
Thu Mar 09, 2023 10:24 am
Forum: Scripting
Topic: Cant set ppp secret comment
Replies: 5
Views: 300

Re: Cant set ppp secret comment

Is not needed to duplicate all the string creation and set $accName comment=$newComm just write it one time at the end of if /else If :pick not find any to pick, return nil , instead of one empty string, nil can not be copared with empty string "", not work. You add : after Bal because som...
by rextended
Thu Mar 09, 2023 1:14 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Look, life teaches, one bomb is enough, and nothing work anymore...
People forget how to do things without electricity and without supermarkets and starve...

Artificial intelligence must help us find the key to the problem, not add more key holes...
by rextended
Wed Mar 08, 2023 11:28 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

But don't you realize? This is a Forum, not a Chat, and it is normal that everything leads to discussion on technical topics... We only go OT on the release thread, because here from what I've read so far everyone agrees on the uselessness of ChatGPT in producing something that isn't fake. There rem...
by rextended
Wed Mar 08, 2023 11:22 pm
Forum: General
Topic: Feature Request: Ed25519 SSH keys
Replies: 39
Views: 12231

Re: Feature Request: Ed25519 SSH keys

This should not be too hard to implment.
Like count on BGP routes?
by rextended
Wed Mar 08, 2023 11:19 pm
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

You need interactive terminal with that script?
Execute execute async on separate thread the script.
execute command do not wait any and the script go immediately to next line of script,
execute is executed separately.
You can not have output on terminal.
by rextended
Wed Mar 08, 2023 6:06 pm
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

??? On RouterOS 6.48.6 works. { :global test ":log info \"ok parse with find\"" :local variablename "test" [:parse [/system script environment get [find where name=$variablename] value]] } { :global test ":log info \"ok execute with find\"" :local va...
by rextended
Wed Mar 08, 2023 3:07 pm
Forum: Scripting
Topic: Getting avg-rtt of ping
Replies: 6
Views: 357

Re: Getting avg-rtt of ping

Everytime the "status" filed is one string, is one failed ping (because containing the error code: { :local test [:ping [:resolve "www.mikrotik.com"] count=3 as-value] :local avg 0 :local fails 0 :local min 00:00:10 :local max 00:00:00 :foreach try in=$test do={ :set avg ($avg + ...
by rextended
Wed Mar 08, 2023 2:06 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Function to convert a string (or a Byte stream) to Base64 based on RFC 4648 Optional "url" parameter use URL and filename-safe standard encoding. Optional "nopad" parameter do not put the padding "=" character (is optional on RFC 4648). https://forum.mikrotik.com/viewto...
by rextended
Wed Mar 08, 2023 1:55 pm
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

search tag # rextended str2base64 string or data to base64 encoding RFC 4648 Function to convert a string (or a Byte stream) to Base64 based on RFC 4648 Optional "url" parameter use URL and filename-safe standard encoding. Optional "nopad" parameter do not put the padding "=...
by rextended
Wed Mar 08, 2023 12:39 pm
Forum: Forwarding Protocols
Topic: IP ROUTE ROS7 between ROS6 problem
Replies: 9
Views: 426

Re: PING doesn't work on ROS7

The topic title is wrong
by rextended
Wed Mar 08, 2023 12:38 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

As far as I seem to remember, it was something wireguard would self-test to prove encryption and generate temp keys,
but it's been a while and I haven't done any testing on v7 which I don't use.
by rextended
Wed Mar 08, 2023 11:54 am
Forum: Scripting
Topic: Getting avg-rtt of ping
Replies: 6
Views: 357

Re: Getting avg-rtt of ping

You do not specify RouterOS version, probably v7 because v6 do not have as-value for ping. But on v7 as-value still no return stats, but only single pings (you can calc it sum all 3 times and divide by 3)... Alternative for v6 (work also on v7) :put ([/tool flood-ping [:resolve "www.mikrotik.co...
by rextended
Wed Mar 08, 2023 10:02 am
Forum: Scripting
Topic: Cant set ppp secret comment
Replies: 5
Views: 300

Re: Cant set ppp secret comment

A snipplet can not suffice, for example $total is missing and miss also what happen before and later :local comm [/ppp secret get [find name=$accName] comment] -> :local comm [get $accName comment] :local prof [/ppp secret get $accName profile] -> :local prof [get $accName profile] set $name comment...
by rextended
Wed Mar 08, 2023 4:24 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

One simple example: RADIUS server and user-manager on the same machine (same for The Dude & Co.). Must be used 127.0.0.1, because is more secure and spoofing resistant, and if you change for some reason the other IPs of the machine, you do not need to change also the RADIUS and user-manager conf...
by rextended
Wed Mar 08, 2023 4:15 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

2- Sob never mentioned it so it cant be true. Never mentioned???... I think I saw it in some threads that WG supposedly connects to localhost. I didn't examine it myself yet, but I don't see any good reason why it would do it (I'm not saying it's not possible). https://forum.mikrotik.com/viewtopic....
by rextended
Wed Mar 08, 2023 4:03 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

In fact, something is missing... 1) The reply ignore Wireguard, for example. 2) It omits that it is needed for the CAPs-MAN if it is in the router itself, not if there is a CAPs-MAN located in another network device. 3) Omits that CAPs-MAN uses 127.0.0.1 (localhost) exclusively only if one or more m...
by rextended
Wed Mar 08, 2023 3:32 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

About 127.0.0.1, just log & read... ;) About TCP loose: if you use NAT, keep connection-tracking strict, if you do not use any form of NAT, you can leave it loose. Brief description, not precise, just rapid concept: If is allowed, on reboot (yes, reboot, all connection is destroyed, why try to r...
by rextended
Wed Mar 08, 2023 12:29 am
Forum: General
Topic: Router ISP authentication protocols
Replies: 3
Views: 210

Re: Router ISP authentication protocols

Can be one your internal device that send DHCP request outside the device, like TP-Link Repeaters or TP-Link PowerLine. If the ISP have something configured wrong ( LIKE DHCP SERVER ON PPPOE CLIENT ....) it may appear that the packet is coming to you... 1) Disable Detect Internet (on Interface, butt...
by rextended
Wed Mar 08, 2023 12:22 am
Forum: Scripting
Topic: Reasons to hold on to the mikrotik specific scripting language
Replies: 5
Views: 389

Re: Reasons to hold on to the mikrotik specific scripting language

Wait September and you will have a surprise with RouterOS v7.11.9...
by rextended
Wed Mar 08, 2023 12:19 am
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Let me just remind that Rextended had moderation privileges for a while and as Normis said back then, "with a great power comes great responsibility". I believe the power was stronger than sense of responsibility and the privileges were taken away.. No, the problem is another... I couldn'...
by rextended
Tue Mar 07, 2023 9:06 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Rex, you're not out of a job yet :lol: My concern is the opposite, I'll stop fixing other people's scripts, if I have to start fixing ChatGPT's scripts too. Sooner or later I notice it when I check them. I feel cheated and it's all a waste of time, just when I opened the petition it happened 2 time...
by rextended
Tue Mar 07, 2023 9:00 pm
Forum: General
Topic: Brute passwords of microtik devices from the local network, how to identify malware?
Replies: 17
Views: 3107

Re: Brute passwords of microtik devices from the local network, how to identify malware?

It's these kinds of crap programs, that do what want do without ask, the real malware...

I don't think you've popped up a window to ask for permission, and scanning from all devices to all devices is further bullshit, especially if you're using VPNs...
by rextended
Tue Mar 07, 2023 8:48 pm
Forum: Scripting
Topic: Enable and Disable IP addresses in address list [SOLVED]
Replies: 10
Views: 418

Re: Enable and Disable IP addresses in address list [SOLVED]

One line for each, OBVIOUSLY.... Alternatively, set one or more tags inside the comment and disable only the IPs that have that TAG, for example: enable single group /ip firewall address-list enable [find where list="test" and comment~"group5#"] or enable multiple group /ip firew...
by rextended
Tue Mar 07, 2023 8:47 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

interprets code and forbids submit if syntax fails. Imagine if they start doing such a thing on the forum. There is no module on phpbb that does this, and why would they bother to fix the problems created by others. Just don't accept scripts from ChatGPT. The search is hard enough, then mixing in c...
by rextended
Tue Mar 07, 2023 6:10 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

I understand, but it's rarer and it has to be done on purpose... Isn't it possible to prevent the forum from becoming a source of completely useless scripts which then damn those who find them, thinking they were written by someone, instead of specifying that they are ChatGPT "Author's False&qu...
by rextended
Tue Mar 07, 2023 6:09 pm
Forum: Scripting
Topic: ✂ Rextended Fragments of Snippets
Replies: 47
Views: 20795

Re: ✂ Rextended Fragments of Snippets

Thank you very much, but tidying up also takes a lot of time ;)
by rextended
Tue Mar 07, 2023 5:33 pm
Forum: Forwarding Protocols
Topic: Static Routing with Internet gateway
Replies: 1
Views: 158

Re: Static Routing with Internet gateway

Ignoring the x.x.x.x/29 public IPs block given by your ISP, the correct way, if you do not want use BGP &Co. also internally, is to publish your own two /30 block on main EDGE router. The edge router can not have any IP of the two /30 block and you can use all 8 IPs on different machines (or mul...
by rextended
Tue Mar 07, 2023 4:25 pm
Forum: Scripting
Topic: Enable and Disable IP addresses in address list [SOLVED]
Replies: 10
Views: 418

Re: Enable and Disable IP addresses in address list [SOLVED]

I think the TS wants to be able to enable/disable items on a list...which is, as far as I know, not possible. The items on address list can be disabled or enabled individually. For disable / enable all togheter is this /ip firewall address-list disable [find where name="test"] /ip firewal...
by rextended
Tue Mar 07, 2023 2:51 pm
Forum: Scripting
Topic: Enable and Disable IP addresses in address list [SOLVED]
Replies: 10
Views: 418

Re: Enable and Disable IP addresses in address list [SOLVED]

you're not accurate in your description, a script can't read your mind. disables any IP address that is in the address list where = in the ip firewall address list + what to do = disable + on what = find "any IP address" (or better: all IPs, IP-prefixes, and DNS names) + where = where list...
by rextended
Tue Mar 07, 2023 2:50 pm
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

Why not?
Try yourself.
by rextended
Tue Mar 07, 2023 2:46 pm
Forum: Scripting
Topic: Permanently running scripts, keyboard input and relay control
Replies: 6
Views: 331

Re: Permanently running scripts, keyboard input and relay control

against Russia
The sanctions are against those who govern, not against the people.
The Russians don't want war.They are brothers like everyone else.
by rextended
Tue Mar 07, 2023 2:40 pm
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

P.S.: Works only with global variables, not for local.
by rextended
Tue Mar 07, 2023 2:24 pm
Forum: Scripting
Topic: concatenate values to create variable name [SOLVED]
Replies: 23
Views: 3667

Re: concatenate values to create variable name [SOLVED]

I've never written "trick code into memory" (and I don't know what you mean by that phrase), so don't write things that are inaccurate. Via scripting you can create the script in memory (SCRIPT, not compiled CODE), and then run it, but if you expect it to write something about it, you will...
by rextended
Tue Mar 07, 2023 10:37 am
Forum: RouterBOARD hardware
Topic: Positive ground system [SOLVED]
Replies: 8
Views: 3918

Re: Positive ground system [SOLVED]

If it says on the site, and there's clearly a separate connector, it's true.
I don't think they would have left it written for years if it was wrong...
by rextended
Tue Mar 07, 2023 10:24 am
Forum: Scripting
Topic: global variable
Replies: 11
Views: 624

Re: global variable

No need to open more topic for same thing...

viewtopic.php?f=9&t=178435&p=879152#p879152
by rextended
Tue Mar 07, 2023 10:15 am
Forum: Scripting
Topic: global variable
Replies: 11
Views: 624

Re: global variable

(see next post)
by rextended
Tue Mar 07, 2023 10:09 am
Forum: SwOS
Topic: feature request - https for webui
Replies: 24
Views: 9071

Re: feature request - https for webui

And who would be this intruder between the computer, and the router connected directly with a network cable? Apparantly it's called network, because I always have direct connections between computer and switch :roll: :-P :?: Is it difficult to understand the concept of "directly connected"...
by rextended
Mon Mar 06, 2023 6:30 pm
Forum: Scripting
Topic: global variable
Replies: 11
Views: 624

Re: global variable

I wanted to declare functions whose names are contained in an array without calling them
But why do you have to complicate your life?

There's no practical point in not declaring them first, if you ALREADY KNOW you're calling it later.
by rextended
Mon Mar 06, 2023 6:26 pm
Forum: SwOS
Topic: feature request - https for webui
Replies: 24
Views: 9071

Re: feature request - https for webui

User is referring to http.
And who would be this intruder between the computer, and the router connected directly with a network cable?

Malware on your computer also renders https useless.

Your comments to this resurrected thread add nothing new.
by rextended
Sat Mar 04, 2023 9:29 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Some hint: completly invented instructions, like /tool fetch charset=UTF-8, 2**32 (mean 2 * 2 * 2..... 32 times...), /file save name=test.txt (save what???) etc. Mistakes are one thing, it can happen to me too... the sensationally invented parts are one thing... they're so wrong, they seem real... a...
by rextended
Sat Mar 04, 2023 12:55 pm
Forum: General
Topic: Disable a specific log message?
Replies: 1
Views: 181

Re: Disable a specific log message?

No.
by rextended
Sat Mar 04, 2023 12:51 pm
Forum: Scripting
Topic: global variable
Replies: 11
Views: 624

Re: global variable

RouterOS script is not a complete programming language, is only a scripting language, and can not be done all like programming language. I do not know if on other scripting engine you can define later the objects, but with RouterOS is not possible. For my point of view, I hate library. For example i...
by rextended
Sat Mar 04, 2023 3:34 am
Forum: Scripting
Topic: Base64 and SHA256 function for Scripting
Replies: 7
Views: 835

Re: Base64 and SHA256 function for Scripting

SHA 256 is too complex for me to do on spare time. But for start on Base64, from wiki Man = TWFu Just as start, miss the code for move the cursor by 3 elements adding necessary "=" padding. { :local charsString "" :for x from=0 to=15 step=1 do={ :for y from=0 to=15 step=1 do={ :l...
by rextended
Sat Mar 04, 2023 2:41 am
Forum: Beginner Basics
Topic: Default username and blank password not working
Replies: 2
Views: 238

Re: Default username and blank password not working

The solution is simle: ask where you buy the device. Some companies to prevent their STOLEN devices from being reused, customize the parameters of the device if they attempt a factory reset: It's not yours, because you should have access to it. Usually those who ask these questions after buying it a...
by rextended
Sat Mar 04, 2023 2:19 am
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests ( AP log connection nv2 signal strength )

North Idaho Tom Jones :) lol Finally someone with just spirit.... @gabacho4 calm down, it was already over there, it's normal to disagree or send yourself to hell, I'm not the hypocrite of the moment who gets along with everyone just to please. Continuing to continue to continue is useless.
by rextended
Fri Mar 03, 2023 5:16 pm
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests

I already wrote it a little while ago, just re-read.
I feel it is useless to continue the discussion.
by rextended
Fri Mar 03, 2023 5:05 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Well, before doing the WISP I worked for years as a programmer, so the thinking of a programmer comes naturally to me. I just had to adapt to the RouterOS language and create what isn't there... I started programming when I was a child with Assembler and CPM/86 with MSDOS 3.0 and "debug".....
by rextended
Fri Mar 03, 2023 4:56 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Every tom dick and harry comes here with some stewpid config they got from youtube
Incredibly those of ChatGPT are more subtle, so subtle that ... they make you regret those of Youtube ...

Image

I didn't think I'd ever write this...
by rextended
Fri Mar 03, 2023 2:41 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

Re: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

Another problem is when someone searches something on Google or on the Forum, false GPT results are provided as results,
and maybe they come first because for the search algorithm they SEEM more relevant, creating even more problems...
by rextended
Fri Mar 03, 2023 2:31 pm
Forum: General
Topic: PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.
Replies: 71
Views: 3204

PETITION: Request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source.

I request to Forum Admins to prohibit posting of ChatGPT scripts on the forum, without specify the source. Why? Just today two users post help request on script maded by ChatGPT without specify that those script are generated by ChatGPT. I'm happy to help, but what I can't stand is wasting my time, ...
by rextended
Fri Mar 03, 2023 1:41 pm
Forum: Scripting
Topic: Setting DHCP-Server static leases active-server as server
Replies: 2
Views: 281

Re: Setting DHCP-Server static leases active-server as server

Is not clear... active-server is readonly, and has a value only when a device is actively taken one IP, till the lease expire. if valorized again when device take again the IP. Your script is a mess, for example: :foreach server in=$servers do={ :local active [/ip dhcp-server lease get $server activ...
by rextended
Fri Mar 03, 2023 1:23 pm
Forum: Scripting
Topic: How to extract network variables?
Replies: 4
Views: 359

Re: How to extract network variables?

Is the trademark of ChatGPT invent instructions that do no exist...
:local available_hosts (2 ** (32 - $subnet_mask)) - 2
Do you know where you have to put that thing's answers?
by rextended
Fri Mar 03, 2023 11:49 am
Forum: Scripting
Topic: How to extract network variables?
Replies: 4
Views: 359

Re: How to extract network variables?

I am not aware of any pre-existing script that accomplishes these specific tasks.
So before answering, you don't read other people's posts...
by rextended
Fri Mar 03, 2023 5:14 am
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests

All junk, your nick and your picture does not say Jones, only you are obsessed with adding it at the bottom, otherwise people would not even know.
by rextended
Fri Mar 03, 2023 2:20 am
Forum: Beginner Basics
Topic: Firewall Filter tool is not efficent
Replies: 13
Views: 550

Re: Firewall Filter tool is not efficent

OP:
Once removed the traffic for youtube, Facebook, Instagram, and WhatsApp , what remain?
Other sites must go at 0,5Kbps?
Probably are the most used sites, then use the 200M for all traffic, and you have done...

Follow the @mozerd hint...
by rextended
Fri Mar 03, 2023 2:11 am
Forum: Scripting
Topic: [ ] with space or without? [SOLVED]
Replies: 3
Views: 290

Re: [ ] with space or without? [SOLVED]

I hope you've understood that, apart from when it's necessarily needed, or when it's to be avoided by force, then it's tastes.
I like it without spaces, but sometimes to improve readability, in specific cases, I put them there.
It depends on your taste and how best you read the code.
by rextended
Fri Mar 03, 2023 2:08 am
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests

why this wiki pade have been removed ?
Because exist this topic....
by rextended
Fri Mar 03, 2023 2:04 am
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests

Thanks, but I didn't delete or edit his message...
I got bored like all those who let appear "Sent from my device using Tapatalk" and similar repetitive message,
but in his case he also gave him more emphasis than the whole topic......
by rextended
Fri Mar 03, 2023 2:00 am
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests

You couldn't wait to do it.
What a narcissist…
by rextended
Fri Mar 03, 2023 1:51 am
Forum: Scripting
Topic: [ ] with space or without? [SOLVED]
Replies: 3
Views: 290

Re: [ ] with space or without? [SOLVED]

The question is wrong, there is no common rule for everything. If, on the other hand, you are only talking about code to be executed between [ ], it doesn't matter if you put them there or not. If you look at my scripts (except in cases that I need to layout the code so it can be read better) I neve...
by rextended
Fri Mar 03, 2023 1:45 am
Forum: Scripting
Topic: Fully Working Mikrotik Router OS Backup Script on local storage and FTP Upload [SOLVED]
Replies: 15
Views: 12759

Re: Fully Working Mikrotik Router OS Backup Script on local storage and FTP Upload [SOLVED]

That's a very interesting idea, how do we get to compare the hash of the previous file? My current script creates a daily file with the date inserted in the file name, I understand that to compare it via hash it should always have the same name, right? Filename is not used for compute hash (or not?...
by rextended
Fri Mar 03, 2023 1:37 am
Forum: General
Topic: Feature requests
Replies: 1570
Views: 464719

Re: Feature requests

North Idaho Tom Jones
You really care about your name, it's always the most prominent thing in each of your posts and it's repeated in a completely useless way,
since it's also the nickname and on the avtar...
by rextended
Thu Mar 02, 2023 5:16 pm
Forum: Scripting
Topic: log info comment
Replies: 10
Views: 432

Re: log info comment

For avoid problems (RouterOS do not support non-7bit-ASCII):
:local secretComment [/ppp secret get $user comment]
:log warning "$secretComment ($user) est connect\E9"
by rextended
Thu Mar 02, 2023 3:10 pm
Forum: Scripting
Topic: speed values are not showing decimal places
Replies: 1
Views: 164

Re: speed values are not showing decimal places

RouterOS do not support at all decimal values, only signed 64 bit integer only.
by rextended
Thu Mar 02, 2023 12:24 am
Forum: Scripting
Topic: Script for OVPN users [SOLVED]
Replies: 9
Views: 449

Re: Script for OVPN users [SOLVED]

I can not test it because do not have OVPN ,as I already wrote,

but you put Rx- on script not Tx-...
by rextended
Wed Mar 01, 2023 11:32 pm
Forum: Scripting
Topic: log info comment
Replies: 10
Views: 432

Re: log info comment

:global name do={ ... }
create a function called name for be used later,
and $1 is the first parameter you pass to the function.
On the last script is not present because for what you really want is useless.
by rextended
Wed Mar 01, 2023 11:28 pm
Forum: Scripting
Topic: Script for OVPN users [SOLVED]
Replies: 9
Views: 449

Re: Script for OVPN users [SOLVED]

it seems there is no "uptime" (online duration) field!
It doesn't matter, matter only the existance of "tx-byte".
You don't have to change that parameter there, try the script (if any is blocked, obviously do not return anything if all is ok...)
by rextended
Wed Mar 01, 2023 8:46 pm
Forum: Scripting
Topic: Script for OVPN users [SOLVED]
Replies: 9
Views: 449

Re: Script for OVPN users [SOLVED]

Tx not exist.
What about "Tx Bytes" ?
You test the script?
by rextended
Wed Mar 01, 2023 8:12 pm
Forum: Scripting
Topic: Script for OVPN users [SOLVED]
Replies: 9
Views: 449

Re: Script for OVPN users [SOLVED]

I do not use OVPN. On terminal paste this, using one OVPN real interface name :put [/interface get <ovpn-test>] Search on results how the wanted field are called, for example "...;tx-byte=541654;...". Replace tx-byte on following script with the corect name: /interface ovpn-server remove [...
by rextended
Wed Mar 01, 2023 7:59 pm
Forum: Scripting
Topic: Script for OVPN users [SOLVED]
Replies: 9
Views: 449

Re: Script for OVPN users [SOLVED]

Tx not exist.
by rextended
Wed Mar 01, 2023 7:48 pm
Forum: Scripting
Topic: log info comment
Replies: 10
Views: 432

Re: log info comment

From your OP: ... comments from a L2TP secret ... not " comment from a secret " :global retrCommFrmL2tpSecret do={:return [ /ppp secret get [find where secret=$1] comment]} Why you change arbitrarly the code???? I clearly write "/ppp l2tp-secret" and on example "If the l2tp-...
by rextended
Wed Mar 01, 2023 5:56 pm
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

"minus"...
by rextended
Wed Mar 01, 2023 5:54 pm
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 307

Re: Foreach data string holding

Thank you sir, It works now, but the problem the limit of the data must only 4000bytes as you said, anyway, thankyou so much!!! If are not soo much, consider this.... remove unused start letters on your secrets, or add numbers or symbols you use... /ppp secret :foreach l in=[:toarray "A,B,C,D,...
by rextended
Wed Mar 01, 2023 5:37 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

Angry? Why? It wasn't clear early on that you are NOT an ISP. If you were a real ISP, you didn't even write some things. Since from the speeches (translated from Indonesian?) one never had a clear idea of what you were doing until I asked you. Now I understand, you buy from someone (perhaps real ISP...
by rextended
Wed Mar 01, 2023 2:20 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

...using speedtest on my network... ...automate internet access route switching based on bandwidth... ...some people prefer to do the boring manual way all their lives... ...waiting for the >>>customer<<< to get angry and then act ...for me and some other people... ...other people's opinions... ......
by rextended
Wed Mar 01, 2023 11:39 am
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 307

Re: Foreach data string holding

The script on post #2 for me works, but how many items are? The file created on this way can not exceed ~4000 Bytes... On terminal, THIS work? (do not omit parenthesys { }) { :local filedata "" /ppp secret :foreach i in=[find] do={ :local name [get $i name] :local password [get $i password...
by rextended
Tue Feb 28, 2023 10:07 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

If it's just manual, you don't need a network engineer, turn off the modem whose bandwidth drops, then the problem is solved. :lol: It's hard to translate, I'm not English, but let's put it this way: If for some reason independent of the ISP , netflix doesn't work, do a speedtest? Or maybe the most...
by rextended
Tue Feb 28, 2023 9:34 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

please explain how you would solve this. Is easy: do not do speed tests. The problem appear only when you do that. If the problem is another service that do not work, I check that service instead do useless speedtesting for kids. Some ISP put on the max precedence speedtesting, other drop useless r...
by rextended
Tue Feb 28, 2023 9:28 pm
Forum: Scripting
Topic: Foreach data string holding
Replies: 7
Views: 307

Re: Foreach data string holding

You do not keep previous values.... set is... set, not "add at the end" set x a set x b set x c and at the end x is only c, not "abc" Please write code correctly, no $ on variable name after global, local or set :local filedata "" /ppp secret :foreach i in=[find] do={ :...
by rextended
Tue Feb 28, 2023 9:21 pm
Forum: Scripting
Topic: log info comment
Replies: 10
Views: 432

Re: log info comment

Just checked, this, and not all the scripton picture, work after the 2nd disconnection. On first disconnection do not work because is on cache the previous script, no matter if you hava changed it. Try only with this: :global retrCommFrmL2tpSecret do={:return [/ppp l2tp-secret get [find where secret...
by rextended
Tue Feb 28, 2023 6:36 pm
Forum: Scripting
Topic: log info comment
Replies: 10
Views: 432

Re: log info comment

I've been searching for hours and days but can't manage to get the coments to show up... Why do you do not ask on forum before? If the l2tp-secret for example is this: /ppp l2tp-secret add address=1.5.4.6/32 comment=bau secret=miao for retrieve the comment must be doed in this way: :put [/ppp l2tp-...
by rextended
Tue Feb 28, 2023 3:15 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

It's like driving a car at full speed inside a city, just for check if it can still reach the max speed...
by rextended
Tue Feb 28, 2023 1:40 pm
Forum: General
Topic: Admin level Controller and log change For network
Replies: 1
Views: 154

Re: Admin level Controller and log change For network

Not uderstandable, change translator....
by rextended
Tue Feb 28, 2023 1:01 pm
Forum: Scripting
Topic: How to extract network variables?
Replies: 4
Views: 359

Re: How to extract network variables?

Some of my "tools" https://forum.mikrotik.com/viewtopic.php?t=177551#p953746 For example for 10.31.42.56/16 (no matter the ".0.0" at the end) { :local source 10.31.42.56/16 :local ip [:toip [:pick $source 0 [:find $source "/"]]] :local prefix [:tonum [:pick $source ([:f...
by rextended
Tue Feb 28, 2023 12:54 pm
Forum: Scripting
Topic: Convert uptime to date and time [SOLVED]
Replies: 46
Views: 4499

Re: Convert uptime to date and time [SOLVED]

The script works fine now, thanks!
Thanks to you.

Please, if you find a bug on any of my scripts, notify me.
Thanks.
by rextended
Tue Feb 28, 2023 12:51 pm
Forum: General
Topic: How to mass configure 50 hAP units ?
Replies: 19
Views: 1111

Re: How to mass configure 50 hAP units ?

How would you configure 50 hAP units spread over a building ? Which tools would you select ? IF... that is IF any mikrotik devices support these following subjects, i think it would be great: 1. pxe boot capable config management interface, and it's runtime environment. 2. set the dhcp and tftp ser...
by rextended
Tue Feb 28, 2023 5:32 am
Forum: Scripting
Topic: Bandwidth test script?
Replies: 2
Views: 237

Re: Bandwidth test script?

Suppose a customer is complaining about internet "being slow" intermittently.

Is it feasible to run a script that will do a bandwidth test at a certain interval and then send/store the results to review?
Surely the test starts when the user needs bandwidth and will start complaining…
by rextended
Tue Feb 28, 2023 3:26 am
Forum: Scripting
Topic: Convert uptime to date and time [SOLVED]
Replies: 46
Views: 4499

Re: Convert uptime to date and time [SOLVED]

Ok, I found two bug, fixed. Update previous script. For curiosity, added this: :if ($tmpsec < (86400 * $tmpbissex)) do={ :set yearStart ($yearStart - 1) :set tmpdays ($tmpdays + 365) } When years are calculated, if are not passed already the number of bissextile days, is still the previous year... A...
by rextended
Tue Feb 28, 2023 2:00 am
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

Urgent issue - LLDP-MED (auto voice VLAN for phones) is not functioning after upgrading from 7.7 to 7.8 on CRS328-24p
Urgent?
Did you do not do any test on lab before put the release on production?
by rextended
Mon Feb 27, 2023 11:20 pm
Forum: General
Topic: How to mass configure 50 hAP units ?
Replies: 19
Views: 1111

Re: How to mass configure 50 hAP units ?

Nope, but it‘s rather an intresting topic.. ;-)
Ok, because happen often... ¯\(°_o)/¯
by rextended
Mon Feb 27, 2023 11:19 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

I don't know if that is still true, but it appears that at one time most bandwidth on Starlink was used by people doing speedtests all the time... The problem is widespread, as it is for me: in the evening when they return, almost all customers start speedtesting "to see if it's okay" eve...
by rextended
Mon Feb 27, 2023 10:42 pm
Forum: General
Topic: HTTP speed test
Replies: 40
Views: 2787

Re: HTTP speed test

You like copy & paste?
Is there another way to change internet access routes automatically when the bandwidth on one of the routes is dropping?
Surely if everyone reasoned badly like you, everything would be blocked due to continuous tests that consume bandwidth for nothing.
by rextended
Mon Feb 27, 2023 10:38 pm
Forum: General
Topic: Speed test
Replies: 6
Views: 1213

Re: Speed test

Is there another way to change internet access routes automatically when the bandwidth on one of the routes is dropping?
Surely if everyone reasoned badly like you, everything would be blocked due to continuous tests that consume bandwidth for nothing.
by rextended
Mon Feb 27, 2023 10:18 pm
Forum: Beginner Basics
Topic: i want a script to remove hosts if they used 1gb
Replies: 9
Views: 656

Re: i want a script to remove hosts if they used 1gb

User accounting and billing is something else.
+10
by rextended
Mon Feb 27, 2023 10:15 pm
Forum: General
Topic: Speed test
Replies: 6
Views: 1213

Re: Speed test

Better put all speed test sites on blacklist, ony wasted resource, time, power, CO2 produced for no reason.
by rextended
Mon Feb 27, 2023 10:13 pm
Forum: General
Topic: How to mass configure 50 hAP units ?
Replies: 19
Views: 1111

Re: How to mass configure 50 hAP units ?

+1 )
From 2008 just a +1 ) ?
Hacked account....
by rextended
Mon Feb 27, 2023 10:11 pm
Forum: General
Topic: Is mum.mikrotik.com offline or moved?
Replies: 7
Views: 554

Re: Is mum.mikrotik.com offline or moved?

We need that MUM comes back!

╮(╯_╰)╭
by rextended
Mon Feb 27, 2023 3:05 pm
Forum: General
Topic: Is mum.mikrotik.com offline or moved?
Replies: 7
Views: 554

Re: Is mum.mikrotik.com offline or moved?

I can't access the site from America when my VPN is on, but when I turn it off, I can still access it.
Some VPN are used often from Indian spammers...
by rextended
Mon Feb 27, 2023 2:11 pm
Forum: General
Topic: CCR2004 - script run count
Replies: 2
Views: 297

Re: CCR2004 - script run count

probably also the global variables disappearing....

write that on 7.8 release topic...
by rextended
Mon Feb 27, 2023 2:08 pm
Forum: Useful user articles
Topic: IPS/IDS with SELK
Replies: 22
Views: 2498

Re: IPS/IDS with SELK

I didn't want to upset anyone.
??? why ???

This is a forum, better listen to more opinions, it doesn't matter if one agrees or not.
by rextended
Mon Feb 27, 2023 1:59 pm
Forum: Useful user articles
Topic: IPS/IDS with SELK
Replies: 22
Views: 2498

Re: IPS/IDS with SELK

I agree on some points, but the firewall can't save programmers from foot-written code that can easily be used to do SQL-injection...
by rextended
Mon Feb 27, 2023 1:52 pm
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

I can read I know there is no change for 60Ghz...but noone is gonna instal it on 60Ghz?
It makes no sense to risk in a device that does not benefit from it, then with a version of RouterOS that has just come out...
by rextended
Mon Feb 27, 2023 1:50 pm
Forum: Useful user articles
Topic: IPS/IDS with SELK
Replies: 22
Views: 2498

Re: IPS/IDS with SELK

Do you guys understand the usecase of an IDS/IPS or are you just bashing on this topic because you have some free time? And what about the example of a stupid administrator who leaves the doors open at random??? But what management is it??? It doesn't matter what peripherals you put in, or how they...
by rextended
Mon Feb 27, 2023 1:46 pm
Forum: Useful user articles
Topic: IPS/IDS with SELK
Replies: 22
Views: 2498

Re: IPS/IDS with SELK

If a bad bot would like to try some SQL injections it will recognise it and blocks the host.
Bad bot???
BAD ADMIN!!!
How can the idiot who leaves the SQL port open to the outside be called "admin"???
by rextended
Mon Feb 27, 2023 1:37 pm
Forum: Useful user articles
Topic: IPS/IDS with SELK
Replies: 22
Views: 2498

Re: IPS/IDS with SELK

(and also under DDoS the nice graphs are the DDoS itself...)
by rextended
Mon Feb 27, 2023 1:32 pm
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

With a (just) newly released OS that doesn't have any improvements for 60GHz???
by rextended
Mon Feb 27, 2023 1:29 pm
Forum: General
Topic: Is mum.mikrotik.com offline or moved?
Replies: 7
Views: 554

Re: Is mum.mikrotik.com offline or moved?

You read the error?
Your browser sent an invalid request.
by rextended
Mon Feb 27, 2023 1:27 pm
Forum: Announcements
Topic: v7.8 [stable] is released!
Replies: 301
Views: 59201

Re: v7.8 [stable] is released!

reboot, and if this nott fix, netinstall
by rextended
Mon Feb 27, 2023 1:23 pm
Forum: Beginner Basics
Topic: contact admins
Replies: 2
Views: 309

Re: contact admins

Hi,
How can one contact the admins of this forum?
I would like my account and all personal data deleted from this forum.
Thanks for your help,
write to support@mikrotik.com
  • 1
  • 2
  • 3
  • 4
  • 5
  • 34