Community discussions

MikroTik App

Search found 110 matches

by xrlls
Sat May 17, 2025 10:15 am
Forum: General
Topic: mqtt ssl / haproxy / SSL Handshake failure
Replies: 1
Views: 271

Re: mqtt ssl / haproxy / SSL Handshake failure

You don need to set the certificate in /iot/mqtt/brokers But you do need to have a the root certificate for the mqtt servers certificate on the router. From ROS7.19 forward, the os itself includes root certificates for many common certificate authorities, so if for instances using a letsencrypt cert...
by xrlls
Fri May 02, 2025 10:42 am
Forum: Announcements
Topic: v7.19rc [testing] is released!
Replies: 207
Views: 49505

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

The iot-bt-extra package is somehow lost and needs to be reinstalled every time I upgrade my L009UiGS-2HaxD. To get it back, I need to reinstall manually. Anyone else have the same experience?
by xrlls
Mon Apr 28, 2025 11:15 pm
Forum: General
Topic: Multicast/OSPF over ZeroTier
Replies: 45
Views: 3206

Re: Multicast/OSPF over ZeroTier

My point is that I think OSPF is less work. While I understand that routes can be pushed through Zerotier, relying on it, would require me to maintain both the Zerotier routing configuration and another route distribution method for the non-Zerotier connections. So I would have two maintain the rout...
by xrlls
Mon Apr 28, 2025 8:18 pm
Forum: General
Topic: Multicast/OSPF over ZeroTier
Replies: 45
Views: 3206

Re: Multicast/OSPF over ZeroTier

@unlikely I tried enabling bridging for the Zerotier endpoint (Rb5009, 7.18.2) not working and … heureka… it started working! I then disabled bridging again, and the multicast traffic stopped arriving on the RB5009. Enabling bridging on the non-working endpoint also fixed my other issue with RoMon, ...
by xrlls
Mon Apr 28, 2025 11:33 am
Forum: IoT
Topic: TG-BT5 Bluetooth tag - breaking change in latest firmware Topic is solved
Replies: 4
Views: 16496

Re: TG-BT5 Bluetooth tag - breaking change in latest firmware Topic is solved

Thanks for an exhaustive answer! :) I will update my scripts to iterate through the ADs until the MikroTik AD is found. On the topic of the relase note, it calls out the following: Added an option for MikroTik format payload to detect disabled accelerometer. Can you elaborate on how to detect this? ...
by xrlls
Sun Apr 27, 2025 11:35 am
Forum: General
Topic: Multicast/OSPF over ZeroTier
Replies: 45
Views: 3206

Re: Multicast/OSPF over ZeroTier

Returning to the OP originally problem, I previously stated that it works for me… and it does… on some of my routers. I currently have 3 MikroTik routers connected to the same ZeroTier network, and OSPF is working on two of them over Zerotier. On the third, a RB5009, running 7.18.2, I only see outgo...
by xrlls
Sun Apr 27, 2025 11:21 am
Forum: IoT
Topic: TG-BT5 Bluetooth tag - breaking change in latest firmware Topic is solved
Replies: 4
Views: 16496

TG-BT5 Bluetooth tag - breaking change in latest firmware Topic is solved

Browsing the documentation I stumbled upon the changelog for the TG-BT5 tags, which listed version 2.4: [link] https://help.mikrotik.com/docs/spaces/UM/pages/215351328/MikroTik+Bluetooth+TG-BT5-XX+tag+changelog[/link] However after upgrading a few tags, they stopped working with my backend. It seems...
by xrlls
Thu Apr 24, 2025 9:09 pm
Forum: MikroTik hardware questions
Topic: RB760iGS 7.8 + USB 4G LTE USB not running
Replies: 1
Views: 518

Re: RB760iGS 7.8 + USB 4G LTE USB not running

For LTE, the IP address is not obtained through DHCP. Instead you should check that your APN profile matches the settings required by your provider. Most if it is pretty standard, but the APN may vary from provider to provider. From your screenshots it appears you have a default profile, but you mig...
by xrlls
Tue Apr 22, 2025 9:01 pm
Forum: General
Topic: Wireguard issue - L009 [SOLVED]
Replies: 7
Views: 1242

Re: Wireguard issue - L009 [SOLVED]

Hi, it looks like a mismatch of IP subnets. Both the bridge address, 192.168.88.1/24 and the wireguard address, 192.168.88.100/24 are in the same subnet. They should be separate. Try setting the wireguard interface to 192.168.89.1/24 instead, and for the client something in that subnet, e.g. client-...
by xrlls
Tue Apr 22, 2025 6:40 pm
Forum: General
Topic: Multicast/OSPF over ZeroTier
Replies: 45
Views: 3206

Re: Multicast/OSPF over ZeroTier

What I have is this: /zerotier/interface> /zerotier/interface/print detail Flags: D - dynamic, X - disabled; R - running 0 R name="zerotier1" mac-address=3E:65:02:6A:A1:37 mtu=2800 arp-timeout=auto network="xxxxxxxxxxxxxx" instance=zt1 allow-managed=yes allow-global=no allow-defa...
by xrlls
Mon Apr 21, 2025 10:45 pm
Forum: General
Topic: Multicast/OSPF over ZeroTier
Replies: 45
Views: 3206

Re: Multicast/OSPF over ZeroTier

For what it’s worth, I have OSPF running between a few ‘tiks without any issues. My flow rules are default, and I have not enabled bridging, so I would believe that it should just work. The only issue I had was relating to firewall, where I needed to allow OSPF (or any other traffic for that matter)...
by xrlls
Sun Mar 23, 2025 6:17 pm
Forum: Wireless Networking
Topic: Mikrotik hAP LTE6 as a travel router setup?
Replies: 10
Views: 1884

Re: Mikrotik hAP LTE6 as a travel router setup?

AFAIK connect-list is available on the wireless package for older devices, while when using the wifi packages it is not. It has been discussed earlier in other threads.

If/when this feature is brought to the wifi package, I’d love to hear about it <3
by xrlls
Sun Mar 23, 2025 1:17 pm
Forum: Wireless Networking
Topic: Mikrotik hAP LTE6 as a travel router setup?
Replies: 10
Views: 1884

