Community discussions

MikroTik App

Search found 1157 matches

by optio
Sat Apr 12, 2025 3:02 pm
Forum: Wireless Networking
Topic: station mode - connect to list of ssid - use of access list
Replies: 4
Views: 401

Re: station mode - connect to list of ssid - use of access list

If you want to make script more flexible for dynamically handling connect SSIDs depending by ROS configuration without need to edit script - you could create wifi configuration ( /interface/wifi/configuration ) for each SSID with certain comment for finding in script (eg. "[connect config]"...
by optio
Fri Apr 11, 2025 2:14 am
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 2326

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

@jonjm that cannot be true, unless you removed script error logging, :error command aborts script with error which is logged unless script is executed from CLI.
error-scheduler.png
error-scheduler-log.png
by optio
Fri Apr 11, 2025 1:46 am
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 2326

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

Still IMO rsc is missing then quit/exit command to abort execution without error(:error) to avoid workarounds putting code into function just to exit script by some condition.
by optio
Thu Apr 10, 2025 9:54 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 2326

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

@jonjm this :return issue is still present as I described above, so your script will produce error log on return if script is not executed from CLI (Terminal), eg. directly from Winbox/WebFig GUI or scheduler.
return-scripts.png
script-logs.png
by optio
Thu Apr 10, 2025 8:55 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 2326

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

If you did not realize it either, then we were together on that, so you can join the club.
He knows that, for sure :)
by optio
Thu Apr 10, 2025 8:43 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 2326

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

Hmm, and there is no script error in logs if :return is called from code that is not in function scope? I can bet that was happening before and I needed to decuple code into functions to avoid that. Maybe it is fixed in some later ROS ver...
by optio
Thu Apr 10, 2025 5:26 pm
Forum: Scripting
Topic: RouterOS Bug - Why Do These Simple Scripts Break? Cause of Mysterious "value:" Prompt?
Replies: 20
Views: 2326

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

