Community discussions

MikroTik App

Search found 37 matches

by 611
Sun Jun 18, 2023 10:20 am
Forum: General
Topic: Interface list include nesting limit
Replies: 0
Views: 399

Interface list include nesting limit

Looks like interface list includes don't work beyond the first level of nesting: "interface list 2 -> interface list 1 -> interface" works, but "interface list 3 -> interface list 2 -> interface list 1 -> interface" doesnt. This configuration: /interface list add name=il-test1 /i...
by 611
Mon May 22, 2023 10:19 am
Forum: General
Topic: Routing table ignoring routing mark
Replies: 7
Views: 4815

Re: Routing table ignoring routing mark

It's 2023 and ROS v7.9, the same thing, still undocumented. I've resorted to just resetting the routing mark as the first rule in mangle output chain: /ip firewall mangle add chain=output action=mark-connection connection-state=new,untracked ipsec-policy=out,ipsec new-connection-mark=no-mark passthr...
by 611
Tue May 09, 2023 12:47 am
Forum: Scripting
Topic: invalid internal item number [SOLVED]
Replies: 13
Views: 5264

Re: invalid internal item number [SOLVED]

the correct syntax is "find where" While it looks more in line with "print where" this way, both docs page on scripting and /export command use "[find property=value]" without "where". Terminal autocomplete suggests that "where" is optional for &quo...
by 611
Mon May 08, 2023 11:33 pm
Forum: Scripting
Topic: invalid internal item number [SOLVED]
Replies: 13
Views: 5264

Re: invalid internal item number [SOLVED]

You broke a simple law of almost all programming languages: don't use reserved words as a variable name... Sure. The problem is DHCP client supplies interface name to the script as variable named "interface" (unlike DHCP server that uses "bindingVariableName" variables). Had to ...
by 611
Mon May 08, 2023 8:36 pm
Forum: Scripting
Topic: invalid internal item number [SOLVED]
Replies: 13
Views: 5264

Re: invalid internal item number [SOLVED]

A follow-up as I've ran into similar issue, but the cause was not apparent from this thread. :local interface "some-interface" :put [/ip dhcp-client get [find interface=$interface] primary-dns] Results in "invalid internal item number". :put [/ip dhcp-client get [find interface=&...
by 611
Tue Mar 07, 2023 10:50 pm
Forum: Wireless Networking
Topic: A script to dump country-info in spreadsheet-friendly format
Replies: 2
Views: 744

A script to dump country-info in spreadsheet-friendly format