Re: Mikrotik hAP LTE6 as a travel router setup?

Coming to think of it, the device where I saw the issue is currently on 7.19beta6, so it might have been on 7.18 I had the issue as well. But if you feel adventurous, you can try 7.19beta :)
by xrlls
Sun Mar 23, 2025 12:33 pm
Forum: Wireless Networking
Topic: Mikrotik hAP LTE6 as a travel router setup?
Replies: 10
Views: 1884

Re: Mikrotik hAP LTE6 as a travel router setup?

I had a similar issue on a L009UiGS-2HaxD where the Wi-Fi uplink was also flapping. I think it was on 7.17.something, but for me it went away with 7.18. Anyway, a work around that helped me was to set channel.band manually: /interface/wifi/set [find configuration.mode=station] channel.band=2ghz-n Th...
by xrlls
Tue Mar 18, 2025 11:58 am
Forum: General
Topic: renew ssl certificate let's encrypt
Replies: 15
Views: 2461

Re: renew ssl certificate let's encrypt

I have the same experience as @infabo, but it might be because I am not willing to leave port 80 open. As MT support suggested @infabo.
by xrlls
Tue Mar 18, 2025 7:49 am
Forum: General
Topic: renew ssl certificate let's encrypt
Replies: 15
Views: 2461

Re: renew ssl certificate let's encrypt

It does not renew itself automatically, so you will have to script your way out of it. Also please remember to open and close port 80 in the firewall programmatically, as leaving it open is a recipe for disaster :shock:
by xrlls
Thu Mar 06, 2025 8:32 pm
Forum: MikroTik hardware questions
Topic: Knot LEDs
Replies: 1
Views: 3406

Re: Knot LEDs

I spent some time trying to figure it out. Ultimately I opened the device, and it was written on the PCB. It turns out that the one I could not guess is ModBus.
Image
by xrlls
Wed Mar 05, 2025 10:55 pm
Forum: MikroTik hardware questions
Topic: iot-bt-extra Bluetooth dongle experience
Replies: 5
Views: 3710

Re: iot-bt-extra Bluetooth dongle experience

Thanks for the update! I will keep my eyes open, when new software is released :)

Do you possibly have any recommendations on something that is known to work in the meantime?
by xrlls
Mon Mar 03, 2025 12:21 pm
Forum: MikroTik hardware questions
Topic: iot-bt-extra Bluetooth dongle experience
Replies: 5
Views: 3710

Re: iot-bt-extra Bluetooth dongle experience

@denissMT Thanks for getting back! Based on your feedback, I have tried entering a "random" address: /iot/bluetooth> print Columns: NAME, PUBLIC-ADDRESS, RANDOM-STATIC-ADDRESS, ANTENNA # NAME PUBLIC-ADDRESS RANDOM-STATIC-ADDRESS ANTENNA 0 bt1 A8:6E:84:47:98:0E E5:7B:B3:01:AD:73 internal I ...
by xrlls
Thu Feb 27, 2025 3:26 pm
Forum: MikroTik hardware questions
Topic: iot-bt-extra Bluetooth dongle experience
Replies: 5
Views: 3710

iot-bt-extra Bluetooth dongle experience

Hi, I am looking for any experience with Bluetooth Dongle support with the iot-bt-extra package. Please share your experience with dongles that works for you, as MikroTik has not yet published a list of compatible peripherals and I am curious to see what works for the community.. I have tried a TP-L...
by xrlls
Thu Feb 13, 2025 10:52 pm
Forum: General
Topic: Upgrade modem firmware on KNOT
Replies: 2
Views: 3108

Re: Upgrade modem firmware on KNOT

It is in the manual :) https://help.mikrotik.com/docs/spaces/UM/pages/41680915/RB924i-2nD-BT5+BG77#RB924i2nDBT5%26BG77-Cellularmodemfirmwareupgrade From the console run this command: /interface/ppp-client/firmware-upgrade ppp-out1 upgrade=yes Assuming that the modem interface was not rename.
by xrlls
Tue Dec 17, 2024 9:42 am
Forum: Scripting
Topic: GET DHCP Leases, JSON parse problem
Replies: 2
Views: 4260

Re: GET DHCP Leases, JSON parse problem

As I read your post, it seems you are downloading a JSON payload, and attempting to convert it to a variable. If so, you should not be using parse, but deserialize:
:local leaseList [:deserialize  $response from=json] 
This seems to work correctly with the example JSON payload you have included.
by xrlls
Sun Dec 01, 2024 10:39 am
Forum: Scripting
Topic: Whats wrong in my script: "Fetching my public IP from url=icanhazip.com"? [SOLVED]
Replies: 2
Views: 9871

Re: Whats wrong in my script: "Fetching my public IP from url=icanhazip.com"? [SOLVED]

Hi, The parenthesis around the -> operator is missing. It should be: :local currentIP ([/tool fetch url="http://icanhazip.com" as-value output=user]->"data"); BTW. I removed the escaping of the quotes to be able to run the command from CLI. If you use the build in editor from the...
by xrlls
Thu Nov 21, 2024 9:21 pm
Forum: Scripting
Topic: Script triggered by SMS: can I use the phone number in the script [SOLVED]
Replies: 8
Views: 10912

Re: Script triggered by SMS: can I use the phone number in the script [SOLVED]

The phone number of a message can be read like this:
 :put [/tool/sms/inbox/get 0 phone ]
by xrlls
Tue Oct 22, 2024 7:54 am
Forum: General
Topic: UPS monitor voltage script
Replies: 10
Views: 1172

Re: UPS monitor voltage script

Do your UPS offer the “on-battery” field? While I see it mentioned in the documentation, https://help.mikrotik.com/docs/spaces/ROS/pages/120324130/UPS , my little experience is that the actual UPS implementation on Mikrotik deviates a lot from the documentation. Some of it may be due to the exact mo...
by xrlls
Thu Oct 10, 2024 10:31 pm
Forum: General
Topic: Connecting Mikrotik to iSCSI target using ROSE Storage
Replies: 5
Views: 2119

Re: Connecting Mikrotik to iSCSI target using ROSE Storage