IMO point is here to exit script without producing error and avoid deep condition nesting (guard conditions)... As I recall :return <sometning> did not produce error (or just script error wasn't logged) up to some 7.x version when called outside function, but now does. Simple workaround without chan...
by optio
Thu Apr 10, 2025 3:01 pm
Forum: Scripting
Topic: Operator <%% and copied arrays
Replies: 9
Views: 547

Re: Operator <%% and copied arrays

It was a bug up to some 7.x version as @rextended mentioned in linked topic. One usually expect that variable is assigned by value, not reference, in scripting languages (as opposite in Java for eg.), and MT fixed that, so there is no need to manually create new array with copy of elements of other ...
by optio
Tue Apr 08, 2025 3:50 pm
Forum: Scripting
Topic: LTE band command issue [SOLVED]
Replies: 3
Views: 465

Re: LTE band command issue [SOLVED]

Try to put some delay (eg. :delay 10) before executing lte commands on startup, can be that modem firmware was not initialized yet when command is executed. See in ROS logs when first lte log message appears and adjust delay accordingly.
by optio
Tue Apr 08, 2025 10:56 am
Forum: Wireless Networking
Topic: BSSID randomization support
Replies: 10
Views: 716

Re: BSSID randomization support

I’m disabling wifi interface to force clients to disconnect when bssid is changed, but I will check how client behaves when bssid is changed while connected…
by optio
Mon Apr 07, 2025 9:15 pm
Forum: Wireless Networking
Topic: BSSID randomization support
Replies: 10
Views: 716

Re: BSSID randomization support

Not using CAPsMAN, but it think it is more complex than just set random mac on CAP device, I think script executed on CAP will need also to update new mac on CAPsMAN device, over API for eg. Also maybe better solution will be to run script on CAPsMAN which will randomize macs for each CAP client and...
by optio
Mon Apr 07, 2025 8:31 pm
Forum: Wireless Networking
Topic: BSSID randomization support
Replies: 10
Views: 716

Re: BSSID randomization support

Here is my approach which I'm using (on ROS 7.16.2): :local randBssid do={ :local macOctets [:toarray ""] :local oct "" :for i from=0 to=[:len $bssid] do={ :local chr [:pick $bssid $i ($i + 1)] :if ($chr = $macDelimiter) do={ :set macOctets ($macOctets, $oct) :set oct ""...
by optio
Sun Mar 23, 2025 5:44 pm
Forum: Scripting
Topic: :range command
Replies: 5
Views: 880

Re: :range command

@S8T8 for adding members to interface list :range is not useful as @Amm0 mentioned because interface param for adding list interface member doesn't accepts array (and IMO it will be wrong usage to build interface names list with :range even if is accepted), just find interfaces with proper condition...
by optio
Sun Mar 23, 2025 2:23 pm
Forum: MikroTik hardware questions
Topic: Replacing a flash drive - problem with the Software-ID
Replies: 33
Views: 9516

Re: Replacing a flash drive - problem with the Software-ID

Also socket adapter for WSON8 can be used, like this https://vi.aliexpress.com/item/1005005261973767.html . This will simplify soldering, but particular adapter from link doesn't look robust and not sure is it reliable when board is shaked when transfering device. Maybe adapters with better quality ...
by optio
Mon Mar 17, 2025 10:45 pm
Forum: General
Topic: forum guru status
Replies: 27
Views: 2586

Re: forum guru status

by optio
Sat Mar 08, 2025 10:31 pm
Forum: Virtualization
Topic:  CHR using Apple Virtualization & QEMU via macOS UTM
Replies: 75
Views: 25932

Re: CHR using Apple Virtualization Framework (via UTM)

@Amm0, yes issue is with enabled QEMU Hypervisor for aarch64 CHR, it should be disabled, I had same issue as @monk when I was setting this up before, for X86_64 doesn't have affect since it's different architecture. Regarding RNG device, it is also working when it is enabled, maybe it will approve p...
by optio
Sat Mar 08, 2025 4:54 pm
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

Yes, you are right, I did not test it properly (I did't flush connections), I don't think @anav routing solution can work in this case when IPsec gateway is dynamic IP. @rextended solution with scheduled script is currently easiest workaround. Also maybe to try implementing like in this topic https:...
by optio
Sat Mar 08, 2025 2:12 pm
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

@darkman I misunderstood packet flow diagram regarding IPsec, did not work much with it, yes it won't work with just firewall filter rule, it not possible to distinct IPsec traffic like that... I see you already have proposed solutions from @rextended by disabling src nat rule for IPsec with schedu...
by optio
Sat Mar 08, 2025 3:00 am
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

It seems I will need to setup on my device this and see what is happening…
by optio
Fri Mar 07, 2025 11:19 pm
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

@darkman do you see packets counts on ipsec rules (defconf: accept in/out ipsec policy) above it? They should accept ipsec traffic before this drop rule. Also set NordVPN DNS addresses (from here ) as ROS DNS upstream DNS (Servers in IP->DNS), maybe it is just your current DNS blocked. If you need c...
by optio
Fri Mar 07, 2025 11:12 pm
Forum: Beginner Basics
Topic: DNS/Static entry BUG?
Replies: 9
Views: 1511

Re: DNS/Static entry BUG?

Well, it will work like that until googleadservice changes IP, this is not uncommon if is behind some load balancer and some service node becomes unavailable, not really good solution for whitelisting hosts IMO. @Rox169 use Pi-hole or AdGuard instead ROS DNS if you need any even slightly more featur...
by optio
Fri Mar 07, 2025 2:31 am
Forum: Beginner Basics
Topic: DNS/Static entry BUG?
Replies: 9
Views: 1511

Re: DNS/Static entry BUG?

I changed the first topic. NO I do not use PiHole as DNS. I only took the adlist StevenBlack which is used in PiHole by the way....I use adlist in roteros only. Ah ok... I was confused by mentioning Pi-hole in context, yes StevenBlack adlist is used by default in Pi-hole... Not sure if you can over...
by optio
Fri Mar 07, 2025 2:19 am
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

Why is the text in this post is struck through ? And what does <peer_name> stands for ? What should I put there ? Because it is not a solution for your "killswitch" as I realized and written in my post after that, it's just a command to disable VPN connection. See what is written in post ...
by optio
Thu Mar 06, 2025 10:13 pm
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

So if the VPN connection drops, the router will cut off everything from the internet. Ah, that you mean by "killswitch"... Above command is for disable/enable VPN connection. Ok, personally I will done it with firewall filter rule and drop all forward from LAN interface list to WAN interf...
by optio
Thu Mar 06, 2025 9:59 pm
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN


/ip/ipsec/peer/set [find name="<peer_name>"] disabled=<yes|no>
by optio
Thu Mar 06, 2025 9:52 pm
Forum: General
Topic: Show changelog from CLI?
Replies: 8
Views: 3614

Re: Show changelog from CLI?

EDIT: Well dip me in tar and feathers, Wireshark doesn't show any connection from Winbox, sounds like the changelog really arrives from ROS... It is fetched from ROS and transferred to WInbox. Using packet sniffer on ROS is visible... Here is TCP stream to upgrade.mikrotik.com:80 when checking for ...
by optio
Thu Mar 06, 2025 6:29 pm
Forum: Wireless Networking
Topic: First time configuration Ax-Lite LTE with NordVPN
Replies: 67
Views: 6161

Re: First time configuration Ax-Lite LTE with NordVPN

A lot of stuff above.. @darkman I have NordVPN setup (IPsec) on ROS just for fun and was pretty straight forward to setup based on their article -> https://support.nordvpn.com/hc/en-us/articles/20398642652561-MikroTik-IKEv2-setup-with-NordVPN , sometimes (most times) it is better to search web befor...
by optio
Thu Mar 06, 2025 6:00 pm
Forum: Beginner Basics
Topic: DNS/Static entry BUG?
Replies: 9
Views: 1511

Re: DNS/Static entry BUG?

I also use adlist with StevenBlack from PiHole.
Do you use PiHole as DNS which uses ROS DNS as upstream DNS?
by optio
Thu Mar 06, 2025 5:08 pm
Forum: Scripting
Topic: PUT call to rest/interface/bonding/<id> crashes switch
Replies: 3
Views: 1387

Re: PUT call to rest/interface/bonding/<id> crashes switch

Best way is then to report bug ticket to MT support service desk (uses different account than forum) if over CLI works but not over API.
Describe issue with example and attach autosupout.rif file if is generated after crash.
by optio
Thu Mar 06, 2025 3:41 pm
Forum: Scripting
Topic: PUT call to rest/interface/bonding/<id> crashes switch
Replies: 3
Views: 1387

Re: PUT call to rest/interface/bonding/<id> crashes switch

What happens if you update same property (name) over CLI with set for same interface? Is this property actually possible to update or is just read-only property when interface is added? Did you try update other property over API like link-monitoring like in doc.
by optio
Wed Mar 05, 2025 10:30 pm
Forum: General
Topic: Show changelog from CLI?
Replies: 8
Views: 3614

Re: Show changelog from CLI?

Here is simple global function for fetching changelog: :global changelog do={ :local version :if ([:typeof $1] = "str") do={ :set version $1 } else={ :onerror e { :set version ([/system/package/update/check-for-updates as-value]->"latest-version") } do={ :error "Unable to ch...
by optio
Wed Mar 05, 2025 9:18 pm
Forum: Virtualization
Topic:  CHR using Apple Virtualization & QEMU via macOS UTM
Replies: 75
Views: 25932

Re: CHR using Apple Virtualization Framework (via UTM)

Great work. I will try them on Silicon Mac when I find some time and report back.
by optio
Wed Mar 05, 2025 4:43 pm
Forum: General
Topic: Show changelog from CLI?
Replies: 8
Views: 3614

Re: Show changelog from CLI?

I think even Winbox is fetching from "crafted" url:
https://download.mikrotik.com/routeros/<version>/CHANGELOG
Why not using it with fetch tool from CLI?

Simple script with global function for it can be made if you want to avoid typing it every time.
by optio
Tue Mar 04, 2025 11:16 pm
Forum: Beginner Basics
Topic: Re: Setting Up Policy-Based Routing with Mikrotik Hex Refresh for Selective VPN Traffic [SOLVED]
Replies: 51
Views: 12343

Re: Setting Up Policy-Based Routing with Mikrotik Hex Refresh for Selective VPN Traffic [SOLVED]

Yes, I wrote "It depends" :) But from my experience I didn't detect much false positives, only P2P torrents are hard to detect. But at least they are falling under unknown traffic with lowest prio so it is big deal for QoS in my case. Also my understanding is that modern apps exhibit strat...
by optio
Tue Mar 04, 2025 11:01 pm
Forum: Beginner Basics
Topic: Re: Setting Up Policy-Based Routing with Mikrotik Hex Refresh for Selective VPN Traffic [SOLVED]
Replies: 51
Views: 12343

Re: Setting Up Policy-Based Routing with Mikrotik Hex Refresh for Selective VPN Traffic [SOLVED]

It depends, websites IPs can be resolved with address lists unless are shared with other site by reverse proxy, also apps have their server/port ranges which are using and connections to these IPs/ports can be marked in firewall mangle. For eg. I created queue tree for QoS based on such mangle rules...
by optio
Sun Mar 02, 2025 8:10 pm
Forum: Scripting
Topic: REST API adding and removing IPs to firewall address-list [SOLVED]
Replies: 32
Views: 9266

Re: REST API adding and removing IPs to firewall address-list [SOLVED]

Yes, because there will no be additional logic in ROS script for processing lists to create aggregated list, just commands for adding / removing address list items.
by optio
Sun Mar 02, 2025 7:12 pm
Forum: Scripting
Topic: REST API adding and removing IPs to firewall address-list [SOLVED]
Replies: 32
Views: 9266

Re: REST API adding and removing IPs to firewall address-list [SOLVED]

My original intention was to do the heavy job of comparing IPs from two different lists rather on a utility device instead of my router. I understand, hybrid solution will work in this case, comparing lists and generating new one can be done outside ROS (CPU load will not be on ROS device), but imp...
by optio
Sun Mar 02, 2025 6:39 pm
Forum: Scripting
Topic: REST API adding and removing IPs to firewall address-list [SOLVED]
Replies: 32
Views: 9266

Re: REST API adding and removing IPs to firewall address-list [SOLVED]

@An5teifo Generally calling API requests as replacement for ROS script which performs many config updates is bad idea, especially using many API requests in loops. Difference in CPU load is because there is much more overhead on API request vs local command, CPU is used for firewall, networking, API...
by optio
Tue Feb 25, 2025 8:39 pm
Forum: General
Topic: Can ping container from terminal but not PC
Replies: 4
Views: 2637

Re: Can ping container from terminal but not PC

I cannot ping it from a PC, nor can I open the Pi-hole page. I can ping the container bridge .1 from the PC (and the terminal, obviously). add action=accept chain=forward comment="Allow Containers Anywhere" in-interface=containers this forward rule only allows packet forward to containers...
by optio
Mon Feb 24, 2025 11:11 pm
Forum: Virtualization
Topic:  CHR using Apple Virtualization & QEMU via macOS UTM
Replies: 75
Views: 25932

Re: CHR using Apple Virtualization Framework (via UTM)

Ah, forgot it's under Linux, maybe with plistutil for conversion + some XML edit tool like xmlstarlet ? plistutil comes with libplist-utils package. plistutil is not even needed if .plist is not in binary format or it can be used to convert to JSON format and such can be modified with jq tool (inste...
by optio
Mon Feb 24, 2025 10:04 pm
Forum: General
Topic: CVE-2024-54772 Information About
Replies: 20
Views: 7379

Re: CVE-2024-54772 Information About

Ok, to follow up my post, @rextended was probably thinking in direction for having fake admin user with very strong password and other user with less strong password, but still, brute force attack can be performed in parallel tasks which one task tries to brute force admin user and other which tries...
by optio
Mon Feb 24, 2025 9:42 pm
Forum: General
Topic: CVE-2024-54772 Information About
Replies: 20
Views: 7379

Re: Comments on CVE-2024-54772 ...

But with this analogy what is difference to brute force fake admin user or changed admin user with strong password which takes "a billion years to 100 years"? After billion years or 100 years when changed user is compromised you will realize that it was better to have fake admin user? :)
by optio
Mon Feb 24, 2025 9:02 pm
Forum: Virtualization
Topic:  CHR using Apple Virtualization & QEMU via macOS UTM
Replies: 75
Views: 25932

Re: CHR using Apple Virtualization Framework (via UTM)

I also want to figure out how to update the UUIDs in the .plist per build too. I'll hopefully get it this week.
You can try to automate with PlistBuddy (/usr/libexec/PlistBuddy) in script. PlistBuddy is macOS provided CLI tool for editing .plists
by optio
Mon Feb 24, 2025 8:41 pm
Forum: General
Topic: CVE-2024-54772 Information About
Replies: 20
Views: 7379

Re: The twelve Rules of Mikrotik Club

How many years can brute force continue undetected with a random 254 characters password???
Depends how lucky attacker is, just mentioned as possible edge case, from 7.18 without possibility of user enumeration it is even lesser probability for brute force.
by optio
Mon Feb 24, 2025 8:32 pm
Forum: Virtualization
Topic:  CHR using Apple Virtualization & QEMU via macOS UTM
Replies: 75
Views: 25932

Re: CHR using Apple Virtualization Framework (via UTM)

Nice work.
FWIW, ARM64 CHR can run in QEMU with image provided by MT without modifications if no additional space on it is needed.
by optio
Mon Feb 24, 2025 7:15 pm
Forum: Announcements
Topic: v7.18.2 [stable] is released!
Replies: 563
Views: 182535

Re: v7.18 [stable] is released!

With 16Mb flash device you can only watch new release notes and cry :) $ stat --format="%n: %s" * container-7.16.2-arm.npk: 98449 routeros-7.16.2-arm.npk: 11608772 wifi-qcom-ac-7.16.2-arm.npk: 2740369 = 14447590 bytes $ stat --format="%n: %s" * container-7.18-arm.npk: 118929B rou...
by optio
Mon Feb 24, 2025 6:53 pm
Forum: General
Topic: CVE-2024-54772 Information About
Replies: 20
Views: 7379

Comments on CVE-2024-54772 ...

https://mikrotik.com/supportsec/cve-2024-54772 Can be a way to trick brute force attack to leave admin user without rights. If is cleverly crafted attack it may not be enough, when admin user is compromised, after performing API request with its credentials which only admin user can perform and API...
by optio
Sun Feb 23, 2025 12:13 pm
Forum: Beginner Basics
Topic: The twelve Rules of Mikrotik Club
Replies: 53
Views: 10399

Re: The twelve Rules of Mikrotik Club

Disconnect/block internet/untrusted network to the router when performing netinstall until proper firewall rules are created (if netinstall is done without config) and admin user strong password is set or admin replaced with other user. For LTE routers disconnect means remove SIM or netinstall with ...
by optio
Sat Feb 22, 2025 11:40 am
Forum: Virtualization
Topic:  CHR using Apple Virtualization & QEMU via macOS UTM
Replies: 75
Views: 25932

Re: CHR using Apple Virtualization Framework (via UTM)

I never managed to boot ARM64 ROS image using AVF, only with QEMU in UTM, same UTM QEMU setup
config.plist.zip
works on Intel and Silicon Mac with unmodified CHR image. I would also like to know if anybody succeed to boot ARM64 ROS with AVF on Silicon.
by optio
Thu Feb 20, 2025 10:56 am
Forum: General
Topic: AmneziaWG in RouterOS?
Replies: 48
Views: 37169

Re: AmneziaWG in RouterOS?

by optio
Tue Feb 18, 2025 11:14 pm
Forum: Scripting
Topic: script for auto update
Replies: 7
Views: 4521

Re: script for auto update

I have feeling someone is just creating users on forum to create such topics to pissoff @rextended :)
by optio
Tue Feb 18, 2025 12:19 am
Forum: General
Topic: SSH-forwarding vs. normal DNAT?
Replies: 9
Views: 3044

Re: SSH-forwarding vs. normal DNAT?

On SSH server only client public key must be imported for certificate based authentication, also just password can be used. OpenSSH (not in ROS) server also supports PAM module which supports various authentication mechanisms. If you want it to compare with P2P Wireguard connection between 2 hosts, ...
by optio
Mon Feb 17, 2025 11:43 pm
Forum: General
Topic: SSH-forwarding vs. normal DNAT?
Replies: 9
Views: 3044

Re: SSH-forwarding vs. normal DNAT?

Also it can be used just to change source IP (hide actual client IP) for connection to remote host where remote host is not controlled by client connection initiator. For eg. when creating SSH dynamic forwarding to some WAN remote host, then SSH client side creates local SOCKS proxy to remote host, ...
by optio
Mon Feb 17, 2025 10:16 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

Just to follow up regarding Docker image save bug https://github.com/docker/cli/issues/5476 , using Podman works and saved image is successfully added as container in ROS. Tested on Linux , probably works same on other OS where Podman can run. Since currently on ROS versions <7.18 only way to add co...
by optio
Mon Feb 17, 2025 8:27 pm
Forum: General
Topic: SSH-forwarding vs. normal DNAT?
Replies: 9
Views: 3044

Re: SSH-forwarding vs. normal DNAT?

can someone clarify what is the difference between: IP -> SSH -> Forwarding and the normal IP -> Filter -> NAT DNAT-forwarding? Difference it that SSH forwarding creates encrypted connection tunnel between ssh client and server which tunnels connection to remote host, while DNAT it is just packet f...
by optio
Mon Feb 17, 2025 11:05 am
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

You can pull and save image to file with Docker : https://docs.docker.com/reference/cli/docker/image/save/ , then upload saved image to ROS and create container from it by using file parameter, not remote-image . But here is a bug in Docker when saving image https://github.com/docker/cli/issues/5476...
by optio
Sun Feb 16, 2025 9:25 pm
Forum: General
Topic: OPEN VPN Server with iPhone
Replies: 9
Views: 3618

Re: OPEN VPN Server with iPhone

Check if you have accept firewall rule on input chain for OVPN port and protocol for WAN in interface (list). Also some other rule above it can block connection... There is also possibility that network where your device is connected is filtering some ports, like some public network, library, etc. S...
by optio
Sat Feb 15, 2025 12:25 pm
Forum: Scripting
Topic: copying files
Replies: 10
Views: 3443

Re: copying files

it seems to work, I had to do it myself :( Best way to learn new things. Is there another way to create a file and write the contents in a way that is not as stupid as "print", "set" in a file? On which ROS version? There is file add command introduced in some 7.x ver., see doc:...
by optio
Fri Feb 14, 2025 3:46 am
Forum: Announcements
Topic: New exciting features for storage
Replies: 175
Views: 22226

Re: New exciting features for storage

It will be nice that they explain how did achieve this and state directly that swap is used only for containers. Here is interesting reading for Open Containers regarding containers memory management and comparison between cgroup1 and cgroupv2.
by optio
Thu Feb 13, 2025 7:22 pm
Forum: Scripting
Topic: copying files
Replies: 10
Views: 3443

Re: copying files

@Liiina Did you try how your current copy script works with large files (eg. 1GB file size)? See here for possible workaround if you gonna go into this endeavour.
by optio
Thu Feb 13, 2025 7:13 pm
Forum: Virtualization
Topic: Real Docker images for CHR to run in Containerlalb
Replies: 13
Views: 4897

Re: Real Docker images for CHR to run in Containerlalb

It is possible to run CHR with QEMU inside Docker container and in such way provided ROS kernel is used, that is probably doing container posted in #4. Still, I bet performance is be poor on such setup.
by optio
Thu Feb 13, 2025 5:38 pm
Forum: General
Topic: CPU Load 0% [SOLVED]
Replies: 10
Views: 5281

Re: CPU Load 0% [SOLVED]

Now is confirmed :)
by optio
Thu Feb 13, 2025 5:13 pm
Forum: Announcements
Topic: New exciting features for storage
Replies: 175
Views: 22226

Re: New exciting features for storage

Swap is not for the host system. Please read the manual about it before complaining: https://help.mikrotik.com/docs/spaces/ROS/pages/91193346/Disks#Disks-Swapspace This is not how is mentioned in documentation: ... This is useful when using containers on RouterOS to be able to run containers that r...
by optio
Thu Feb 13, 2025 5:01 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

This not related specifically to 7.17.x version, is seems it doesn't work on all versions <7.18 due to DockerHub API changes.
by optio
Thu Feb 13, 2025 4:58 pm
Forum: General
Topic: CPU Load 0% [SOLVED]
Replies: 10
Views: 5281

Re: CPU Load 0% [SOLVED]

Then indicator is working fine, you have L3HW offload as @mkx mentioned which doesn't consume CPU.
by optio
Thu Feb 13, 2025 1:53 am
Forum: General
Topic: CPU Load 0% [SOLVED]
Replies: 10
Views: 5281

Re: CPU Load 0% [SOLVED]

Execute this in terminal and check your CPU load then:
:execute {:for a from=1 to=5000 do={:rndstr length=9999}}
by optio
Tue Feb 11, 2025 12:19 am
Forum: General
Topic: OPEN VPN Server with iPhone
Replies: 9
Views: 3618

Re: OPEN VPN Server with iPhone

I can't tell exact from memory, but it think when you send certificate (or provisioning profile) over AirDrop and accept it, in Settings app on top new section will appear to install it, just follow instructions from there.
by optio
Mon Feb 10, 2025 11:43 pm
Forum: Beginner Basics
Topic: How to install new Winbox beta on Linux
Replies: 19
Views: 8739

Re: How to install new Winbox beta on Linux

Other option is to build GLIBC 2.29 and use: patchelf --set-interpreter /<glibc_229_lib_path>/ld-linux.so.2 (or whatever is named when custom builded) --set-rpath /<glibc_229_lib_path>/ <winbox_binary> But as @mkx mentioned there can be other older linked libraries which will not be compatible. In s...
by optio
Mon Feb 10, 2025 11:25 pm
Forum: Beginner Basics
Topic: How to install new Winbox beta on Linux
Replies: 19
Views: 8739

Re: How to install new Winbox beta on Linux

Try with:
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 <winbox_binary>
by optio
Mon Feb 10, 2025 10:31 pm
Forum: Beginner Basics
Topic: How to install new Winbox beta on Linux
Replies: 19
Views: 8739

Re: How to install new Winbox beta on Linux

Try with patchelf, could work or not, depends if used functions exists in both versions.
by optio
Mon Feb 10, 2025 9:45 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

It seems something is charged on Docker Hub API side, it no longer works also on ROS 7.16 which I'm using and probably on all lower versions than 7.18. Maybe because of Docker Hub API issues MT decided for 7.18 to switch default repository url to https://lscr.io which is not working on lower version...
by optio
Mon Feb 10, 2025 8:24 pm
Forum: Scripting
Topic: Fetch with https is not saving to flash from script
Replies: 2
Views: 2068

Re: Fetch with https is not saving to flash from script

I found out that the file is send to RAM instead. How can I change the destination to Flash? Set dst-path="flash/newfile.rsc" to save file on flash. Also as @rextended mentioned, mode=https can be removed, it is deprecated by scheme in url, url="https://..." to avoid potential i...
by optio
Mon Feb 10, 2025 8:17 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

Depends which operations are performed by these actions, some optimizes such actions and do not perform changes if nothing is changed on UI.
by optio
Mon Feb 10, 2025 4:53 pm
Forum: General
Topic: OPEN VPN Server with iPhone
Replies: 9
Views: 3618

Re: OPEN VPN Server with iPhone

@mheber I'm connecting to ROS OpenVPN with self signed certificate from iPhone by using official app from Appstore. Needed to add CA certificate exported from ROS into iOS as @MickeyT mentioned, full trust on iOS system level is not needed in my case (maybe OpenVPN app asked me about certificate tru...
by optio
Mon Feb 10, 2025 1:00 am
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

For fetching latest tagged remote image is not mandatory to specify tag, it will be added by default, you can see when container is created that it has :latest tag even it is not specified. At least it is behaving like that up to 7.16, not tried on newer versions.
by optio
Sun Feb 09, 2025 11:41 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

It seems new ROS version issue if for same containers fetch command is not failing, maybe it is building docker hub API url wrong. Container debug logs did not help? Maybe there is a debug log from which url is trying to fetch when building container.
by optio
Sun Feb 09, 2025 11:22 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

Dusty place it is, there a ways to handle that also :) Ok, let's be on topic... <nothing from me to add more on that>
by optio
Sun Feb 09, 2025 10:49 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

