Community discussions

MikroTik App

Search found 47 matches

by dke
Thu Aug 10, 2023 5:33 pm
Forum: Beginner Basics
Topic: Forwarding a packet to different destination on bridge
Replies: 1
Views: 941

Forwarding a packet to different destination on bridge

Hey, sorry for this beginner question. All happens on a bridged interface. A NTP request (123/UDP) is sent from 192.168.199.33 (wlan2) to 192.168.199.1 (eth). However, I want to have the packet forwarded to 192.168.199.2 (eth). I have a very similar dst-nat rule that works if I am sending the reques...
by dke
Wed Mar 01, 2023 11:10 am
Forum: General
Topic: OID for specific interface
Replies: 2
Views: 3250

OID for specific interface

Hi, I want to query the OID for wlan2 MAC address on my hAP ac. While I am able to use both /interface/print oid and SnmpWalk.exe to identify the OID for a specific device/configuration, the OID for wlan2 is not identical for different hAP acs (and I believe for different configurations). Is there a...
by dke
Fri Dec 16, 2022 6:01 pm
Forum: General
Topic: Failover to reach client - IPs (wired / wireless) vs Hostname
Replies: 2
Views: 359

Re: Failover to reach client - IPs (wired / wireless) vs Hostname

Thank you mkx. I was hoping for a solution in ROS. I meanwhile also tried the Bridging functionality of network adapters in Windows 10, but it is totally unreliable for fast switching. It seems that a scheduled task that does periodic ICMP checks and modifies the Windows hosts file dynamically is no...
by dke
Wed Dec 14, 2022 6:20 pm
Forum: General
Topic: Failover to reach client - IPs (wired / wireless) vs Hostname
Replies: 2
Views: 359

Failover to reach client - IPs (wired / wireless) vs Hostname