@nickvacula Mikrotik acknowledged the latest addition to my (still) open support case late August, but couldn’t give me an ETA of a fix at that time. The case has not been updated since, and judging from the release notes, nothing has happened. @toxicfusion At least the client side makes sense to me...
by xrlls
Thu Oct 03, 2024 9:13 pm
Forum: Scripting
Topic: I did it! Script to compute UNIX time!
Replies: 36
Views: 33484

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

If you are referring to this example: https://help.mikrotik.com/docs/display/UM/IFTTT+app+notifications+on+BLE+tag+appearance+in+KNOT%27s+range The script has a problem as it does not store the current state of the tag persistently in a global variable. On a newer version of ROS (e.g. 7.16) I would ...
by xrlls
Tue Oct 01, 2024 7:47 am
Forum: General
Topic: KNOT Bluetooth Tracking Examples
Replies: 3
Views: 1199

Re: KNOT Bluetooth Tracking Examples

This is kind of what I made for Home Assistant, except that I assume that the KNOTs are stationary and the tags are moving, so when the tags are out of range I clear the position, while In the forklift case, the position should be updated as long as the tag is in range, and be retained rather than c...
by xrlls
Sun Sep 29, 2024 8:43 pm
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

Yep, just run the install script again [fingers crossed] :)

The problem with multiple KNOTs is both the test effort to mature it, and that I don’t have any use case myself :lol:
by xrlls
Sun Sep 29, 2024 6:42 pm
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

I have added Bluetooth Beacon support on the Github repository. It is still a bit rough around the edges in that it triggers some errors in the Home Assistant log, and that it logs a lot on the MikroTik log. Also there are more optimisations to be done. But all in all it works and provides the funct...
by xrlls
Sun Sep 29, 2024 12:12 pm
Forum: MikroTik hardware questions
Topic: KNOT, GPIOs and expansion board
Replies: 1
Views: 7476

Re: KNOT, GPIOs and expansion board

Hi, I have the Lora version of the KNOT. 1) As far as I have understood, both versions are the same, except the Lora version has a mini-PCI car mounted. So I would expect both to have GPIO. 2) The GPIOs are not accessible on the Lora version without modifying the case. The area is however punched fr...
by xrlls
Mon Sep 23, 2024 9:25 pm
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

@Ammo The KNOT is Lora enabled. I guess I am “future proofing” Something more to explore later :) @niklaswelin I have something working now with Home Assistant auto discovery and decoding of the payload server side through Jinja templates. There is a lot missing though in terms of logic to keep the ...
by xrlls
Wed Sep 18, 2024 8:15 pm
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

I put in an order on the KNOT and a few BLE tags. I guess that in the end the Temptation was to big :D It is now in my desk! The Knot really does a lot of stuff! For now I have added support of firmware update notification for the NB/CAT-M radio. I think on my program next is support of the GPIOs. a...
by xrlls
Fri Sep 13, 2024 2:20 pm
Forum: Scripting
Topic: Date script not working from 6 to 7 [SOLVED]
Replies: 4
Views: 10928

Re: Script [SOLVED]

You are not exactly clear on the purpose of the script, but in this line: :if ($xxx=$name) do={ It seems that you are comparing a date to a route. I cant imagine that will ever be true. Maybe you should be comparing to name1 instead, if the name of the secret is a date? In this case it would be: :gl...
by xrlls
Wed Sep 11, 2024 11:29 pm
Forum: Scripting
Topic: PPTP client Deactivate if the remote site does not respond
Replies: 1
Views: 4408

Re: PPTP client Deactivate if the remote site does not respond

No scripting should be required. Check the documentation for “failover”. This should be helpful for you:
https://help.mikrotik.com/docs/display ... +Balancing

Also, there are many many threads regarding this topic on the forum.
by xrlls
Wed Sep 11, 2024 11:15 pm
Forum: Scripting
Topic: Date script not working from 6 to 7 [SOLVED]
Replies: 4
Views: 10928

Re: Script [SOLVED]

The date format was updated in ROS7.10, and your code needs to be updated accordingly. Check e.g. this thread for more info: https://forum.mikrotik.com/viewtopic.php?t=196072 I think this will do it for you: :global input [/system clock get date] :global xxx ([:pick $input 5 7]."/".[:pick ...
by xrlls
Fri Sep 06, 2024 11:08 pm
Forum: Scripting
Topic: update script remote action log disable
Replies: 1
Views: 4037

Re: update script remote action log disable

It is not possible to avoid local logging. The act of disabling local logging itself is logged locally, so there is no way.

If it was possible to disable the log without a record if it being disabled, it would be a security liability as the audit trail would be broken.
by xrlls
Fri Sep 06, 2024 8:58 am
Forum: Scripting
Topic: DNS failover
Replies: 1
Views: 4286

Re: DNS failover

You have two misplaced “]” and there is a problem with the capitalization of the variables isdnsxup and dns. Try this: :local dns1 "192.168.179.5" :local dns2 "192.168.179.6" :local dns "$dns1,$dns2" :local altDns1 "94.140.14.14" :local altDns2 "94.140.15...
by xrlls
Tue Sep 03, 2024 8:27 pm
Forum: Beginner Basics
Topic: WebFig access issues with VPN through LTE
Replies: 10
Views: 1494

Re: WebFig access issues with VPN through LTE

I’m getting dizzy by the NAT’ing :O I suspect it would work without that dstnat. As far as I can see, you are have no dstnat on https, so maybe tray connecting using https on port 443 and see if it works. I guess I don’t have experience enough in NAT’ing to say for sure what is happening. If it was ...
by xrlls
Tue Sep 03, 2024 3:44 pm
Forum: Beginner Basics
Topic: WebFig access issues with VPN through LTE
Replies: 10
Views: 1494

Re: WebFig access issues with VPN through LTE

It is probably some kind of routing error. But it may be dependent on missing configuration on the remote end of your PPTP. Can you ping the router from the host you are trying to connect from?
by xrlls
Tue Sep 03, 2024 2:06 pm
Forum: Beginner Basics
Topic: WebFig access issues with VPN through LTE
Replies: 10
Views: 1494

Re: WebFig access issues with VPN through LTE