That's strange, unless your devices are placed in area where earthquakes are common, affected with other ambient vibrations or in rooms with high moisture, but then I will be generally worried about devices health, not just connections.
by optio
Sun Feb 09, 2025 10:20 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

Some reading about SSD's lifespan: https://www.ionos.com/digitalguide/server/security/ssd-life-span/ . Regarding unreliable connections, that could happen if you often connect/disconnect drive from device, but I guess that should not be the case for non portable device like router, unless it is some...
by optio
Sun Feb 09, 2025 10:08 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

Check with this, try to execute from Terminal: :put ([/tool/fetch url="https://registry.hub.docker.com/v2/namespaces/{namespace}/repositories/{repository}/tags/{tag}" output=user as-value]->"status") You should get: finished Where url placeholders can be get from remote image for...
by optio
Sun Feb 09, 2025 9:32 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

You can add log topics debug,container and see if something more is logged related to this error.
by optio
Sun Feb 09, 2025 9:27 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

I'm aware of your request and somehow sceptic that it will be implemented, that's why I'm tring to figure out reasouns why you cannot use persistant storage and find workarounds. 20-30 GB/day is not much for external SSD/NVMe drive, for USB thumb drive can be. Yes, connection can be issue if this is...
by optio
Sun Feb 09, 2025 9:15 pm
Forum: Containers
Topic: Unable to install containers
Replies: 29
Views: 11203

Re: Unable to install contenairs

Which registry url is set in containers config?
by optio
Sun Feb 09, 2025 8:14 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

Why is such issue to write files on persistent storage? How many writes per sec you have for such files? For eg. I have USB thumb drive for container sotrage, Pi-hole in container is doing log writes, adlist db refresh every day, etc. It's running for years w/o issues, when it fails I will buy anoth...
by optio
Sun Feb 09, 2025 7:40 pm
Forum: Wireless Networking
Topic: Very slow LTE [SOLVED]
Replies: 46
Views: 12451

Re: Very slow LTE [SOLVED]

It's 100% loss of UDP packets, that's why UDP results are empty. Either server does not expose UDP ports for test or are filtered somewhere on route, eg. on ISP side. Not sure that this can be also caused due to MTU issues.
by optio
Sun Feb 09, 2025 7:28 pm
Forum: General
Topic: Mikrotik acting up
Replies: 12
Views: 2864

Re: Mikrotik acting up

Yes, forgot to mention to do that before downgrading, and it is better to do downgrade after if router needs to be functional, because who knows when ticket will be reviewed and resolved if is ROS bug.
by optio
Sun Feb 09, 2025 7:16 pm
Forum: General
Topic: Mikrotik acting up
Replies: 12
Views: 2864

Re: Mikrotik acting up

Revert to some previous ROS stable version, 7.17 or better 7.16 using netinstall and set config from exported config (not backup) and see if same issue is appearing again. If not, then you know it is related to current ROS version.
by optio
Sun Feb 09, 2025 6:27 pm
Forum: Wireless Networking
Topic: Very slow LTE [SOLVED]
Replies: 46
Views: 12451

Re: Very slow LTE [SOLVED]

For ROS Bandwidth Test you can use Tom Jones (from North Idaho :)) public test server, see: https://forum.mikrotik.com/viewtopic.php?t=104266 Or you can setup your own on remote site with public access to Bandwidth Test ports, for eg. on CHR running somewhere on VM. Also MT Bandwidth test Windows ap...
by optio
Sun Feb 09, 2025 6:13 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

Currently to avoid any manual job you can when creating/modifying/deleting file on persistent storage, copy it to or delete from tmpfs from same script, it is redundant operation but it will work, it will have more write operations on persistent storage FS than only doing it only on shutdown, but is...
by optio
Sun Feb 09, 2025 5:37 pm
Forum: General
Topic: Feature request: Run script before system reboot
Replies: 13
Views: 4674

Re: Feature request: Run script before system reboot

Still with this approach you will have issue when ROS is not soft rebooted/shutdown due to power loss for example. If you have data which needs to be available on boot in any reboot/shutdown case then it must be on persistent storage, use external or network drive if you are concerned about internal...
by optio
Sun Feb 09, 2025 3:07 pm
Forum: Beginner Basics
Topic: Buyer recommendations for noob in a hurry
Replies: 27
Views: 7340

Re: Buyer recommendations for noob in a hurry

@Stopwatch9 also check LTE connection latency grade on https://www.waveform.com/tools/bufferbloat . My experience related to LTE latency since I'm also connecting to internet over LTE 4G but with much worse signal (1.3km from cell in urban area with many devices around) where having max. 120Mb/s in ...
by optio
Sun Feb 09, 2025 12:36 pm
Forum: Scripting
Topic: uploading files from "bash" to 7.18's /ip/cloud/file-share feature using `curl`
Replies: 4
Views: 3364

Re: uploading files from "bash" to 7.18's /ip/cloud/file-share feature using `curl`