Just in case you're curous of what's inside country-info DB: :global formatFreqRange do= { :if ( [:find $range "turbo"] < 0 && [:len $range] > 0) do={ :local startfreq ([:pick $range 0 [:find $range "-"]]); :local endfreq ([:pick $range ([:find $range "-"]+1) [:...
by 611
Fri Oct 07, 2022 4:02 pm
Forum: General
Topic: Comparing config files
Replies: 39
Views: 3476

Re: Comparing config files

I've tried similar approach with handcrafted config files and comparison, and crafted a Python script to compare actual config to one I'd want: # RouterOS config file parser/sorter/comparer ver.0 # by 611 import sys import re # My preferred order of parameter sorting # Firtsparams will go first in t...
by 611
Fri Oct 07, 2022 1:02 am
Forum: General
Topic: Backing up certificates
Replies: 3
Views: 1081

Re: Backing up certificates

Same to me - looks like "issued" and "revoked" flags, along with CA attribute of the certificates are local - they are not exported and absent on imported ones. Not a major problem for me as mu use case is simple: I'm pinning specific certificates for all connections I'm using an...
by 611
Thu Oct 06, 2022 6:27 pm
Forum: General
Topic: Backing up certificates
Replies: 3
Views: 1081

Backing up certificates

It happened that I had ran my CA for IPsec purposes on one of my MT routers (yes, I know), and as the device in question was due to be upgraded, I've decided to move the CA to a back-end device. From my previous experience I knew that configuration backup/restore functions in ROS also backing up/res...
by 611
Mon Jul 05, 2021 1:15 pm
Forum: General
Topic: Robust 24/7 traffic generation
Replies: 0
Views: 860

Robust 24/7 traffic generation

I have two very different cases where I need to generate some traffic to keep the link loaded, and would like to hear your opinion on available options: 1. Site-to-site IPsec connection over 1Gb/s link plus some paranoia. I'd like approx. 150Mbit/s each way to obscure the traffic patterns of the rea...
by 611
Thu Jan 16, 2020 1:11 am
Forum: General
Topic: IPSEC+tunnel packet flow
Replies: 3
Views: 1276

Re: IPSEC+tunnel packet flow

The packet may return, it's called "loop" :) Normally you shouldn't see neither packets with external addresses (one external is ok is you're routing some external traffic through another node, but not both src and dest) nor ipencap (4) protocol _inside_ your internal tunnel, still you hav...
by 611
Wed Jan 15, 2020 11:54 pm
Forum: General
Topic: IPSEC+tunnel packet flow
Replies: 3
Views: 1276

Re: IPSEC+tunnel packet flow

As far as I've understood you, I've got the same config (for the same purposes). If your interface list ipip1 contains your ipip tunnels, by adding such drop rule in prerouting chain you're just filtering traffic _inside_ your tunnels, and you have no way to know if the tunnel itself was encrypted i...
by 611
Mon Jan 13, 2020 8:52 am
Forum: General
Topic: NordVPN IKEv2 EAP VPN tunnel: DNS leak
Replies: 7
Views: 6569

Re: NordVPN IKEv2 EAP VPN tunnel: DNS leak

The point is that the Mikrotik tutorial and the NordVPN tutorial are both missing this information: https://wiki.mikrotik.com/wiki/IKEv2_EAP_between_NordVPN_and_RouterOS https://nordvpn.com/de/tutorials/mikrotik/ikev2/ That's why my expectation is that the VPN tunnel configuration does not add any ...
by 611
Sun Jan 12, 2020 6:33 pm
Forum: General
Topic: NordVPN IKEv2 EAP VPN tunnel: DNS leak
Replies: 7
Views: 6569

Re: NordVPN IKEv2 EAP VPN tunnel: DNS leak

I'm not affiliated with MT :) "DNS leak" in VPN scenario usually denotes "resolving names through DNS server other than VPN provider's". If you'll route traffic from a "client group" (identified with network addresses, ports, L7 patterns used, whatever) to a VPN, but do...
by 611
Sun Nov 03, 2019 12:37 pm
Forum: General
Topic: Logging Actions to an USB disk are lost after reboot
Replies: 2
Views: 2503

Logging Actions to an USB disk are lost after reboot

All logging actions with destination pointing to an USB disk are lost after reboot on latest beta (6.46beta59): /system logging export pre-reboot: # nov/03/2019 11:43:17 by RouterOS 6.46beta59 # software id = [redacted] # # model = RouterBOARD 3011UiAS # serial number = [redacted] /system logging ac...
by 611
Fri Sep 06, 2019 3:27 pm
Forum: RouterBOARD hardware
Topic: hAP ac bricked
Replies: 5
Views: 5480

Re: hAP ac bricked

The support have refused to provide me a new key for unbricked device, citing it has the same serial as fullflash donor. (Thanks, Captain Obvious!)

That's haven't been unexpected, to be true.

So I have to dig deeper :)
I'll keep this thread updated should I get any results.
by 611
Tue Sep 03, 2019 10:19 am
Forum: RouterBOARD hardware
Topic: hAP ac bricked
Replies: 5
Views: 5480

Re: hAP ac bricked

I've finally got to this issue, desoldered SPI flash and found it to be completely empty. No boot block, no config block, nothing. Just 16Mb of 0xFF. So I can confirm that hard resettng hAP ac twice causes complete flash erasure. I've debricked the router by flashing a dump from another hAP ac into ...
by 611
Mon Jul 01, 2019 11:04 pm
Forum: General
Topic: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]
Replies: 8
Views: 3355

Re: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]

Fixed in 6.45.1 stable.
by 611
Thu Jun 27, 2019 9:49 am
Forum: General
Topic: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]
Replies: 8
Views: 3355

Re: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]

Yes exactly, I also tested if the traffic is really isolated, but so far no issues with this kind of configuration. From my point of view, this was the simplest and most direct type of configuration. Looks like I was missing a critical part of knowledge to implement it this way. And it's actually s...
by 611
Wed Jun 26, 2019 1:55 pm
Forum: General
Topic: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]
Replies: 8
Views: 3355