You have the "accept" rule for your PPTP: add action=accept chain=input dst-port=80,443 protocol=tcp src-address=10.0.0.0/23 after your general "drop rule": add action=drop chain=input comment="defconf: drop all not coming from LAN" You need to change the sequence to ma...
by xrlls
Sun Sep 01, 2024 9:05 pm
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

Hi! I am happy that you like my project! I have not looked at the KNOT and Bluetooth before, and I have not had a use case for these device in my setup yet. So I am starting from scratch. On the Bluetooth side, if using Mikrotik beacons with the Knot, it seems like the payload is decoded on the devi...
by xrlls
Fri Aug 30, 2024 10:53 pm
Forum: General
Topic: Mikrotik LHGG + Router Zyxel M904 (WAN)
Replies: 2
Views: 908

Re: Mikrotik LHGG + Router Zyxel M904 (WAN)

The Mikrotik device won’t have route to the Zyxel LAN,192.168.0.0/?, network, unless you have specified it. So on the Mikrotik device, you need to set a route to the Zyxel lan, through the Zyxel WAN address. Additionally, the Zyxel router is likely doing NAT and Firewalling on the LAN interface, and...
by xrlls
Fri Aug 30, 2024 3:09 pm
Forum: General
Topic: commend line
Replies: 2
Views: 842

Re: commend line

Depends on whether you created the VLAN directly on the interface, or whether it was done through the bridge. In the first case, with the VLAN created directly on the interface: /interface/vlan/export where interface=ether2 If done through the bridge it is more complicated, but you can try this: /in...
by xrlls
Fri Aug 30, 2024 2:45 pm
Forum: General
Topic: Wiregard Help site to site
Replies: 2
Views: 656

Re: Wiregard Help site to site

It looks like a firewall issue. You either need to have a rule allowing the traffic arriving on the wireguard interface, or you need to add the wireguard interfaces to an interface list with an existing rule. Ping works to the router because ICMP is allowed by default on the input chain. If you want...
by xrlls
Sat Aug 24, 2024 11:56 pm
Forum: MikroTik hardware questions
Topic: CCR2116-12G-4S+ CAN'T RREBOOT NORMALY
Replies: 1
Views: 6326

Re: CCR2116-12G-4S+ CAN'T RREBOOT NORMALY

I have seen a similar issue on RB5009, L009 and CHR, where a faulty iscsi initiator configuration on the router prevents it from rebooting when using the ROSE-storage package. I looked at the console output, and the router fails to unmount the share during shutdown and stalls. If you are using this ...
by xrlls
Sat Aug 24, 2024 11:33 pm
Forum: Scripting
Topic: E-mail notifications
Replies: 1
Views: 4006

Re: E-mail notifications

No scripting required :) Assuming that your router already has a working email configuration it can be achieved with the following logging setup: /system logging action add email-to=<your@email.com> name=email target=email /system logging add action=email prefix=ether2 topics=interface,info Where th...
by xrlls
Sat Aug 24, 2024 12:24 am
Forum: Scripting
Topic: Ups Monitoring Script
Replies: 4
Views: 4666

Re: Ups Monitoring Script

It seems the name of your UPS is different from the script.

Change this line:
/system ups monitor ups1 once do={
to:
/system ups monitor "SALICRU SPS ONE 700VA" once do={
… and try again :)
by xrlls
Thu Aug 22, 2024 11:12 pm
Forum: Scripting
Topic: Ups Monitoring Script
Replies: 4
Views: 4666

Re: Ups Monitoring Script

The script appears to be working fine, however you need to make sure that the UPS name referenced matches the name shown in /system/ups, and that you have a working SMTP configuration for outgoing mails. Also, it would be helpful if you shared the message you are getting ;) IF the problem persist, s...
by xrlls
Wed Aug 21, 2024 11:03 pm
Forum: General
Topic: Forwarding IPv6 traffic based on source IP
Replies: 11
Views: 1681

Re: Forwarding IPv6 traffic based on source IP

I have recently setup this on 7.15.3: /ipv6 firewall mangle add action=mark-routing chain=prerouting dst-address-list=!FastSpeed new-routing-mark=HE.net passthrough=no src-address-list=HE.net add action=mark-routing chain=output dst-address-list=!FastSpeed new-routing-mark=HE.net passthrough=yes src...
by xrlls
Mon Aug 19, 2024 9:43 pm
Forum: General
Topic: Connecting Mikrotik to iSCSI target using ROSE Storage
Replies: 5
Views: 2119

Re: Connecting Mikrotik to iSCSI target using ROSE Storage

I tried running the example outlined here, between 2 Mikrotiks: https://help.mikrotik.com/docs/display/ROS/ROSE-storage#ROSEstorage-Configurationexample With an L009 with a USB drive as target, and a CHR as initiator. This works also leads to the initiator (the CHR) stopping to respond, and stalling...
by xrlls
Sun Aug 18, 2024 11:42 am
Forum: General
Topic: Connecting Mikrotik to iSCSI target using ROSE Storage
Replies: 5
Views: 2119

Connecting Mikrotik to iSCSI target using ROSE Storage

Hi, I am trying to connect a Mikrotik router to an iSCSI target running on Synology NAS using the following CLI command: [admin@l009] /disk> add type=iscsi iscsi-address=192.168.3.6 iscsi-iqn=iqn.2000-01.com.synology:nas.target-1.a7deb01406e [admin@l009] /disk> print action timed out - try again, if...
by xrlls
Mon Jul 08, 2024 6:56 pm
Forum: General
Topic: RB5009 intermittent boot issue
Replies: 7
Views: 3854

Re: RB5009 intermittent boot issue

I am not sure if this is any help at all, at least my story is circumstantial, but I had a similar issue on a RB5009UPr+S+IN. The device would not reboot, but would instead end up being powered off. This was consistent on CLI, and WebFig, and also when rebooting through firmware update. I ended up d...
by xrlls
Tue Jul 02, 2024 11:00 pm
Forum: Wireless Networking
Topic: setting up freeradius
Replies: 1
Views: 1733

Re: setting up freeradius