Personally, I'd prefer WebDAV to newer custom protocols to mounting files, since WebDAV is an RFC Yes, WebDAV would be much better for usage compatibility if is implemented, but as I see from your HTTP requests analysis in later post, MT cloud file share functionality is lacking basic things - crea...
by optio
Wed Feb 05, 2025 8:02 pm
Forum: General
Topic: Feature requests
Replies: 1807
Views: 819444

Re: Feature requests

On Nginx there is a possibility to handle that by using rewrite or sub_filter rules. Probably other proxies have similar. But I agree, web resources should be loaded by relative path to avoid unnecessary complexity for such setups.
by optio
Tue Feb 04, 2025 6:32 pm
Forum: MikroTik hardware questions
Topic: Replacing a flash drive - problem with the Software-ID
Replies: 33
Views: 9516

Re: Replacing a flash drive - problem with the Software-ID

Can you write some steps how did you do it? Did you use 8-PIN SOP or 8 PIN WSON?
by optio
Mon Feb 03, 2025 8:47 pm
Forum: General
Topic: Feature requests
Replies: 1807
Views: 819444

Re: Feature requests

I would never buy a new 16MB device. Others can do what they like...
Neither will I anymore, but new customers not experienced with MT devices and ROS (as I was when purchased my device) will not know about this trap.
by optio
Mon Feb 03, 2025 6:02 pm
Forum: General
Topic: Feature requests
Replies: 1807
Views: 819444

Re: Feature requests

Chateau 5G R16 was introduced last year, also 16MB disk device. Now you can just throw it away? A $485.00+ device still available on sale :)
by optio
Sun Feb 02, 2025 5:46 pm
Forum: MikroTik hardware questions
Topic: Running out of space on hAP ac2 [SOLVED]
Replies: 84
Views: 48211

Re: Running out of space on hAP ac2 [SOLVED]

Actually it does perform some clean up, when I tried to upgrade from 7.16->7.17 it failed but some space was released and on 2nd attempt was successful without any manual cleanup or config change. Some small space was released just enough for new ver. to fit, but free space was too small and I rever...
by optio
Sun Feb 02, 2025 10:46 am
Forum: MikroTik hardware questions
Topic: Replacing a flash drive - problem with the Software-ID
Replies: 33
Views: 9516

Re: Replacing a flash drive - problem with the Software-ID

I will not mind if new software id will be generated permanently (per replaced drive), but it is a issue if is generated after each reboot like @kuzma2000 mentioned. I have no problem with buying additional licence if it will stick. By this post https://forum.mikrotik.com/viewtopic.php?t=174182#p108...
by optio
Sun Feb 02, 2025 1:17 am
Forum: Scripting
Topic: 🧐 example of automating VLAN creation/removal/inspecting using $mkvlan & friends...
Replies: 44
Views: 16943

Re: 🧐 example of automating VLAN creation/removal/inspecting using $mkvlan/$rmvlan/$catvlan...

Great work. Personally I would prefer terminal UI to be something like Midnight Commander where navigating through ROS sections can as navigating through directories in MC and in it rules listed like files list with configurable colums to show per row (like in Winbox). Entering the rule some dialog ...
by optio
Sat Feb 01, 2025 10:23 pm
Forum: MikroTik hardware questions
Topic: Replacing a flash drive - problem with the Software-ID
Replies: 33
Views: 9516

Re: Replacing a flash drive - problem with the Software-ID

Maybe just drive that have OTP area, even empty, will do :)
by optio
Sat Feb 01, 2025 10:14 pm
Forum: MikroTik hardware questions
Topic: Replacing a flash drive - problem with the Software-ID
Replies: 33
Views: 9516

Re: Replacing a flash drive - problem with the Software-ID

Could be that Software-ID changes then because of blank OTP area because it is generated by data in it. If this is the case, then it is an issue unless MT choose to offer flash drives for purchase as spare part or someone reverse engineer data in OTP for programming it on new drives.
by optio
Sat Feb 01, 2025 9:30 pm
Forum: MikroTik hardware questions
Topic: Replacing a flash drive - problem with the Software-ID
Replies: 33
Views: 9516

Re: Replacing a flash drive - problem with the Software-ID

I was thinking to do same for my device Chateau LTE12 to be upgradeable for future releases. But I will stick with same MTD vendor (Winbond) same drive series W25Q128*, like 128Mb W25Q128FV just to dismiss potential compatibility issues. If Software-ID changes on each reboot after drive replacement ...
by optio
Sat Feb 01, 2025 8:02 pm
Forum: Scripting
Topic: Copy files from the MikroTik router via SMB
Replies: 11
Views: 7365

Re: Copy files from the MikroTik router via SMB

<delete>
by optio
Sat Feb 01, 2025 6:38 pm
Forum: Scripting
Topic: Copy files from the MikroTik router via SMB
Replies: 11
Views: 7365

Re: Copy files from the MikroTik router via SMB

Yes, there is no copy/move file commands for CLI, only move over GUI can be done. For now only solution (without fetch command copy hack) is that backup script creates files directly on mounted disk path without need for copy/move. To copy file locally over SSH using fetch command: /tool/fetch url=s...
by optio
Sat Feb 01, 2025 5:44 pm
Forum: General
Topic: Filesystem forensic image [SOLVED]
Replies: 28
Views: 13578

Re: Filesystem forensic image [SOLVED]

@kauedg Just by having same superbock in both images it doesn't mean that other data in image isn't corrupt. By log it is corrupted inode table. Analisis by trace log and source: 8 bytes for inode table positions are read and stored in id_index_table from position 0x57a1e4, call stack: https://githu...
by optio
Sat Feb 01, 2025 12:07 am
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17.1 [stable] is released!

I always perform netinstall without config and restoring it from export to be sure that ROS is completely clean with my config.
by optio
Fri Jan 31, 2025 11:06 pm
Forum: General
Topic: echo: system,error,critical could not save configuration changes, not enough storage space available.
Replies: 46
Views: 18247

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Yes that's true about swap and disk space reclaim, as I mentioned, disk space varies in small amounts, up and down, could be temp files or swap if used.
It seems you have some different issue.
by optio
Fri Jan 31, 2025 10:59 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17.1 [stable] is released!

I know about netinstall disk space reclaim, doing that occasionally, but not sure how much it will help, I'm sure less than 100KB will be free. I did netinstall after reverting to 7.16 version, backup file was reduced about 40KB with same config for same ROS version. How large is you config file whe...
by optio
Fri Jan 31, 2025 10:35 pm
Forum: General
Topic: echo: system,error,critical could not save configuration changes, not enough storage space available.
Replies: 46
Views: 18247

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Does ROS maybe uses swap file for VM on flash and it's changing depending on RAM usage? :) My device is with similar specs (Chateau LTE12) but it has more RAM - 256MB. Also I'm seeing dynamic some small disk usage changes, but much smaller. disk_usage.png It is visible that is not straight line, cou...
by optio
Fri Jan 31, 2025 10:06 pm
Forum: General
Topic: echo: system,error,critical could not save configuration changes, not enough storage space available.
Replies: 46
Views: 18247

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

It grows, but not much in my case running ROS 7.16.2. I have several schedulers that changes configuration, one for eg. performs changes by adapting 25 Queue tree rules several times at day. I didn't monitor how much space is reduced by day, but when creating backups occasionally they are getting a ...
by optio
Fri Jan 31, 2025 9:46 pm
Forum: Scripting
Topic: Append Bridge vlan values
Replies: 6
Views: 5925

Re: Append Bridge vlan values

Use function (global or pass it as argument of another function) for reuse in find command instead c/p same code in worker functions, but I agree some additional operator (or in to work for arrays too) to find value in array would be much cleaner. 1337 code is here to trick interpreter to get variab...
by optio
Fri Jan 31, 2025 9:18 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17.1 [stable] is released!

Same disk space issue is with similar specs device Chateau LTE12 #152 . Discussions regarding disk space was already made in several topics when ROS 7.13 was introduced with new wifi drivers, disk space usage was reduced with 7.15 when wifi-qcom-ac package size was optimized and it was possible to u...
by optio
Fri Jan 31, 2025 7:49 pm
Forum: Scripting
Topic: Append Bridge vlan values
Replies: 6
Views: 5925

Re: Append Bridge vlan values

Maybe this helps: [find dynamic=no vlan-ids=[:if ([:len [:find $"vlan-ids" <VLAN_ID>]]) do={:return $"vlan-ids"}]] or with function for reuse: :local inArray do={:if ([:len [:find $1 $2]]) do={:return $1}} ... [find dynamic=no vlan-ids=[$inArray $"vlan-ids" <VLAN_ID>]]
by optio
Fri Jan 31, 2025 12:48 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17.1 [stable] is released!

OK, still you can advise them how to handle it.
by optio
Fri Jan 31, 2025 12:45 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17 [stable] is released!

MikroTik did not delete that topic, it was one of the volunteer moderators, because it was a duplicate post. It still exists in the other post. Didn't noticed that other duplicate/similar topics are such quickly deleted, mostly there is a post in it like "see -> <url_to_other_similar_topic>&qu...
by optio
Thu Jan 30, 2025 9:00 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17 [stable] is released!

I saw that topic, maybe there is a way to handle this more transparent and trustworthy, for example eather MT staff respond that reported vulnerabilities are false positive or edit OP post, remove sensitive info, respond that they are investigating it and lock topic. This looks like they are ignorin...
by optio
Thu Jan 30, 2025 8:00 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17 [stable] is released!

Security topics deserve some docs/blog/help/KB/etc, not just two-way trolling messages in the forum. Look at cloudflare /others, their security blogs are full of real discussion of problem/solution/effected things/workaround. I'm not that expecting much, but for example device-mode should have been...
by optio
Wed Jan 29, 2025 11:07 pm
Forum: Scripting
Topic: Is there a Script equivalent of "GoTo"?
Replies: 19
Views: 7221

Re: Is there a Script equivalent of "GoTo"?

I have 32KB script and it is not possible to add/edit it over Winbox, crashes it on save, but over WebFig works.
by optio
Wed Jan 29, 2025 1:15 am
Forum: Scripting
Topic: Is there a Script equivalent of "GoTo"?
Replies: 19
Views: 7221

Re: Is there a Script equivalent of "GoTo"?

Yes, but is not necessary to implement it when you have language which already supports functions.
by optio
Wed Jan 29, 2025 12:27 am
Forum: Scripting
Topic: Is there a Script equivalent of "GoTo"?
Replies: 19
Views: 7221

Re: Is there a Script equivalent of "GoTo"?

IMO still same coding principles should apply. There is nothing fancy when creating functions in code.
by optio
Tue Jan 28, 2025 11:58 pm
Forum: General
Topic: Quick take: Cloudfare, Quad9, Google, NextDNS, Adguard or Pihole?
Replies: 52
Views: 13348

Re: Quick take: Cloudfare, Quad9, Google, NextDNS, Adguard or Pihole?

From my experience regarding DNS privacy DoH/DoT is somewhat faster and much safer than recursive DNS on internet connection with higher latency like LTE. I have setup where Unbound is used as upstream DNS for Pihole and ROS DNS, both running in its ROS container. First Unbound was configured to be ...
by optio
Tue Jan 28, 2025 11:30 pm
Forum: Scripting
Topic: Is there a Script equivalent of "GoTo"?
Replies: 19
Views: 7221