Re: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]

Tobias, if your config work on beta64? No hw offload on the second bridge is not a problem because it won't have any meaningful hw offload as it includes only wireless interfaces and VLAN on master bridge - it goes through CPU anyway. Moreover, you'll need this separate bridge if you want to connect...
by 611
Wed Jun 26, 2019 10:09 am
Forum: General
Topic: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]
Replies: 8
Views: 3355

Re: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]

It took a bit longer, still here it is. Relevant portion of config: # model = RBD52G-5HacD2HnD /interface ethernet set [ find default-name=ether1 ] name=ether1-company set [ find default-name=ether2 ] name=ether2-extra set [ find default-name=ether3 ] name=ether3-laptop set [ find default-name=ether...
by 611
Sat Jun 22, 2019 9:10 pm
Forum: Announcements
Topic: v6.45beta [testing] is released!
Replies: 304
Views: 157815

Re: v6.45beta [testing] is released!

Does anyone knows where to find this setting? I am looking for it for years now. *) winbox - do not allow setting "dns-lookup-interval" to "0"; Update: Found it on a Polish site and it a setting not applying to what I was looking for. It was a very "funny" bug actually...
by 611
Sat Jun 22, 2019 8:48 pm
Forum: General
Topic: NordVPN
Replies: 17
Views: 9651

Re: NordVPN

Confirmed working with 6.45beta54.
Phase2 rekeying doesn't work, but increasing SA lifetime to 365 days in the proposal could be used as a workaround.
by 611
Sat Jun 22, 2019 8:37 pm
Forum: General
Topic: Switch issues in 6.45beta62 (but not in beta54) [SOLVED]
Replies: 8
Views: 3355

Switch issues in 6.45beta62 (but not in beta54) [SOLVED]

I'm using hap ac2 with its switch configured as follows: VLANs are configured in switch; all external Ethernet ports are access (untagged) ports with corresponding VLANs; CPU port is a trunk (tagged) port; all external Ethernet ports are added to master bridge in router; corresponding VLANs on maste...
by 611
Mon Jun 03, 2019 11:24 pm
Forum: RouterBOARD hardware
Topic: hAP ac bricked
Replies: 5
Views: 5480

Re: hAP ac bricked