It depends on whether you are running the old wireless package or the new wifi package. I am running the old wireless package and based my setup on this guide: https://wiki.mikrotik.com/wiki/Manual:Wireless_PEAP_client_with_FreeRADIUS#Access_Point with focus on the “access point” section. I have not...
by xrlls
Wed Jun 12, 2024 11:23 pm
Forum: Forwarding Protocols
Topic: OSPF or MPLS issue after upgrading from ROS v6 to ROS v7
Replies: 2
Views: 4186

Re: OSPF or MPLS issue after upgrading from ROS v6 to ROS v7

Hi,

Your configuration seems incomplete; the OSPF interface-template is refering to an area, that is not defined in the configuration excerpt you have provide.

Is the area definition missing in general, or just in the excerpt?
by xrlls
Wed Jun 05, 2024 10:26 am
Forum: Scripting
Topic: save commant output to variable
Replies: 3
Views: 4526

Re: save commant output to variable

I’m not certain whether you want to save the output to disk or just put it in variable, but if it is the later case, you can do something like this:
 global a [:ping address=google.com count=5 as-value ]
Which stores the output for each separate ping in an array, a, that you can work on.
by xrlls
Mon Jun 03, 2024 11:03 am
Forum: General
Topic: Auto upgrade
Replies: 3
Views: 739

Re: Auto upgrade

You could do something like this: system/scheduler/add name="Auto update" start-time=startup interval=1d on-event="/system/package/update/check-for-updates ; /system/package/update/install" This would check for an update daily and install it if there is one. But I can think of a ...
by xrlls
Mon May 27, 2024 3:20 pm
Forum: Forwarding Protocols
Topic: How to connect to the Internet for OSPF routing
Replies: 3
Views: 4223

Re: How to connect to the Internet for OSPF routing

You can specify
originate-default=if-installed
On your OSPF instance on R5.

https://help.mikrotik.com/docs/display/ROS/OSPF
by xrlls
Thu Apr 18, 2024 6:45 pm
Forum: Wireless Networking
Topic: Homepod Mini can't setup
Replies: 24
Views: 7386

Re: Homepod Mini can't setup

You are absolutely right! I messed up the WIFI standards. Checking it, I see that even my own HomePod Mini is connected on 5GHz.
by xrlls
Thu Apr 18, 2024 9:08 am
Forum: Wireless Networking
Topic: Homepod Mini can't setup
Replies: 24
Views: 7386

Re: Homepod Mini can't setup

The homepod mini only supports 802.11n (https://www.apple.com/homepod-mini/specs/), so if you have configured your 2.4GHz radio to something else, e.g. followed the temptation to set it to 802.11ax, it will not work. I have seen a similar issue with other IOT devices.
by xrlls
Sun Apr 14, 2024 9:06 pm
Forum: General
Topic: hAP ax2 QCA8075 [SOLVED]
Replies: 2
Views: 1563

Re: hAP ax2 QCA8075 [SOLVED]

VLANs are fully supported… but in software, without hardware acceleration. But not really a loss, since the bridge is not hardware accelerated to begin with ;-)
by xrlls
Sun Apr 14, 2024 6:41 pm
Forum: Wireless Networking
Topic: hAP ax2 wireless doesn't benefit from switching hardware? [SOLVED]
Replies: 4
Views: 6924

Re: hAP ax2 wireless doesn't benefit from switching hardware? [SOLVED]

Yep, the HAP ax^2 is not hardware offloaded. It is documented here: https://help.mikrotik.com/docs/display/ROS/Bridging+and+Switching#BridgingandSwitching-BridgeHardwareOffloading look for “IPQ-PPE”. As they write in comment 6: “ Currently, HW offloaded bridge support for the IPQ-PPE switch chip is ...
by xrlls
Thu Apr 11, 2024 11:31 am
Forum: Beginner Basics
Topic: Map lite as universal travel router
Replies: 12
Views: 1753

Re: Map lite as universal travel router

I did not consider the hardware limitations on the mAP lite, as I have been doing this on a device with dual chain WI-FI, multiple ethernet interfaces and LTE, and even have scripting on top of this to bend the router to my will, hence I have not been facing this issue. But you are right if doing it...
by xrlls
Thu Apr 11, 2024 10:27 am
Forum: Beginner Basics
Topic: Map lite as universal travel router
Replies: 12
Views: 1753

Re: Map lite as universal travel router

I am not sure why you would disable the firewall on the WAN. The WI-FI interface is serving as a WAN connection, so it should be firewalled unless you have very specific needs. Also the interface needs to be NAT'ed, so adding it to the WAN list ensures that this is done using the default config. I h...
by xrlls
Thu Apr 11, 2024 8:34 am
Forum: Beginner Basics
Topic: Map lite as universal travel router
Replies: 12
Views: 1753

Re: Map lite as universal travel router

Try something like:
interface/list/member/add interface="wlan2 (uplink 5GHz)" list=WAN disabled=no
your interface name may vary…
by xrlls
Wed Apr 10, 2024 8:08 pm
Forum: Beginner Basics
Topic: Map lite as universal travel router
Replies: 12
Views: 1753

Re: Map lite as universal travel router

I have achieved this by adding both interface to the WAN interface list. Having a separate DHCP client configured for each device. Setting a lower default-route-distance for the DHCP client for the preferred (wired) interface, than for the wireless interface. This is working as intended for me :) It...
by xrlls
Tue Mar 19, 2024 10:56 pm
Forum: General
Topic: VLANs between Unifi and MikroTik [SOLVED]
Replies: 10
Views: 5974

Re: VLANs between Unifi and MikroTik [SOLVED]

Regarding your follow up questions: The bridge is a layer2 device, not unlike an Ethernet switch. Traffic is allowed to pass between ports when the ports are on the same bridge. On a device like yours with a switch chip, configuring the bridge correctly offloads the VLAN processing to hardware. This...
by xrlls
Mon Mar 18, 2024 9:44 am
Forum: General
Topic: VLANs between Unifi and MikroTik [SOLVED]
Replies: 10
Views: 5974

Re: VLANs between Unifi and MikroTik [SOLVED]

Hi, the problem with VLANs is not cutting the branch you are sitting on... It is not obvious which interface you are using to connect when performing the configuration, but you would want to keep the configuration of that interface unchanged until you have verified the remainder of your configuratio...
by xrlls
Sun Mar 17, 2024 11:08 pm
Forum: General
Topic: VLANs between Unifi and MikroTik [SOLVED]
Replies: 10
Views: 5974