Hi, probably many solutions for this topic but I did not find a satisfying one. I have a Windows client in network that may be connected wired (199.10) or wireless (199.11). That state is changing dynamically (mobile device), i.e. is wireless, then once plugged it should prefer wired connection (lik...
by dke
Thu Nov 17, 2022 10:30 pm
Forum: General
Topic: Link with multiple subnets [SOLVED]
Replies: 7
Views: 1994

Re: Link with multiple subnets [SOLVED]

Thank you sindy for this input. If 192.168.197.10 has no gateway configured, it cannot actively connect anywhere outside its subnet unless it connecs to devices in the same subnet that use port forwarding to deliver the request to the actual destination; it can only accept incoming connections from ...
by dke
Thu Nov 17, 2022 9:33 pm
Forum: General
Topic: Link with multiple subnets [SOLVED]
Replies: 7
Views: 1994

Re: Link with multiple subnets [SOLVED]

If it is sufficient that devices using a given subnet are only connected to one of the routers (let's say router 2) Unfortunately, both setups have to work with a single configuration. If you need that some devices that use a given subnet are connected to Router 1 and some other devices using the s...
by dke
Thu Nov 17, 2022 10:06 am
Forum: General
Topic: Link with multiple subnets [SOLVED]
Replies: 7
Views: 1994

Re: Link with multiple subnets [SOLVED]

Thank you for the hint sindy (also thanks to rextended for digging into), this is in fact what I was looking for. Quote from IP/Route docs: If there are several routes that apply to a particular IP address, the most specific one (with largest netmask) is used. This operation (finding the most specif...
by dke
Wed Nov 16, 2022 5:19 pm
Forum: General
Topic: Link with multiple subnets [SOLVED]
Replies: 7
Views: 1994

Link with multiple subnets [SOLVED]

Hi all, First, I know this is an unusual setup, sorry for this. In the base configuration (Router 1), I have one Ethernet port and wlan2 on a bridge. Two further Ethernet ports in different subnets. So the Router 1 addresses are 192.168.197.1 (subnet 2), .198.1 (subnet 3), .199.1 (bridge). https://i...
by dke
Thu Sep 08, 2022 5:51 pm
Forum: General
Topic: disconnected, received deauth: unspecified (1)
Replies: 3
Views: 5118

Re: disconnected, received deauth: unspecified (1)

I meanwhile bought the metageek Wi-Spy DBx set with Chanalyzer software. The network adapter seems to struggle once there is load in the respective frequency range. I find this behavior quite odd and still wonder if there is something I can do against (except waiting for a proper adapter firmware or...
by dke
Thu Sep 08, 2022 5:46 pm
Forum: Scripting
Topic: Differentiate between RouterOS v6.x and v7.x
Replies: 7
Views: 5756

Re: Differentiate between RouterOS v6.x and v7.x

You probably need something like this: :do {[:parse "/system ntp client set enabled=yes primary-ntp=192.168.144.210"]} on-error={} Working, thank you very much! Complete, corrected script: :global versionStr [/system resource get version] :if ([:pick $versionStr 0] < 7) do={ :do {[:parse ...
by dke
Mon Aug 22, 2022 2:15 pm
Forum: Scripting
Topic: Differentiate between RouterOS v6.x and v7.x
Replies: 7
Views: 5756

Differentiate between RouterOS v6.x and v7.x

Hi, is there a proper way to differentiate between RouterOS v6.x and v7.x in a configuration script? I tried /system resource :global versionStr [get value-name=version] :if ([:pick $versionStr 0] < 7) do={ /log info "Found RouterOS v6.x." /system ntp client set enabled=yes primary-ntp=192...
by dke
Tue Aug 16, 2022 9:29 am
Forum: General
Topic: disconnected, received deauth: unspecified (1)
Replies: 3
Views: 5118

Re: disconnected, received deauth: unspecified (1)

Is there anything you can recommend to debug these disconnects? My wlan2 configuration: set [ find default-name=wlan2 ] antenna-gain=2 band=5ghz-onlyac country="austria" disabled=no frequency=5180 frequency-mode=regulatory-domain installation=indoor mode=ap-bridge ssid="mySSID" w...
by dke
Fri Aug 12, 2022 3:05 pm
Forum: General
Topic: Feature request: Make Quickset to be separate package
Replies: 78
Views: 20347

Re: Feature request: Make Quickset to be separate package

place a file inside skins or flash/skins (depend if you have flash memory or not) called default.json and the file must have this contents: { 'Quick Set': 0 } For see the differencies you must logout and login again. Thank you rextended, I missed this one. Do have additional documentation on the co...
by dke
Fri Aug 12, 2022 11:31 am
Forum: General
Topic: Feature request: Make Quickset to be separate package
Replies: 78
Views: 20347

Re: Feature request: Make Quickset to be separate package

Another year passed. Any updates on this?
by dke
Fri Aug 12, 2022 10:24 am
Forum: General
Topic: disconnected, received deauth: unspecified (1)
Replies: 3
Views: 5118

disconnected, received deauth: unspecified (1)

Hi all, we got Surface Pro 7+ tablets with Intel AX201 adapter and face frequent short disconnects to the hAP ac AP (exclusive client in network). As we have this setup (one AP for one tablet) multiple times, the issue is systematic. The disconnects happen on all recent AX201 drivers as well as Rout...
by dke
Wed Nov 17, 2021 2:23 pm
Forum: General
Topic: Windows 10 will not sync to RouterOS NTP server for some time?
Replies: 1
Views: 2244

Windows 10 will not sync to RouterOS NTP server for some time?

Hi, once I setup a NTP server on a hAP ac (tried v6.49 with ntp package and v7.1rc6), Windows Time Service (Windows 10 21H1) does not sync and throws an error, in UI and in cmd line with w32tm /resync. This persists also after restart of router and client. A call with w32tm however works immediately...
by dke
Thu Jan 14, 2021 8:52 pm
Forum: Beginner Basics
Topic: Bridge NAT Port Forwarding
Replies: 6
Views: 7693

Re: Bridge NAT Port Forwarding

The reason I haven't seen the to-ports parameter is that I had "accept" as action - I assume dst-nat is required for chain & action? I looked into the connections and found this temporary entry: 7 C d protocol=tcp src-address=192.168.144.58:54806 dst-address=192.168.144.6:60006 reply-s...
by dke
Thu Jan 14, 2021 7:16 pm
Forum: Beginner Basics
Topic: Bridge NAT Port Forwarding
Replies: 6
Views: 7693

Re: Bridge NAT Port Forwarding

Thank you very much for pointing to to-ports , I misinterpreted the "dst"-part - that's what I have been looking for. Unfortunately the NAT is not working as I wish. In my test case, I have two iperf servers running on port 60001 and 60002. If the traffic comes from ether2, I'd like to use...
by dke
Thu Jan 14, 2021 3:59 pm
Forum: Beginner Basics
Topic: Bridge NAT Port Forwarding
Replies: 6
Views: 7693

Re: Bridge NAT Port Forwarding

The traffic is passing through the bridge to another port. I have set the bridge to use-ip-firewall=yes and used the in-bridge-port=ether2 selector: chain=dstnat action=accept protocol=tcp in-bridge-port=ether2 src-port=60006 dst-port=60001 log=no log-prefix="" Is there a minimum set of se...
by dke
Thu Jan 14, 2021 2:04 pm
Forum: Beginner Basics
Topic: Bridge NAT Port Forwarding
Replies: 6
Views: 7693

Bridge NAT Port Forwarding

I'm trying to do a dstNAT based on the physical port on the router (in-interface), whereas the respective ports are bridged. /interface bridge nat add chain=dstnat in-interface=ether1 src-port=60006 dst-port=60001 ip-protocol=tcp mac-protocol=ip /interface bridge nat add chain=dstnat in-interface=et...
by dke
Sun Nov 15, 2020 8:48 am
Forum: SwOS
Topic: Dump SwOS web content
Replies: 0
Views: 3541

Dump SwOS web content

Hi, I understand there is no telnet or ssh interface to SwOS. How can I grab/dump the website content (specifically interested in link status and speed of index.html)? Tried curl -o test.html --user admin https://<switch-ip>/index.html but I get the gzip compressed "Loading ..." page. Than...
by dke
Thu Sep 24, 2020 4:44 pm
Forum: General
Topic: Change Request DHCP Client: Assign Dynamic Route to Interface
Replies: 3
Views: 1325

Re: Change Request DHCP Client: Assign Dynamic Route to Interface

I understand it's not common for routers but only for notebooks. We are implementing MikroTik devices in a mobile medical product that is occasionally wired with LAN - that's why I'd need that specific behavior. The %<interface> gateway is in fact working, but I had the issue that after some time wl...
by dke
Thu Sep 24, 2020 9:41 am
Forum: General
Topic: Change Request DHCP Client: Assign Dynamic Route to Interface
Replies: 3
Views: 1325

Re: Change Request DHCP Client: Assign Dynamic Route to Interface

Obviously not so much response to that change request - maybe because I oversaw something? Why is it apparently non-trivial to have that "common" functionality as known from Windows/Unix? These routes as described above worked at beginning but RouterOS started to get confused again and par...
by dke
Tue Sep 22, 2020 10:03 am
Forum: General
Topic: Ripple20 - Treck stack vulnerabilities
Replies: 6
Views: 2329

Re: Ripple20 - Treck stack vulnerabilities

Thank you very much for this information. Not that I would not believe, but do you have any more insights (e.g. the scripts to test, a report or something similar)?
by dke
Tue Sep 22, 2020 9:26 am
Forum: General
Topic: Ripple20 - Treck stack vulnerabilities
Replies: 6
Views: 2329

Re: Ripple20 - Treck stack vulnerabilities

Any updates on this topic?
by dke
Wed Sep 02, 2020 9:50 am
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

Yes, certainly I tried this (see initial post), but RouterOS seems to be confused by the same gateway IP address. I guess I found Chupakas Tutorial on Routing Failover you mentioned, but I doubt that this will work with the same gateway as the same problem persists. I finally found a configuration t...
by dke
Wed Sep 02, 2020 9:48 am
Forum: General
Topic: Change Request DHCP Client: Assign Dynamic Route to Interface
Replies: 3
Views: 1325

Change Request DHCP Client: Assign Dynamic Route to Interface

I was struggling in this thread to configure a quite common behavior: Have WAN on two interfaces pointing to same router/gateway, prefer ether1 over wlan1. This is the default behavior for all common desktop operating systems (e.g. Windows 10): When I'm connected to WiFi and plug an Ethernet cable, ...
by dke
Tue Sep 01, 2020 5:09 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

PS: Which ROS are you on? hAP ac v6.47.2 Have you removed all the "bonding" you mentioned earlier? Yes You must have two GW uplinks (one on ETH1 and one on WLAN). With two different GW IP? No, it's the same router, same gateway. The use case is that I do not always have the possibility to...
by dke
Tue Sep 01, 2020 12:57 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

If you have DHCP client with add dynamic route it on ETH1 and you unplug the cable it should not be reachable. It is remains on reachable as not recognized automatically. Only once I do a manual Release/Renew it is no longer reachable via ether1. Have you put anither fixed address on ETH1? No. My c...
by dke
Tue Sep 01, 2020 11:47 am
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

Use your DHCP client on ETH1 with "add default route" checked. and on your DHCP client on WLAN uncheck the default route. In IP/Route add one route for 0.0.0.0 with distance "20" that goes towards your WLAN interface... This one will not be active until you DISCONNECT the ETH1 e...
by dke
Mon Aug 31, 2020 12:58 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

Is there more info/config you need? Or do you guys suggest to create a new topic?
Any suggestions very welcome.
by dke
Fri Aug 28, 2020 10:12 am
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

Hi, I'm not sure what happened but my failover WAN (via wlan1) isn't working anymore. I have a failover WAN bonding interface with active-backup and mii monitoring: /interface bonding add name=bond_wan slaves=ether1,wlan1 primary=ether1 mode=active-backup The router gets IP and Gateway via DHCP, but...
by dke
Tue Jul 14, 2020 1:03 pm
Forum: SwOS
Topic: Can't update/upgrade RB260GSP CSS106-1G-4P-1S
Replies: 1
Views: 3862

Re: Can't update/upgrade RB260GSP CSS106-1G-4P-1S

Not sure what happened but after another restart I am on v2.11.
by dke
Tue Jul 14, 2020 12:47 pm
Forum: SwOS
Topic: Can't update/upgrade RB260GSP CSS106-1G-4P-1S
Replies: 1
Views: 3862

Can't update/upgrade RB260GSP CSS106-1G-4P-1S

Hi, I have several RB260GSP here and for this one I am not able to upgrade it. Few months ago I was able to upgrade to v2.10, now wanted to upgrade to v2.11. When clicking on "Download & Upgrade" it says shortly "Upgrading... (Please do not interrupt)", then "Rebooting.....
by dke
Sun Jun 28, 2020 1:09 am
Forum: Scripting
Topic: Feature request: tool/fetch new property - no-log
Replies: 17
Views: 9448

Re: Feature request: tool/fetch new property - no-log

+1 for the request
by dke
Wed Jun 10, 2020 1:39 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

The duration of fail-over is not of importance for our application.
I did a quick non-formal test and the outage was approx 4.5 seconds for each of both directions (i.e. master->slave, plugging of ethernet cable, and slave->master, plugging back ethernet cable).
Thanks again!
by dke
Wed Jun 10, 2020 11:11 am
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

in the meantime, I think a simple bounding would definitely work Thank you very much solar77! This is exactly what I was looking for. No custom routes, just a redundancy, perfect :-) At first I was a bit frustrated because it did not work, but a router reboot solved it. What I did: Added both inter...
by dke
Mon Jun 08, 2020 11:59 am
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

So they are connecting to the same router for Internet access ? I assume you want some redundancy if ether1 fails. Exactly. but first try not use add default route in DHCP client, add static route yourself and use the interface as gateway, instead of an IP address. I am not sure if this is going to...
by dke
Fri Jun 05, 2020 7:49 am
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

I think, with distance on ether1 set to 1 and distance on wlan1 set to 2, as long as ether1 is running, Mikrotik will route all traffic through ether1. this is what you want yes? Yes, exactly. But this is not what the router does :( With distance you are referring to the default-route-distance in I...
by dke
Thu Jun 04, 2020 6:38 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

metric?
Not sure what you mean with metric? I just see a "Distance" in the IP > Routes that is read-only, presumably because of the dynamic route?
by dke
Thu Jun 04, 2020 5:54 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

Thanks for digging in but I think there is still a misunderstanding. I have an Ethernet cable plugged to ether1 and an active WiFi connection at wlan1 interface. Both are connected to the internetz and configured as WAN. Now I want to have the route to 0.0.0.0/0 via ether1 interface active (as it is...
by dke
Thu Jun 04, 2020 3:15 pm
Forum: Beginner Basics
Topic: reset-configuration with run-after-reset not working
Replies: 15
Views: 21850

Re: reset-configuration with run-after-reset not working

It is important to note that for certain devices, the configuration has to be placed inside the flash\ folder. Warning: If the device has a folder named "flash", then the confscript.rsc file must be stored in that folder to work with "run-after-reset" command. Everything outside ...
by dke
Thu Jun 04, 2020 2:41 pm
Forum: Scripting
Topic: Script input from console ... works!
Replies: 9
Views: 8778

Re: Script input from console ... works!

This does not work for me in v6.47. I'm not getting prompted for input and this is printed then:
Login is [] and password is []
Is there a working user input in v6.47? I also did not succeed with viewtopic.php?t=87744.
by dke
Thu Jun 04, 2020 2:37 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Re: Redundant WAN, Prefer ether1 over wlan1

Yes, also the DAS (Dynamic Active Static) indicates this. But how can I enforce the ether1 route to be the active one?
by dke
Thu Jun 04, 2020 7:55 am
Forum: Scripting
Topic: Scripting - Asking user for input.
Replies: 14
Views: 13933

Re: Scripting - Asking user for input.

You need to :put $userinput, not :put $read :)
:put $userinput
is also empty for me after asked for a value (v6.47).
by dke
Tue Jun 02, 2020 5:11 pm
Forum: Beginner Basics
Topic: Redundant WAN, Prefer ether1 over wlan1
Replies: 25
Views: 6388

Redundant WAN, Prefer ether1 over wlan1

Given two redundant WAN on ether1 and wlan1, I'd like to have ether1 route preferred over wlan1, in case both are available. Current setup has two DHCP clients with two separate IP addresses. I tried a lower "Default Route Distance" for ether1 in its DHCP Client > Advanced options, but IP ...
by dke
Thu Jan 16, 2020 12:44 pm
Forum: SwOS
Topic: RB260GSP - Activate DHCP server
Replies: 4
Views: 6963

Re: RB260GSP - Activate DHCP server

... (more over, it does not have DHCP client either). Refer to the following page for more info: http://wiki.mikrotik.com/wiki/SwOS That it is not true. The RB260GSP is a smart switch and has a DHCP client (no server though), see https://wiki.mikrotik.com/wiki/SwOS/CSS106#System Address Acquisition...