Re: Is there a Script equivalent of "GoTo"?

You made me to ask and see what is its actual answer for it :D : The `goto` command, once a staple of early programming languages, has fallen out of favor in most modern languages for several key reasons: 1. **Readability and Maintainability**: Code that relies heavily on `goto` can become tangled a...
by optio
Tue Jan 28, 2025 11:07 pm
Forum: Scripting
Topic: Is there a Script equivalent of "GoTo"?
Replies: 19
Views: 7221

Re: Is there a Script equivalent of "GoTo"?

If you ever wrote serous code for some application you will know that code will contain several hundreds or thousands of functions. If you have some code complexity it should be splitted into functions for code reusability and readability, mostly always unless is some short POC code or simple script...
by optio
Mon Jan 27, 2025 11:51 pm
Forum: Announcements
Topic: MikroTik smartphone app (ex Tik-App)
Replies: 498
Views: 298584

Re: MikroTik smartphone app (ex Tik-App)

Ok, I misread not having Google apps on their phones, which includes Google Play store :) Probably you mean Google Drive cloud storage for sharing files. As I see Mikrotik Android app have option to save file from Files section locally in some folder, but only as manual action. But I'm not sure what...
by optio
Mon Jan 27, 2025 1:07 am
Forum: Announcements
Topic: MikroTik smartphone app (ex Tik-App)
Replies: 498
Views: 298584

Re: MikroTik smartphone app (ex Tik-App)

You can use "Aurora Store" (available on F-Droid) to download app apks from Google Play.
by optio
Mon Jan 27, 2025 12:26 am
Forum: Scripting
Topic: local variable ssid scan
Replies: 2
Views: 3369

Re: local variable ssid scan

@abbio90 1st - issue is that as-value is missing for wireless scan command used in :foreach and you don't need to use find command, just put interface name as argument: :foreach result in=([/interface wireless scan wlan1 background=yes duration=8 as-value]) do={ ... 2nd - what you are trying to achi...
by optio
Sun Jan 26, 2025 7:15 pm
Forum: Containers
Topic: Self-hosted registry with basic http auth
Replies: 4
Views: 7723

Re: Self-hosted registry with basic http auth

Docker registry API v2 uses Oauth2 Token Authentication with Bearer access token not Basic , that could be the reason why ROS is not sending authorization header with Basic auth data. You can remove authorization in own registry service if you don't have Oauth2 implementation and restrict access to ...
by optio
Wed Jan 22, 2025 10:03 pm
Forum: General
Topic: UDP hole punching
Replies: 4
Views: 2602

Re: UDP hole punching

You have public IP but ISP is filtering incoming connections to your router? Or by "hole punching" you mean which ROS NAT rule is needed for port forward to LAN client? - for this there are plenty examples on this forum, also there is help page from MT -> https://help.mikrotik.com/docs/spa...
by optio
Wed Jan 22, 2025 9:28 pm
Forum: General
Topic: Filesystem forensic image [SOLVED]
Replies: 28
Views: 13578

Re: Filesystem forensic image [SOLVED]

Some older topic https://forum.archive.openwrt.org/viewtopic.php?id=70636 , but here is stated 16-byte OOB but for different MTD model of same brand with same size. Also as I see here https://openwrt.org/docs/techref/flash OpenWrt has nanddump which prints mtd info, like "Block size 131072, pag...
by optio
Wed Jan 22, 2025 4:53 pm
Forum: General
Topic: Filesystem forensic image [SOLVED]
Replies: 28
Views: 13578

Re: Filesystem forensic image [SOLVED]

Could be that MT uses non-standard Squashfs for devices or it was not correctly dumped or fs is corrupted on flash. I know for sure that from CHR image Squashfs can be extracted with binwalk, done it many times.
by optio
Wed Jan 22, 2025 9:52 am
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

Regarding licence there is no point activating it locally, only when is deployed on cloud after regenerating system id. Regarding ROS startup config, why don't you try on some VM and check this? It can be easily tested. We will all know then, I think it will work, you don't, best way is to test and ...
by optio
Wed Jan 22, 2025 1:40 am
Forum: General
Topic: Filesystem forensic image [SOLVED]
Replies: 28
Views: 13578

Re: Filesystem forensic image [SOLVED]

Try with extract binwalk command line option:
binwalk --run-as=root -e OpenWrt.mtd5.bin 
This should extract any supported extractable data found in image including Squashfs.
by optio
Wed Jan 22, 2025 1:01 am
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

Not sure that licence system ID will block booting on different HW, did you try it? There is possibility in ROS to generate new licence id: > /system/license/generate-new-id guessing this is exactly for this case when image is migrated so that new ID can be manually generated upon first boot on diff...
by optio
Mon Jan 20, 2025 9:38 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

If anything, the web interface should mimic the desktop one, not the other way around.
True, but creating and implementing such graphics elements for Web to mimic desktop creates greater costs and at the end it is all about money (unfortunately)...
by optio
Mon Jan 20, 2025 8:36 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

Regarding the stuff like "shadows, bevels, etc." in most cases it's all done on OS-level or on a library level. For an average developer it doesn't matter, he just places a button from a library on a form and chooses its style, color and other properties. Yes, this stands from perspective...
by optio
Mon Jan 20, 2025 6:24 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

IMO design changes to flat interface elements is related to reducing design costs and implementation in general for modern IT industry interfaces, designers can faster produce graphic elements without additional layers like shadows, bevels or 3d effects and development implementation is usually less...
by optio
Mon Jan 20, 2025 5:53 pm
Forum: General
Topic: FTP Auto Run
Replies: 1
Views: 1694

Re: FTP Auto Run

See https://wiki.mikrotik.com/Manual:Config ... Management, section Automatic Import. Script file must be named <something>.auto.rsc and it will be executed after upload.
by optio
Mon Jan 20, 2025 12:54 pm
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

From my experience and Linux knowledge nothing is automatically personalized to HW upon first or any boot. Also I doubt that ROS configuration is personalized to HW if nothing is configured on it related to HW devices, but this needs to be confirmed.
by optio
Mon Jan 20, 2025 11:54 am
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

@optis I am sure trying to migrate that configuration to another ARM Mikrotik would fail unless you make sure the devices are named the same, however on a similar VM with similar devices it would work Local VM is booted from CHR raw image downloaded from MT site without modifications, kernel driver...
by optio
Sun Jan 19, 2025 11:09 pm
Forum: General
Topic: Filesystem forensic image [SOLVED]
Replies: 28
Views: 13578

Re: Filesystem forensic image [SOLVED]

Generally by restricting physical access to device, using cabinets with locks, security guards on premises...
by optio
Sun Jan 19, 2025 9:35 pm
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

This was quite easy to setup and run locally: chr-arm-qemu.png Even without using scripts from github.com/ayufan-research/mikrotik-qemu-arm64, running arm64 raw disk image with QEMU over UTM (Mac). After first login when password is changed, shut down ROS and modified image by VM can be used for clo...
by optio
Sun Jan 19, 2025 4:58 pm
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

Depends on cloud provider and which disk image formats it supports.
by optio
Sun Jan 19, 2025 4:42 pm
Forum: General
Topic: Hot take on Botnets - How do you secure your Mikrotik while setting it up?
Replies: 40
Views: 6757

Re: Hot take on Botnets - How do you secure your Mikrotik while setting it up?

github.com/ayufan-research/mikrotik-qemu-arm64
by optio
Sat Jan 18, 2025 8:33 pm
Forum: Announcements
Topic: v7.17.2 [stable] is released!
Replies: 619
Views: 242549

Re: v7.17 [stable] is released!

Well, crap... 19:24:07 system,error upgrade failed, free 57 kB of disk space > /system/package/print Columns: NAME, VERSION, BUILD-TIME, SIZE # NAME VERSION BUILD-TIME SIZE 0 container 7.16.2 2024-11-26 12:09:40 96.1KiB 1 wifi-qcom-ac 7.16.2 2024-11-26 12:09:40 2676.1KiB 2 routeros 7.16.2 2024-11-26...
by optio
Thu Jan 09, 2025 9:52 pm
Forum: General
Topic: NORMUNDS FOR PRIME MINISTER
Replies: 15
Views: 6712

Re: NORMUNDS FOR PRIME MINISTER

viks.gif
by optio
Wed Jan 08, 2025 4:13 pm
Forum: Scripting
Topic: :execute output to console? Or any other method?
Replies: 17
Views: 6464

Re: :execute output to console? Or any other method?

I figured out why, ROS v6 will only read files up to 4kb in size, any larger than that they just return blank
If such is the case you will still have issue printing it after is generated from export command. Use :parse command as @Amm0 suggested.
by optio
Wed Jan 08, 2025 3:46 pm
Forum: Scripting
Topic: :execute output to console? Or any other method?
Replies: 17
Views: 6464

Re: :execute output to console? Or any other method?

Put file=ConfigOutput.txt argument for export command in C variable instead for :execute . Idk why output to file for :execute on v6 is not working (not having v6 for checking it), but since you need only config export then it is more appropriate to use file argument for export command than for :exe...
by optio
Wed Dec 25, 2024 2:14 pm
Forum: MikroTik hardware questions
Topic: CCR2004-16G-2S+ with more storage?
Replies: 10
Views: 8213

Re: CCR2004-16G-2S+ with more storage?

You can mount some external drive over NFS with ROSE storage package and use it for container root dirs and mounts.
by optio
Wed Dec 25, 2024 1:28 pm
Forum: Containers
Topic: Container fails to open a SQLite3 file
Replies: 3
Views: 6504

Re: Container fails to open a SQLite3 file

You can temporally set container config cmd="tail -f /dev/null", this should start container without starting Zabbix and then from running container shell you can examine what's the issue with fs permissions.
by optio
Tue Dec 24, 2024 8:45 pm
Forum: General
Topic: Feature Request Denying IPv6 AAAA resolve requests
Replies: 1
Views: 1560

Re: Feature Request Denying IPv6 AAAA resolve requests

If requests are from IPv6 create input chain rule in IPv6 firewall filter to drop packets for port 53. If comes from v4, not sure you can filter it without additional DNS in the middle, for eg. in container, and such feature has sense, dnsmasq also has such feature.
by optio
Tue Dec 24, 2024 1:23 am
Forum: General
Topic: I have problem with NordVPN.
Replies: 6
Views: 2431

Re: I have problem with NordVPN.

Which DNS server is used for resolving? If is ROS router IP and it has ISP DNS IP set as upstream then probably ISP DNS is refusing connections outside its network. TV can be using some public one, like 8.8.8.8 on which can connect and resolve hosts for IPTV. Try with NordVPN DNS servers or some pub...
by optio
Sun Dec 22, 2024 9:37 pm
Forum: Scripting
Topic: no-ip not update
Replies: 2
Views: 5270

Re: no-ip not update

I'm using similar script without issues to refresh IP on No-IP, but in my script URL has https scheme, also mode=http param is not needed for fetch in this case. Try over Terminal if works: /tool fetch url="https://dynupdate.no-ip.com/nic/update?myip=<PUBLIC_IP_ADDRRESS>&hostname=<NOIP_HOST...
by optio
Sun Dec 22, 2024 2:09 pm
Forum: General
Topic: How to reach a router behind a CGNAT? [SOLVED]
Replies: 26
Views: 12306