Re: VLANs between Unifi and MikroTik [SOLVED]

Regarding (1) @anav is absolutely right, adding the pvid is an oversight that results in the vlan being untagged, which is not what you need, as your port is a trunk port. To specify what ports the vlan is available on, tagged, instead do this: /interface bridge vlan add vlan-ids=3 tagged=ether1 No ...
by xrlls
Sun Mar 17, 2024 12:44 pm
Forum: General
Topic: VLANs between Unifi and MikroTik [SOLVED]
Replies: 10
Views: 5974

Re: VLANs between Unifi and MikroTik [SOLVED]

Your device has a MT7621 switch chip: https://i.mt.lv/cdn/product_files/RB760iGS-dsw_180523.png Hence this example is relevant: https://help.mikrotik.com/docs/display/ROS/Basic+VLAN+switching#BasicVLANswitching-CRS3xx,CRS5xxseriesswitches,CCR2116,CCR2216andRTL8367,88E6393X,88E6191X,88E6190,MT7621and...
by xrlls
Sun Mar 17, 2024 12:37 pm
Forum: General
Topic: VLANs between Unifi and MikroTik [SOLVED]
Replies: 10
Views: 5974

Re: VLANs between Unifi and MikroTik [SOLVED]

Hi, Is your configuration currently working? It looks a bit odd to me. I am assuming that you want the Hex to act as a switch and acquire a DHCP lease for itself on VLAN3, right? If so, I am not sure why you have the DHCP client on the brigde while ether1, connecting to your Unifi network is not. I ...
by xrlls
Fri Mar 15, 2024 9:14 am
Forum: General
Topic: VLAN setup device with AR8327 and WI-FI [SOLVED]
Replies: 2
Views: 1834

Re: VLAN setup device with AR8327 and WI-FI [SOLVED]

I am still running the legacy drivers due to the disk space constraints, so this was exactly what I needed!

Thanks! :D
by xrlls
Thu Mar 14, 2024 9:26 pm
Forum: General
Topic: VLAN setup device with AR8327 and WI-FI [SOLVED]
Replies: 2
Views: 1834

VLAN setup device with AR8327 and WI-FI [SOLVED]

Hi, I am in the process of setting up VLANs on a wAP ac LTE6. On the Ethernet side I have been successfull, by following the guide here: https://help.mikrotik.com/docs/display/ROS/Basic+VLAN+switching#BasicVLANswitching-Otherdeviceswithabuilt-inswitchchip /interface ethernet switch port set 0 defaul...
by xrlls
Wed Feb 07, 2024 4:54 pm
Forum: Beginner Basics
Topic: How to reset WAP ac LTE6 [SOLVED]
Replies: 14
Views: 7776

Re: How to reset WAP ac LTE6 [SOLVED]

My wAP ac LTE6 sometimes dies in such a way that it is entirely unreachable, if it runs out of disk space. The only way I have found to restore operation in this case is by restoring the firmware through netinstall. Background: I am probably putting to much on the disk, by running ROS7.13.3, with th...
by xrlls
Thu Dec 28, 2023 5:04 pm
Forum: Scripting
Topic: Inconsistent results with JSON serialize, deserialize and numbers
Replies: 5
Views: 2691

Re: Inconsistent results with JSON serialize, deserialize and numbers

I agree on the quotes must be treated as string! However I can see where they are coming from, as the current functionality was probably a work around to allow writing floats to JSON, such as voltage, power consumption or some other measure that is typically handled by strings by ROS. It just comes ...
by xrlls
Thu Dec 28, 2023 11:43 am
Forum: Scripting
Topic: Inconsistent results with JSON serialize, deserialize and numbers
Replies: 5
Views: 2691

Inconsistent results with JSON serialize, deserialize and numbers

A word of warning with the new serialize and deserialize commands, each of them do different conversion, so the process is not reversible! I have been working a bit with the new serialise and deserialize commands and JSON containing various types of numbers, and the results are wildly inconsistent. ...
by xrlls
Mon Dec 25, 2023 5:32 pm
Forum: Scripting
Topic: Creating array element with type nil [SOLVED]
Replies: 2
Views: 6368

Re: Creating array element with type nil [SOLVED]

Thanks! :)
by xrlls
Mon Dec 25, 2023 3:26 pm
Forum: Scripting
Topic: Creating array element with type nil [SOLVED]
Replies: 2
Views: 6368

Creating array element with type nil [SOLVED]

Hi, I am working with the new serialize and deserialize commands for JSON. I found that the deserialize command will convert a null payload to a variable with type nil: > global org [deserialize value="{\"a\":\"Hi\",\"b\":12,\"c\":null}" from=json ] ...
by xrlls
Sun Dec 24, 2023 11:52 am
Forum: Scripting
Topic: System health voltage string conversion ROS7.13
Replies: 5
Views: 2147

Re: System health voltage string conversion ROS7.13

RouterOS only handles integers. This means that in some places like health, ROS will return a string with the decimal number, and in other places, like the POE section, ROS returns the output voltage as a number in deci-volt, i.e. times ten, to convert the number to an integer. The later has been ca...
by xrlls
Fri Dec 22, 2023 8:57 pm
Forum: MikroTik hardware questions
Topic: rb5009UG+S+IN
Replies: 12
Views: 3369

Re: rb5009UG+S+IN

I had a U-Blox 8 based GPS working on USB until 7.13.1, but then I both updated the RB5009, and messed around with the GPS at the same time (reset it to factory defaults) and it stopped registering as a port. I assumed it was something with 7.13.2 and 7.14 as it seems that people are having a lot of...
by xrlls
Fri Nov 17, 2023 1:22 pm
Forum: General
Topic: VPN over port 80?
Replies: 4
Views: 2189

Re: VPN over port 80?

I have done this earlier with an OpenVPN TCP server on port 443. While a lot of bad things can be said about OpenVPN TCP, it looks a lot like HTTPS when traversing restrictive firewalls :)
by xrlls
Thu Nov 16, 2023 2:33 pm
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