Looks like power cycling the router after 300s format had bricked it. And this SFP LED steady on for first 300s / blinking for second 300s makes me think it erased primary bootloader first, than backup bootloader. I always disable all other adapters and when running netinstall or similar utilities (...
by 611
Mon Jun 03, 2019 12:20 pm
Forum: RouterBOARD hardware
Topic: hAP ac bricked
Replies: 5
Views: 5480

hAP ac bricked

I've got several RB962, and each time I need to netinstall one there was some kind of problem - it won't netinstall like other MT devices. If I remember correctly, the last time problem was solved with failsafe format (supply power while keeping reset pressed, hold reset for 300+ seconds), then it n...
by 611
Thu May 30, 2019 12:32 am
Forum: General
Topic: NordVPN
Replies: 17
Views: 9651

Re: NordVPN

IKEv2 from NordVPN should work with latest testing releases, where support for EAP authentication methods was added. See this post for details: https://forum.mikrotik.com/viewtopic.php?f=2&t=126221#p731754 Confirmed working with 6.45beta54. You may create identity with GUI (you'll need to selec...
by 611
Fri May 24, 2019 12:34 pm
Forum: General
Topic: Strange RP filter behavior
Replies: 12
Views: 3268

Re: Strange RP filter behavior

I've got a reply from support, problem confirmed: I have managed to reproduce your problem and at the moment it indeed seems to be software related bug which does not comply with loose rp-filter implementation. However, this parameter functionality in RouterOS works based on Linux Kernel. We will tr...
by 611
Wed May 22, 2019 7:22 pm
Forum: General
Topic: Strange RP filter behavior
Replies: 12
Views: 3268

Re: Strange RP filter behavior

@611: You can mention to support, that the thing you desperately need is conditional DNS forwarding . And that it's really important, the proof of that being the thing you're trying to do now. Maybe you don't mind, but regular people should not be forced to such desperate measures. It's not just on...
by 611
Wed May 22, 2019 6:49 pm
Forum: General
Topic: Strange RP filter behavior
Replies: 12
Views: 3268

Re: Strange RP filter behavior

I haven't done any actual testing, but most likely issue is with connection tracking way to classify traffic, i had similar setup, where traffic was traversing router twice, connection tracking was unable to classify it for some reason. Trying to assign traffic to same conntrack entry so rp-fiter b...
by 611
Tue May 21, 2019 11:02 pm
Forum: General
Topic: Strange RP filter behavior
Replies: 12
Views: 3268

Re: Strange RP filter behavior

I'm sorry, but i still do not understand - WHY you need this? I do not know your background, but this is first time i heard about this "know solution of Mangling loopback".. so please explain functionality that you are trying to achieve 1. I need conditional DNS (like "*.domain1"...
by 611
Sun May 12, 2019 5:41 pm
Forum: General
Topic: Strange RP filter behavior
Replies: 12
Views: 3268

Re: Strange RP filter behavior

An update: Looks like the "mangling loopback" setup was failing to work on my production RB3011 (running the same 6.44.3) for the same RP filter reason. But unlike the test setup, I had to reboot router after switching RP filter off to get it working. Maybe it's due to existing load, which...
by 611
Sun May 12, 2019 4:12 pm
Forum: General
Topic: Strange RP filter behavior
Replies: 12
Views: 3268

Strange RP filter behavior

I've been testing "mangling loopback" (known workaround for dstnat not available in output chain + no cDNS + no non-standard winbox port in Dude in ROS v6) configuration on a metarouter (as I wanted a config as generic as possible). Metarouter is running on RB2011, ROS 6.44.3. The config i...
by 611
Thu Apr 18, 2019 10:34 pm
Forum: General
Topic: NordVPN
Replies: 17
Views: 9651

Re: NordVPN

Nope to both (moreover, non-accelerated AES on OVPN will be slow). Since NordVPN has deprecated L2TP/IPsec in late 2018 (for some obscure reasons), ROS is no longer able to connect to NordVPN. I've replaced my CHR with OPNsense because of that, and currently using OVPN from it. Runs well, including ...
by 611
Sun Apr 14, 2019 5:52 pm
Forum: General
Topic: IPsec configuration storage(?) failure after upgrade (to 45beta19?) on RB3011
Replies: 0
Views: 1033

IPsec configuration storage(?) failure after upgrade (to 45beta19?) on RB3011

I'm running beta branch of v6 ROS on RB3011 (and other arm and mipsbe routers, on which I haven't observed the following failure). After an upgrade (I assume to 45beta19, but I'm not sure) a couple of weeks ago all IKE2 links went down, and I was unable to establish L2TP/IPsec connection to router (...
by 611
Thu Oct 18, 2018 9:27 am
Forum: General
Topic: RB3011 Switch VLAN Access Port Issue
Replies: 7
Views: 2269

Re: RB3011 Switch VLAN Access Port Issue

I've done some further testing - modified firewall rules to catch all packets fallen off the VLAN to the master bridge. Total seepage is about 0.1% of all packets. The good news - I've been unable to reproduce the issue in a controlled environment like this: The testbed: [MT, 10.50.0.2>] <-Ether-> [...
by 611
Wed Oct 17, 2018 11:08 am
Forum: General
Topic: RB3011 Switch VLAN Access Port Issue
Replies: 7
Views: 2269

Re: RB3011 Switch VLAN Access Port Issue

Looks like I have the same or related issue with RB3011: some packets are seemingly coming untagged from an access port, this results in input from the master bridge instead of configured VLAN. I have switch and interface setup as described in https://wiki.mikrotik.com/wiki/Manual:Basic_VLAN_switchi...