Re: How to reach a router behind a CGNAT? [SOLVED]

Why is CHR necessary just for Wireguard peer? It can be setup on Linux running on cloud server and save some money for CHR licence. Once setup on Linux is created, image can be made of it for reuse. Initially some time will be spent to create setup, but later it should be more faster and charge more...
by optio
Sat Dec 21, 2024 9:39 pm
Forum: Beginner Basics
Topic: Unale to get OpenVPN to work on RBD52G-5HacD2HnD (Firmware: 6.49.17)
Replies: 9
Views: 4566

Re: Unale to get OpenVPN to work on RBD52G-5HacD2HnD (Firmware: 6.49.17)

This is on my device with wifi-qcom-ac and container packages + large configuration with many scripts: free-hdd-space: 360.0KiB total-hdd-space: 16.0MiB free space is stable, but I'm using additional thumb drive attached to USB for other files, nothing is saved on flash from my side. Regarding ROS v...
by optio
Thu Dec 19, 2024 9:21 pm
Forum: Beginner Basics
Topic: Unale to get OpenVPN to work on RBD52G-5HacD2HnD (Firmware: 6.49.17)
Replies: 9
Views: 4566

Re: Unale to get OpenVPN to work on RBD52G-5HacD2HnD (Firmware: 6.49.17)

Ah v6... https://wiki.mikrotik.com/Manual:Interface/OVPN#Server_configuration , they are all CBC ciphers... Then yes, only OpenVPN client downgrade can help if ROS upgrade to v7 is not an option. I have device with similar specs, Chateau LTE12, and ROS v7 works fine, but depends which packages are n...
by optio
Thu Dec 19, 2024 8:22 pm
Forum: Beginner Basics
Topic: Unale to get OpenVPN to work on RBD52G-5HacD2HnD (Firmware: 6.49.17)
Replies: 9
Views: 4566

Re: Unale to get OpenVPN to work on RBD52G-5HacD2HnD (Firmware: 6.49.17)

First line from your log: 2024-12-19 15:54:03 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305). OpenVPN ignores --cipher for cipher negotiations. You are using unsupported cipher AES-256-CBC for your client OpenVPN version (2....
by optio
Wed Dec 18, 2024 9:06 pm
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

Also there are different approaches for setup Xray, like using some tun2socks solution and adding routes for such interface inside container ( https://forum.mikrotik.com/viewtopic.php?p=1105243 ); or like example from this topic with tunneled WG using unmodified Xray container which is easier to mai...
by optio
Wed Dec 18, 2024 8:29 pm
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

Don't have mentioned issue after upgrading Xray container for server side on ROS to version 24.12.15 # xray --version Xray 24.12.15 (Xray, Penetrates Everything.) Custom (go1.23.4 linux/arm) A unified platform for anti-censorship. still my client version on Mac is older, 1.8.24, MacPorts package is ...
by optio
Tue Dec 17, 2024 11:25 pm
Forum: Forwarding Protocols
Topic: eBGP not establishing [SOLVED]
Replies: 10
Views: 12149

Re: eBGP not establishing [SOLVED]

Thank you. Would be helpful to put that information in the manual as I didn't find it anywhere. Apologies in advance if it already exists there.
Already exists here: https://help.mikrotik.com/docs/spaces/R ... gIPAddress
by optio
Tue Dec 17, 2024 10:10 pm
Forum: Scripting
Topic: executing script from net failed
Replies: 35
Views: 7443

Re: executing script from net failed

Yes but ROS has binary at path /nova/bin/net, probably script is executed by its process, for which service is unknown... Can be also some exploit, like script being injected into some config value.
by optio
Tue Dec 17, 2024 8:43 pm
Forum: Scripting
Topic: Using :return from :onerror in= command block
Replies: 13
Views: 4739

Re: Using :return from :onerror in= command block

Yes, it's a mess with this returns in blocks... Eather it should be always without :return command in blocks and :onerror should return true or false value respectively: :local res [:onerror e in={<do someting without retrun>} do={<do someting without retrun>}] :put $res false or true or (preferred)...
by optio
Tue Dec 17, 2024 8:30 pm
Forum: Wireless Networking
Topic: MikroTik VPN connection
Replies: 4
Views: 4519

Re: MikroTik VPN connection

Any exploit in attached docx file? :)
by optio
Tue Dec 17, 2024 8:07 pm
Forum: Scripting
Topic: Using :return from :onerror in= command block
Replies: 13
Views: 4739

Re: Using :return from :onerror in= command block

Yes, that's was my thought. No need to have mandatory return value when is not needed while handling error or when processing in={}.
by optio
Tue Dec 17, 2024 7:48 pm
Forum: Scripting
Topic: Using :return from :onerror in= command block
Replies: 13
Views: 4739

Re: Using :return from :onerror in= command block

I agree for consistent behavior for block returns. Also if block has no :return command, then :onerror is should return :nothing so that :return command is optional in blocks.
by optio
Tue Dec 17, 2024 6:57 pm
Forum: Scripting
Topic: Using :return from :onerror in= command block
Replies: 13
Views: 4739

Re: Using :return from :onerror in= command block

Actually :onerror returns value from do={} block if executed when error occurs or false if no error. This is not correctly stated for :onerror command in doc : ... :onerror can return false (if there is no error) and true (if there is an error) values, so it can be used in :if condition statement sc...
by optio
Tue Dec 17, 2024 5:34 pm
Forum: General
Topic: Feature Request to help Iranian
Replies: 10
Views: 5557

Re: Feature Request to help Iranian

People wants to penetrate DPI firewalls in few clicks while using containers it is already possible, but requires more clicks and keyboard presses... :)
by optio
Mon Dec 16, 2024 11:10 pm
Forum: Scripting
Topic: execute & parse
Replies: 31
Views: 8605

Re: execute & parse

Or just create recursion like here...
by optio
Mon Dec 16, 2024 10:48 pm
Forum: General
Topic: "no enough permission" Error
Replies: 5
Views: 1713

Re: "no enough permission" Error

Trial version? Or you mean beta/rc version?
by optio
Mon Dec 16, 2024 9:54 pm
Forum: General
Topic: "no enough permission" Error
Replies: 5
Views: 1713

Re: "no enough permission" Error

Could be, but also can be just simple admin password easy to guess and breach was done from LAN.
by optio
Mon Dec 16, 2024 9:26 pm
Forum: General
Topic: "no enough permission" Error
Replies: 5
Views: 1713

Re: "no enough permission" Error

If you are using admin user device is probably hacked. Netinstall device and restore config from export (not backup!).
by optio
Mon Dec 16, 2024 12:04 pm
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

I didn't yet updated to latest version so I'm not familiar with issue, see in release notes where XHTTP is mentioned and link to its github issue, there is a config example as I see in issue maybe it helps.
by optio
Thu Dec 12, 2024 11:12 pm
Forum: General
Topic: Still no TLS 1.3?
Replies: 11
Views: 2518

Re: Still no TLS 1.3?

As long as TLS 1.2 is still considered secure and ROS supports secure ciphers, I couldn't care less. Everything else is compliance BS.
It's is not just about security, TLS 1.3 have more optimal handshake, less round trips.
by optio
Thu Dec 12, 2024 9:40 pm
Forum: Scripting
Topic: Script SMS forward sms
Replies: 29
Views: 10700

Re: Script SMS forward sms

Here is script which I'm using if you want to use it: :local toEmail "<EMAIL_ADDRESS>" :local commandReg "^:cmd .*" :local statusInProgress "in-progress" :local statusSucceeded "succeeded" :local emailSendTimeoutSec 30 :global smsToEmailRunning :local smsInbox...
by optio
Tue Dec 10, 2024 5:26 pm
Forum: General
Topic: rose nfs mounts to linux client
Replies: 6
Views: 1576

Re: rose nfs mounts to linux client

Try adding --verbose param on mount command to see if any message appears that can be helpful for troubleshooting. Also try with adding -o sys=sec param to mount if error is related to security permissions, on most distributions this is default option.
by optio
Mon Dec 09, 2024 7:53 pm
Forum: General
Topic: rose nfs mounts to linux client
Replies: 6
Views: 1576

Re: rose nfs mounts to linux client

By example from doc : nfs root directory should be content of usb1 , not root with usb1 dir inside. mkdir /mnt/usb1 mount -t nfs4 192.168.105.1:/ /mnt/usb1 ls -l /mnt/usb1 Edit: or not... (then it should not be possible to have multiple disks mounted over nfs) Did you try with mount -t nfs4 192.168....
by optio
Mon Dec 09, 2024 7:31 pm
Forum: Scripting
Topic: concatenate variable names
Replies: 11
Views: 4505

Re: concatenate variable names

:local hello 123 :local hellos [:toarray ""] :set ($hellos->"$([:tostr $hello])") $hello :set ($hellos->"$([:tostr $hello])456") $hello :put ($hellos->"123") :put ($hellos->"123456") :) Similar what @rextended did in #4 just value type and naming ad...
by optio
Mon Dec 09, 2024 7:05 pm
Forum: Scripting
Topic: concatenate variable names
Replies: 11
Views: 4505

Re: concatenate variable names

It's clear: the name of the final variable should be :123456 :)
by optio
Mon Dec 09, 2024 6:57 pm
Forum: Scripting
Topic: concatenate variable names
Replies: 11
Views: 4505

Re: concatenate variable names

Maybe OP did not hear for key-value arrays (maps/dictionaries) where to some dynamically created key (identifier) some value can be assigned, only logic I can think of for such request...
by optio
Mon Dec 09, 2024 6:46 pm
Forum: Scripting
Topic: Script SMS forward sms
Replies: 29
Views: 10700

Re: Script SMS forward sms

Look here
by optio
Sat Dec 07, 2024 4:39 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

I meant currently, but yes, more standards more life is easier.
by optio
Sat Dec 07, 2024 1:24 pm
Forum: Containers
Topic: PiHole / files not persistent Topic is solved
Replies: 6
Views: 21103

Re: PiHole / files not persistent Topic is solved

This shuld not happen if Pi-hole configuration is not touched before and after creating container. I'm using Pi-hole in ROS container, never had such issues and also having some config in custom.list file. Check FS for errors on Linux, maybe there are some FS issues.
by optio
Sat Dec 07, 2024 1:18 pm
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

https://en.wikipedia.org/wiki/Apple_Icon_Image_format

Windows ICO file also supports multiple resolutions for icons, for Linux single SVG icon file should be enough because it is supported by common desktop environments.
There is no universal icon file type to be used for any OS.
by optio
Sat Dec 07, 2024 11:50 am
Forum: Containers
Topic: PiHole / files not persistent Topic is solved
Replies: 6
Views: 21103

Re: PiHole / files not persistent Topic is solved

But as soon as I update the default (empty) config, the mounts config is overwritten. What does this means? Reset Pi-hole to default config with its Teleporter feature or directly on fs? If is that, this is expected, mount just holds files (in this case current Pi-hole config files) which will not ...
by optio
Sat Dec 07, 2024 11:30 am
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