I'm glad you like it! To my knowledge, you are the first user beyond myself :) The intention with the firmware versions is that "Hassio Firmware Entity Publish.rsc" creates the update entity, and populates the device info with the current version from /system/resource/ and the update entit...
by xrlls
Thu Nov 16, 2023 8:40 am
Forum: General
Topic: MQTT to Home Assistant
Replies: 23
Views: 7163

Re: MQTT to Home Assistant

I have made this MQTT “integration” for Home Assistant with auto discovery: https://github.com/Xrlls/MikroTik-Home-Assistant-MQTT-telemetry It is made for my own purposes, so the metrics may not match your use cases, or may require modification, also it does not offer any control of the router. Spec...
by xrlls
Sat Sep 30, 2023 11:29 am
Forum: Scripting
Topic: String lengths [SOLVED]
Replies: 3
Views: 5959

Re: String lengths [SOLVED]

I agree that it would be more efficient to let the backend handle it. But the backend is beyond my control. I got it working using this approach: global test [/tool/fetch "http://upgrade.mikrotik.com/routeros/7.12beta9/CHANGELOG" output=user as-value] Instead of having the intermediate ste...
by xrlls
Fri Sep 29, 2023 12:10 pm
Forum: Scripting
Topic: String lengths [SOLVED]
Replies: 3
Views: 5959

String lengths [SOLVED]

Hi, I am writing a script that fetches the latest release note and forwards and excerpt to a server backend, put I am struggling with no text showing of the release note is long. An example: tool/fetch http://upgrade.mikrotik.com/routeros/7.12beta7/CHANGELOG :put [file/get CHANGELOG contents ] Resul...
by xrlls
Fri Sep 29, 2023 10:37 am
Forum: General
Topic: how to comment a WANs as WAN1 in IP Route [SOLVED]
Replies: 7
Views: 1694

Re: how to comment a WANs as WAN1 in IP Route [SOLVED]

What I mean was that rather than add a comment the route, saying it is WAN1, then just use the above command in netwatch.

If you insist on adding a comment you might be able to do so by adding a script that does it in the DHCP script client script.
by xrlls
Thu Sep 28, 2023 11:07 pm
Forum: General
Topic: how to comment a WANs as WAN1 in IP Route [SOLVED]
Replies: 7
Views: 1694

Re: how to comment a WANs as WAN1 in IP Route [SOLVED]

Maybe it is easier to search for a default route related to the interface when it changes? Something like
ip/route/find where (vrf-interface=wan1 and dst-address=0.0.0.0/0)
by xrlls
Fri Sep 08, 2023 11:22 pm
Forum: Beginner Basics
Topic: in.addr.arpa
Replies: 5
Views: 2380

Re: in.addr.arpa

On Pihole it can be configured in

Settings -> DNS -> Conditional forwarding
by xrlls
Fri Sep 08, 2023 11:18 pm
Forum: General
Topic: Disable the interface address assigned by dhcp
Replies: 7
Views: 1799

Re: Disable the interface address assigned by dhcp

If you check
/ip/dhcp-client/
You should be able to see all DHCP clients running on your router, and then disable any instance you do not need.
by xrlls
Fri Sep 08, 2023 11:08 pm
Forum: Beginner Basics
Topic: OS 7.11 and old Mikrotik HAP lite
Replies: 8
Views: 8029

Re: OS 7.11 and old Mikrotik HAP lite

Ultimately it is not recommended by Mikrotik, check https://help.mikrotik.com/docs/display/ROS/Upgrading+to+v7, second note: “Note: We do not recommend running v7 on hardware that does not have at least 64 MB of RAM.” I have been running ROS7 on a hAP lite myself, with IPv6, Wireguard, OSPF etc. and...
by xrlls
Thu Sep 07, 2023 2:59 pm
Forum: General
Topic: Selecting VPN - Wireguard ?
Replies: 4
Views: 1253

Re: Selecting VPN - Wireguard ?

Wireguard works excellent with one of the device behind NAT. On the device behind NAT, configure as usual. On the device with a public IP, configure the wireguard peer without an "endpoint address" or "endpoint-port", as you do not know these, and set the "persistant.keepali...
by xrlls
Thu Sep 07, 2023 8:50 am
Forum: Beginner Basics
Topic: How to add IPV6 to wireguard
Replies: 4
Views: 8416

Re: How to add IPV6 to wireguard

On the topic of firewall, given that you want you remote client to have the same rights as hosts on your local LAN, you can simply add your wireguard interface to the LAN list: add interface=wireguard1 list=LAN In many situations I think this is a better solution than having many, almost identical, ...
by xrlls
Wed Sep 06, 2023 12:25 pm
Forum: Beginner Basics
Topic: How to add IPV6 to wireguard
Replies: 4
Views: 8416

Re: How to add IPV6 to wireguard

It's a unfortunately a manual process. At least for the clients. What I did was: - I added an IPv6 address from an unused subnet to the Wireguard interface. (It could have been assigned automatically from the Pool, but it makes little difference as the clients have to be configured manually anyway.)...
by xrlls
Sun Sep 03, 2023 9:17 pm
Forum: General
Topic: Wireguard Multi-Site OSFP not working
Replies: 3
Views: 2182

Re: Wireguard Multi-Site OSFP not working

Wireguard and OSPF requires a bit of extra work, as OSPF does not support broadcast.

You will need to configure your Wireguard interfaces as PTMP in
/routing ospf interface-template
And, then you need to add the peer(s) as a static neighbor(s) in
/routing ospf static-neighbor
Good luck!
by xrlls
Sat Sep 02, 2023 5:12 pm
Forum: General
Topic: Netinstall on Linux stalls with WAP AC LTE6 [SOLVED]
Replies: 4
Views: 1946

Re: Netinstall on Linux stalls with WAP AC LTE6 [SOLVED]

Netinstall 6.49.3 did the job. I first tried 6.47.8 but it resulted in “key was rejected”. I was upgrading from 7.11 to 7.11.2 so it should not have been an issue however, I was also installing the IOT package at the same time, so I might not upgrade and install packages simultaneously another time....
by xrlls
Sat Sep 02, 2023 11:49 am
Forum: General
Topic: Netinstall on Linux stalls with WAP AC LTE6 [SOLVED]
Replies: 4
Views: 1946

Netinstall on Linux stalls with WAP AC LTE6 [SOLVED]

Hi, I attempted to upgrade a WAP AC LTE6 to 7.11.2 yesterday, but it never came back. To recover the device I have attempted netinstall on Linux, and the process proceeds as follows: $ sudo ./netinstall-cli -a 192.168.88.3 -r routeros-7.11.2-arm.npk Version: 7.11.2(2023-08-31 14:41:16) Will reset to...
by xrlls
Fri Sep 01, 2023 1:52 pm
Forum: General
Topic: Wireguard client doesn't see internal subnet [SOLVED]
Replies: 3
Views: 2009

Re: Wireguard client doesn't see internal subnet [SOLVED]

The address for the Wireguard interface is the same as the network address. Try changing it to 10.10.0.1 :)
by xrlls
Tue Aug 08, 2023 8:08 pm
Forum: Beginner Basics
Topic: simple (?) wireguard setup
Replies: 5
Views: 1384

Re: simple (?) wireguard setup

So, there is nothing fundamentally wrong at the conceptual level in the idea of forwarding a port from a wireguard ip to another host. It's just a matter of finding the way to do it. I'll try to add the wireguard interface to the LAN group. What I tried to say is that it is technically possible whi...
by xrlls
Mon Aug 07, 2023 11:09 pm
Forum: Beginner Basics
Topic: simple (?) wireguard setup
Replies: 5
Views: 1384

Re: simple (?) wireguard setup

Hi, You likely need to modify your firewall rules to allow the traffic from the Wireguard interface beyond ICMP. That can either be done by separate rules, or by adding your wireguard interface to the LAN group with something like: interface/list/member/add interface=wireguard list=LAN - depending o...
by xrlls
Sun Aug 06, 2023 7:45 pm
Forum: Beginner Basics
Topic: Practicing a wireguard setup- many questions
Replies: 13
Views: 2488

Re: Practicing a wireguard setup- many questions

A small clarification to the above statement regarding routes: Your client will need to have route telling it that your LAN is reachable through the Wireguard tunnel. A host only configures routes to directly connected networks, and the routes to anything on the remote side of the tunnel, e.g. the L...
by xrlls
Sun Aug 06, 2023 6:42 pm
Forum: Beginner Basics
Topic: Practicing a wireguard setup- many questions
Replies: 13
Views: 2488

Re: Practicing a wireguard setup- many questions

Hi, You got it right, except for the last point; regarding configuration of routes; it is not necessary to configure any routes to networks that are directly connected to the router, as the router will setup these routes automatically. You should see these routes in ip/route with a separate entry fo...
by xrlls
Sat Aug 05, 2023 11:24 am
Forum: Beginner Basics
Topic: Practicing a wireguard setup- many questions
Replies: 13
Views: 2488

Re: Practicing a wireguard setup- many questions

Hi, Try to run nmap from the LAN side of the router to eliminate any firewall issues. Hopefully you should see the port listed as open. Your IP configuration will not work, with the wireguard and the bridge having addresses in the same subnet. You will need to assign a separate subnet to the wiregua...
by xrlls
Mon Jan 11, 2021 11:46 am
Forum: General
Topic: 6in4 tunnel with wrong source addres [SOLVED]
Replies: 6
Views: 1556

Re: 6in4 tunnel with wrong source addres [SOLVED]

Thanks a million! I had tried to disable the tunnel, but not for 10 minutes. Removing the connection did the trick! :)
by xrlls
Mon Jan 11, 2021 9:52 am
Forum: General
Topic: 6in4 tunnel with wrong source addres [SOLVED]
Replies: 6
Views: 1556

Re: 6in4 tunnel with wrong source addres [SOLVED]

I am using ROS 6.84, and Open VPN push routes are accepted from the server. The output of ip firewall connection print detail is: 19 S C s protocol=ipv6-encap src-address=192.168.32.1 dst-address=192.168.0.1 reply-src-address=192.168.0.1 reply-dst-address=10.160.22.11 timeout=9m59s orig-packets=29 8...
by xrlls
Sun Jan 10, 2021 9:58 pm
Forum: General
Topic: 6in4 tunnel with wrong source addres [SOLVED]
Replies: 6
Views: 1556

Re: 6in4 tunnel with wrong source addres [SOLVED]

I’m not using mangle, at least not that I am aware of. There is nothing under /ip firewall mangle. The frames are routed through dynamic routes pushed from the remote Open VPN server.
by xrlls
Sun Jan 10, 2021 7:52 pm
Forum: General
Topic: 6in4 tunnel with wrong source addres [SOLVED]
Replies: 6
Views: 1556

6in4 tunnel with wrong source addres [SOLVED]

Hi, I have a 6in 4 tunnel with the following config: /interface 6to4 add !keepalive local-address=192.168.32.1 name=Home remote-address=192.168.0.1 My problem with this is that when trying to send something through the tunnel, the source address is not the specified address, but the WAN addres: 77 9...
by xrlls
Mon Jan 14, 2019 5:10 pm
Forum: Beginner Basics
Topic: Resolving local DHCP hosts using DNS
Replies: 2
Views: 8282

Re: Resolving local DHCP hosts using DNS

I ended up adopting the script from here:
viewtopic.php?t=119469

While I will still prefer a "native" solution, rather than something bolted on.

Br. Crilles
by xrlls
Sun Jan 13, 2019 8:04 pm
Forum: Scripting
Topic: Yet another DHCP to DNS script
Replies: 42
Views: 51010

Re: Yet another DHCP to DNS script

Excellent! Just what I needed!
by xrlls
Sun Jan 13, 2019 5:07 pm
Forum: Beginner Basics
Topic: Resolving local DHCP hosts using DNS
Replies: 2
Views: 8282

Resolving local DHCP hosts using DNS

Hi, I am trying to make a setup where hosts on the LAN, configured using DHCP can be looked up using the hostname. I have similar setups on other brands, such as Ubiquiti USG, Edgerouter and Asuswrt, all based on dnsmasq, where it is straight forward to setup. On these systems I can specify a domain...