Could we have an SVG icon for the Winbox? The beta comes with one png icon, and due to my screen resolution it gets kinda ugly. And SVG icon would solve it for Linux users (o/), and (I think) MacOS ones. Unfortunately MacOS doesn't support SVG for app icons, but it supports multiple app icon PNG im...
by optio
Mon Dec 02, 2024 8:34 am
Forum: RouterOS beta
Topic: Feature Request : IPv6 Fasttrack [SOLVED]
Replies: 216
Views: 83319

Re: Feature Request : IPv6 Fasttrack [SOLVED]

Maybe it was not obvious, I proposed like that not to decide on ratio between yes/no, ofc. yes will win in most cases, but there is a count of votes which can replace these +1 posts, no will be is in most cases useless, not seeing much -1 vote posts on feature request topics, still MT can see number...
by optio
Sun Dec 01, 2024 6:26 pm
Forum: RouterOS beta
Topic: Feature Request : IPv6 Fasttrack [SOLVED]
Replies: 216
Views: 83319

Re: Feature Request : IPv6 Fasttrack [SOLVED]

IMO forum should have separate section for feature request topics, topic created by @normis https://forum.mikrotik.com/viewtopic.php?t=45934 growed and it is hard to track what is requested or not, it is mix of feature requests and per request discution, better to have requests segmented into separa...
by optio
Sun Dec 01, 2024 5:16 pm
Forum: General
Topic: FOR THE LOVE OF "DEITY OF CHOICE" FIX YOUR FRIGGEN (forum) WEBSITE [SOLVED]
Replies: 126
Views: 25757

Re: FOR THE LOVE OF "DEITY OF CHOICE" FIX YOUR FRIGGEN (forum) WEBSITE [SOLVED]

Hmm seeing replays and quotes for posts that are no longer exist in this topic. Some profiles writing these posts removed/banned or is forum issue?
by optio
Sun Dec 01, 2024 4:28 pm
Forum: Scripting
Topic: Running a script from Netwatch doesn't work
Replies: 14
Views: 4737

Re: Running a script from Netwatch doesn't work

As any other file in some directory, for tmpfs and other mounts without partitions directory where drive is mounted is named by slot name - if slot=tmp , directory is /tmp :local readFile do={ :if ([/file find name=$1]) do={ :return [/file get $1 contents] } :return [:nothing] } :local writeFile do=...
by optio
Sat Nov 30, 2024 9:58 pm
Forum: Scripting
Topic: Script SMS forward sms
Replies: 29
Views: 10700

Re: Script SMS forward sms

Try with this script
sms-read.rsc
instead using /tool/sms/inbox for reading. It concatenates splitted long messages to single one and supports UCS-2 encoded messages with conversion to Utf8 encoding and email will have in body correct characters outside Ascii encoding, like cyrillic, diacritics...
by optio
Sat Nov 30, 2024 9:16 pm
Forum: Scripting
Topic: Script SMS forward sms
Replies: 29
Views: 10700

Re: Script SMS forward sms

How it works with long messages (+1600 chars) using maxMessages=10 limit? :)
by optio
Sat Nov 30, 2024 8:42 pm
Forum: Scripting
Topic: Running a script from Netwatch doesn't work
Replies: 14
Views: 4737

Re: Running a script from Netwatch doesn't work

Yes, but It seems more complicated and bloats log, also log has limit so there is a chance that record can be lost for reading. ROS config is easy to create for tmpfs mount, eg. to create on /tmp path: /disk add media-interface=none media-sharing=no slot=tmp tmpfs-max-size=1M type=tmpfs Files stored...
by optio
Sat Nov 30, 2024 7:58 pm
Forum: Scripting
Topic: Running a script from Netwatch doesn't work
Replies: 14
Views: 4737

Re: Running a script from Netwatch doesn't work

When variables are stored in such way (like layer7) data is persisted after reboot, while for variables defined as :global is not. When data is stored in ROS config it is stored on disk which rises sector writes, this can be issue if is frequently written, depends on case. To behave as :global , alt...
by optio
Sat Nov 30, 2024 5:16 pm
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

Chenge "listen":"127.0.0.1" to "listen":"0.0.0.0" for "dokodemo-door" protocol as mentioned, you can also for "socks" if you want to use xray sock server from network. 127.0.0.1 is localhost interface address it cannot be accessed outside s...
by optio
Sat Nov 30, 2024 4:19 pm
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

First change "dokodemo-door" protocol config on client side - this is tunneling config where you need to setup tunnel listening port and to where on other end (server side) connection (WG IP and port) needs to be established, set "listen" to address of any interface in container ...
by optio
Sat Nov 30, 2024 3:18 am
Forum: Beginner Basics
Topic: Proxy to my home services
Replies: 6
Views: 3614

Re: Proxy to my home services

Use NAT rule for port forward as @anav mentioned in post #2 For additional security is better to isolate service host from LAN, if you using containers separate bridge will do, for external hosts you can setup VLAN for it or use firewall rules for that, but VLAN is preferable, allow only connections...
by optio
Sat Nov 30, 2024 2:47 am
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

If you did not set keys and client ids I doubt it works, but you can install curl inside client container to test over xray socks proxy: # apk uppdate # apk install curl # curl -vvv -x socks5://127.0.0.1:1080 https://www.google.com Also you could temporary setup file logging in xray configuration on...
by optio
Thu Nov 28, 2024 1:09 am
Forum: Beginner Basics
Topic: Proxy to my home services
Replies: 6
Views: 3614

Re: Proxy to my home services

Therefore I was wondering the best way to expose these service ports in a secure way. To have NGFW in front of the service ports, but there is no NGFW in ROS. Regarding proxy, each reverse proxy can work only for same protocol, usually is used for HTTP(S) protocol services, but there are other prot...
by optio
Wed Nov 27, 2024 10:28 pm
Forum: Announcements
Topic: NEW FEATURE: Back to Home VPN
Replies: 469
Views: 547282

Re: NEW FEATURE: Back to Home VPN

The value of the *.vpn.mynetname.net name is EITHER a public IP detected by /ip/cloud's DDNS, or if DDNS detects a NAT then DNS name resolves to Mikrotik BTH reply. I know it does switch, but not sure the exact timing. I'd imagine it follows the value ddns-update-interval= under /ip/cloud to update...
by optio
Wed Nov 27, 2024 9:50 pm
Forum: General
Topic: Disabling system,error,critical login failure for user foobar from so.me.ip.num via ssh
Replies: 9
Views: 1462

Re: Disabling system,error,critical login failure for user foobar from so.me.ip.num via ssh

Generally, public access for any router management service is not recommended.
by optio
Wed Nov 27, 2024 9:39 pm
Forum: General
Topic: Hanging of Mikrotik Chateau ax Pro
Replies: 2
Views: 964

Re: Hanging of Mikrotik Chateau ax Pro

Maybe is this case ---> https://forum.mikrotik.com/viewtopic.php?t=211157#p1098939 ? Happened to me several times on Chateau LTE12 with ROS v7.16, but in my case wired connection works and I saw this error. Regarding Reset button, event can be configured in RouterBOARD settings, eg. to run /system r...
by optio
Wed Nov 27, 2024 8:34 pm
Forum: Announcements
Topic: NEW FEATURE: Back to Home VPN
Replies: 469
Views: 547282

Re: NEW FEATURE: Back to Home VPN

Hmm, let say that ROS device WAN access at certain point is changed, goes behind CGNAT or oposite while BTH WG configuration is already shared, then in such case shared configuration becomes invalid? Assuming that shared WG peer endpoint is set in config to host depending when shared configuration i...
by optio
Wed Nov 27, 2024 6:04 pm
Forum: Announcements
Topic: NEW FEATURE: Back to Home VPN
Replies: 469
Views: 547282

Re: NEW FEATURE: Back to Home VPN

Not sure I follow, how traffic can go directly to MT router if WG endpoint DDNS IP address is always some MT server? Unless IP is, as I wrote, dynamically assigned on DDNS service depending on WG public access detection. This can be easily checked by resolving DDNS host from WG peer endpoint configu...
by optio
Wed Nov 27, 2024 5:39 pm
Forum: Announcements
Topic: NEW FEATURE: Back to Home VPN
Replies: 469
Views: 547282

Re: NEW FEATURE: Back to Home VPN

On which WG peer endpoint BTH users (non admin - for which is shared) are connecting if they are possible to use WG VPN app? Always to MT cloud host? It is not possible to get P2P WG connection then even if ROS device WG peer has public access? If DDNS host is resolved to ROS device IP, WG VPN app w...
by optio
Sun Nov 24, 2024 3:48 pm
Forum: Scripting
Topic: Add days to current date v7 [SOLVED]
Replies: 5
Views: 9378

Re: Add days to current date v7 [SOLVED]

if today is 2024-11-22 , i want to get 2024-12-22 I have seen other implementation by very long methods using timestamp, unixdate, etc. Any simple 2 line code is highly appreciated There is no helper command for it like :todate or :convert from=... to=date to get formatted date from time or timesta...
by optio
Thu Nov 21, 2024 12:32 am
Forum: Announcements
Topic: 📣 WinBox 4 is here 📣
Replies: 2149
Views: 1914016

Re: 📣 WinBox 4 is here 📣

lol, now noticed that winbox 4 macos have my.example.com bundle id 🫨
by optio
Thu Nov 14, 2024 8:10 pm
Forum: General
Topic: 💀⚠️CRITICAL: Never trust who provides scripts containing "/import" from "/tool fetch" from external sources.
Replies: 35
Views: 6992

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

Well, this is pure fantasy, but if I *somehow* manage to find out what my ISP does (no matter what is actually done) it means that their security (be it the technical or "human" one) is a nice colander. Depends where you live, in small communities, people with similar interest/occupation ...
by optio
Thu Nov 14, 2024 7:45 pm
Forum: General
Topic: 💀⚠️CRITICAL: Never trust who provides scripts containing "/import" from "/tool fetch" from external sources.
Replies: 35
Views: 6992

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

depends on the environment it's used and threat profile. Key word "environment", which makes company environments much more sensitive than home users environment. If somehow I find out that my ISP is using such way to update their router, from public source script without proper automated...
by optio
Thu Nov 14, 2024 7:05 pm
Forum: General
Topic: 💀⚠️CRITICAL: Never trust who provides scripts containing "/import" from "/tool fetch" from external sources.
Replies: 35
Views: 6992

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

Agree, example https://blocklister.gefoo.org/ Especially HTTP fetch can be problematic where attacker can perform MITM attack and modify response even if site is providing non malicious response. If HTTPS/SSL is available, you don't have to be afraid of the man attack in the middle. HTTP != HTTP S ...
by optio
Wed Nov 13, 2024 6:02 pm
Forum: General
Topic: packet filter by content
Replies: 8
Views: 1425

Re: packet filter by content

Try with hairpin DNS port to ROS DNS and set static forward rules there as explained in above post. In such case you will have additional DNS in the middle.
by optio
Mon Nov 11, 2024 8:54 pm
Forum: Wireless Networking
Topic: iOS 18 Wi-Fi connectivity issue [SOLVED]
Replies: 90
Views: 32762

Re: iOS 18 Wi-Fi connectivity issue [SOLVED]

I don't have such issue, at home using MT device (ac wifi) and WPA3; and at work is WPA2 (non MT device). Can connect to both with iPhone iOS 18.1 (different SSID/BSSID ofc)
by optio
Mon Nov 11, 2024 8:42 pm
Forum: General
Topic: packet filter by content
Replies: 8
Views: 1425

Re: packet filter by content

This more looks like to be DNS hijacking
by optio
Thu Nov 07, 2024 8:46 pm
Forum: Beginner Basics
Topic: Help DNS approach to Faster Browsing
Replies: 25
Views: 5147

Re: Help DNS approach to Faster Browsing

Check if DNS latency is actual issue on clients regardless which DNS is used...
by optio
Thu Nov 07, 2024 8:18 pm
Forum: Beginner Basics
Topic: Help DNS approach to Faster Browsing
Replies: 25
Views: 5147

Re: Help DNS approach to Faster Browsing

For such purpose ROS DNS server is quite enough. You can download DNS Benchmark application and check your DNS performance comparing with other public. If you confirm that you actually have DNS resolving latency, it could be issue with network latency when network is loaded which affects querying up...
by optio
Thu Nov 07, 2024 8:14 pm
Forum: Beginner Basics
Topic: Help DNS approach to Faster Browsing
Replies: 25
Views: 5147

Re: Help DNS approach to Faster Browsing

To be exact, why is need for running own recursive DNS (no need for upstream)? ROS DNS server is functional DNS server but needs upstream DNS.
by optio
Thu Nov 07, 2024 7:50 pm
Forum: Beginner Basics
Topic: How to install new Winbox beta on Linux
Replies: 19
Views: 8739

Re: How to install new Winbox beta on Linux

on the teminal shows that is required intel or amd chips Thats answers it, binary is built only for such architecture and cannot be run without emulation. Regarding running WinBox 3 over wine , on macOS it is possible to run on ARM64 chips (Mx) because it supports emulation (Rosetta 2) out of the b...
by optio
Thu Nov 07, 2024 6:57 pm
Forum: General
Topic: packet filter by content
Replies: 8
Views: 1425

Re: packet filter by content

This should be handled on DNS server side with forwarding, not firewall, if 10.1.1.200 is ROS DNS server then by adding forward static record ( help page ), eg.: if you want to forward for any host on .b-c.d domain ( *.b-c.d ): /ip/dns/static add forward-to=10.1.2.100 regexp=".*\\.b-c\\.d"...
by optio
Thu Nov 07, 2024 1:26 pm
Forum: General
Topic: how to block youtube shorts?
Replies: 12
Views: 2901

Re: how to block youtube shorts?

IMO asking such questions on MT forum is not knowing that ROS doesn't have NGFW (application FW or IDS/IPS). Blocking connections to sites can be achieved with traditional network firewall but blocking by content of certain application data not in ROS, there are L7 rules, but they are mostly unusabl...
by optio
Wed Nov 06, 2024 8:01 pm
Forum: Scripting
Topic: How to Read line by line from a file using a script?
Replies: 16
Views: 5313

Re: How to Read line by line from a file using a script?

agree, same concluded when editing prev. post
by optio
Wed Nov 06, 2024 7:53 pm
Forum: Scripting
Topic: How to Read line by line from a file using a script?
Replies: 16
Views: 5313

Re: How to Read line by line from a file using a script?

It make sence to be 2-dimensional array (fields per lines). When new line separator is used or delimiter which doesn't exists in text it will be always single filed per line and such can be used for full line reading...
by optio
Wed Nov 06, 2024 7:51 pm
Forum: Scripting
Topic: How to Read line by line from a file using a script?
Replies: 16
Views: 5313

Re: How to Read line by line from a file using a script?

exactly I wanted to prove with foo delimiter
by optio
Wed Nov 06, 2024 7:33 pm
Forum: General
Topic: 1 Packet over Multiple Routs?
Replies: 14
Views: 2351

Re: 1 Packet over Multiple Routs?

This is a mikrotik forum bud.......... not applications for fancy routing.
maybe OP wants this -> viewtopic.php?p=1105740 (and guess who is OP of this :))
by optio
Wed Nov 06, 2024 7:19 pm
Forum: General
Topic: MT SSH login bug???
Replies: 2
Views: 544

Re: MT SSH login bug???

Did you ever set admin password on MT device?
by optio
Wed Nov 06, 2024 6:20 pm
Forum: Scripting
Topic: How to Read line by line from a file using a script?
Replies: 16
Views: 5313

Re: How to Read line by line from a file using a script?

As I see :deserialize from dsv always split by new line regardless which line ending and delimiter is used, no need for conversion: iplist.txt (LF or CRLF): 1.1.1.1 2.2.2.2 same results regardless if is line ending LF or CRLF: > :put [:deserialize [/file/get iplist.txt contents] delimiter="\n&q...
by optio
Sat Nov 02, 2024 6:17 pm
Forum: Beginner Basics
Topic: WireGuard or OpenVPN [SOLVED]
Replies: 51
Views: 20909

Re: WireGuard or OpenVPN [SOLVED]

Unfortunately I don't have ROS device or CHR running on remote site, to do it in local CHR is a bit complicated because I need to create some routing rules on host computer to test routing over CHR running locally, don't have time to play with now... I can give some tips related to site-to-site clie...
by optio
Mon Oct 28, 2024 9:35 pm
Forum: Scripting
Topic: Command fails in script but runs properly in the terminal
Replies: 6
Views: 4101

Re: Command fails in script but runs properly in the terminal

Use ssh-exec instead ssh command, ssh requires CLI (Terminal). Regarding script errors, you can always catch script error with :onerror and log it to find exact message for debugging since standard error message "executing script ssh from winbox failed, please check it manually" is not ver...
by optio
Sun Oct 27, 2024 2:52 pm
Forum: Scripting
Topic: Netwatch tool + script: Are global variables truly global?
Replies: 28
Views: 15714

Re: Netwatch tool + script: Are global variables truly global?

Files stored on tmpfs can be used also, files will be available until ROS is rebooted (as global variables) since files on tmpfs are persisted in RAM.
by optio
Thu Oct 24, 2024 10:25 pm
Forum: Scripting
Topic: Scripting skills
Replies: 15
Views: 4815

Re: Scripting skills

Regarding VSCode and script error checking, this VSCode task can be useful for debugging but it requires to setup non-interactive (PKI) SSH login to ROS and errors are marked after execution because error position is parsed from script error output after is performed. Not ideal but since there is no...
by optio
Sun Oct 13, 2024 5:45 pm
Forum: Scripting
Topic: $PIANO - interactive "player piano" & studio-quality recorder using :beep
Replies: 15
Views: 6615

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

Like playing live on some chiptune party over rtpMIDI with furnace :)
by optio
Sun Oct 13, 2024 5:34 pm
Forum: Beginner Basics
Topic: How to setup VPN connection to a mikrotik router with google android tv
Replies: 3
Views: 1107

Re: How to setup VPN connection to a mikrotik router with google android tv

Not owning device with Android TV OS, but I have TV box with regular Android from which I'm using Wireguard and OpenVPN with mentioned client apps for VPN connection to ROS. Any of these apps are not available on Play store for Android TV? Try to sideload VPN client app apk if are not available, for...
by optio
Sun Oct 13, 2024 2:45 pm
Forum: Beginner Basics
Topic: How to setup VPN connection to a mikrotik router with google android tv
Replies: 3
Views: 1107

Re: How to setup VPN connection to a mikrotik router with google android tv

Try with MikroTik VPN - Back To Home app (it uses Wireguard VPN), it should be easy setup, see doc . Also Wireguard and OpenVPN client apps are available on Google Play which can be used if VPN port can be exposed to public, some ROS knowledge is needed for custom VPN setup. Also depends to which RO...
by optio
Sat Oct 05, 2024 12:49 am
Forum: General
Topic: Looking for instrction to isolate guest wifi networks
Replies: 12
Views: 1560

Re: Looking for instrction to isolate guest wifi networks

Can someone explain the missing part with “…” (two places) To replace it with properties related to wifi slave configuration, in that tutorial there is add configuration example /interface wifi configuration add ... same properties can be added to wifi add command. Difference is when you have separ...
by optio
Fri Oct 04, 2024 10:50 pm
Forum: General
Topic: Looking for instrction to isolate guest wifi networks
Replies: 12
Views: 1560

Re: Looking for instrction to isolate guest wifi networks

Follow this guide for setting guest VLAN for AP: https://forum.mikrotik.com/viewtopic.php?t=143620#p706999 . Commands for WiFi setup shouldn't differ much from old WiFi package or use Winbox for setup it, VLAN setup is not directly related to WiFi setup except knowing which wifi intarfece needs to b...
by optio
Fri Oct 04, 2024 5:53 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

Maybe stupid question, but couldn't the (safe/complex/random/whatever) password be asked during the netinstall process for those (older) devices that still have the blank one?
Good suggestion! It will cover user access security if internet access is on any interface.
by optio
Fri Oct 04, 2024 5:30 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

How do you suggest the router will determine which port has internet access, and then disable it? You can't disable all interfaces. Is it possible to have internet access without default route is set? If not, which other than LTE can dynamically set default route without config? Edit: But this is i...
by optio
Fri Oct 04, 2024 1:09 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

Exactly, which I suggested above...
ROS without config should not have internet access because of exposed services.
by optio
Thu Oct 03, 2024 9:50 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

@Ammo As you wrote, not a common case, several cases matched: issue with SIM slot failed ROS upgrade - unable to boot, this is preventing for eg. configuring SIM pin before not expected netinstall (as @rextended suggested) without inserting it into another device public IP over LTE due to changes on...
by optio
Thu Oct 03, 2024 9:12 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

Inconvenience to get convenience
by optio
Thu Oct 03, 2024 9:07 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

Choose: convenience or security ?
Maybe convenience is not right term in case when such HW issues are present and requires a lot of effort to eject SIM including risk to damage it, convenience can be for eg. laziness when simple push-to-eject SIM is available.
by optio
Thu Oct 03, 2024 8:43 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

or just apply script...
It seem logic is here - more stupid people are ones which cannot for any reason remove SIM than ones that don't know that lte1 needs to be enabled to have internet access (if is mitigated like that)
by optio
Thu Oct 03, 2024 8:32 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

Maybe reading a bit carefully won't hurt
...In some cases removing SIM from slot is not convenient ... then providing simple script to netinstall with command which disables lte1 interface is the way...
by optio
Thu Oct 03, 2024 6:53 pm
Forum: General
Topic: Device got hacked 1 min after connected to internet
Replies: 57
Views: 9171

Re: Device got hacked 1 min after connected to internet

Generally speaking that is correct, but LTE device is specific when performing netinstall without config, it can provide internet connection without any config if connects using network provided APN and default route is dynamically assigned to LTE WAN IP, in other cases you need at least assign defa...
by optio
Tue Oct 01, 2024 10:23 pm
Forum: Scripting
Topic: FTP - /tool fetch - failure: Unexpected timeout [SOLVED]
Replies: 6
Views: 9313

Re: FTP - /tool fetch - failure: Unexpected timeout [SOLVED]

It seems some FTP server side user permission issue. Could be that file already exists but FTP user doesn't have permission to overwrite it.