Community discussions

MikroTik App

Search found 32 matches

by LaZyLion
Thu Dec 21, 2023 8:38 pm
Forum: General
Topic: SNMP Number of DHCP lease used in pool
Replies: 11
Views: 7592

Re: SNMP Number of DHCP lease used in pool

This is great. Thank you all. Total number of leases is sufficient for my purposes, though I can certainly see a use case for getting the totals of each pool (and count of pools) if the RouterOS devs are ever bored (unlikely). Next question: Is there a way to get a count of "available" dhc...
by LaZyLion
Tue Oct 17, 2023 11:27 pm
Forum: Scripting
Topic: Schedule Reboot
Replies: 4
Views: 17600

Re: Schedule Reboot

The following will disable itself and reboot your router at 3am.


/system scheduler add name=reboot start-time=03:00:00 on-event="{/system scheduler set [find name=reboot] disabled=yes;\n\
:execute script=\"/system reboot\";}"

re-enable as needed.
Tested on v7.11.2
by LaZyLion
Thu Aug 24, 2023 6:04 pm
Forum: General
Topic: masquerade or src-nat to-addresses ??
Replies: 10
Views: 107237

Re: masquerade or src-nat to-addresses ??

What is the disadvantage to using masquerade over src-nat if you have a static?
by LaZyLion
Mon Aug 21, 2023 9:02 pm
Forum: RouterOS beta
Topic: New Back to home feature testing [SOLVED]
Replies: 44
Views: 9864

Re: New Back to home feature testing [SOLVED]

In addition to having RouterOS as the vpn server, could we all use Mikrotiks as the vpn clients? Is there a limitation to how many clients one could setup with this? Having a public IP on the server isn't an issue for us, but I like the simplicity of Zerotier for setup and management. I would love t...
by LaZyLion
Wed Jul 05, 2023 8:49 pm
Forum: General
Topic: Feature request for v7.x
Replies: 296
Views: 106614

Re: Feature request for v7.x

Hi all The Zerotier client allows adding static routes but only to the main routing table. It would be nice to specify a different routing table on the Zerotier interface tab. This would make handling marked routing-table traffic much easier as one could update routes en-mass from the Zerotier porta...
by LaZyLion
Thu Jun 22, 2023 6:32 pm
Forum: Scripting
Topic: "Firmware upgraded successfully..." from script
Replies: 12
Views: 7229

Re: "Firmware upgraded successfully..." from script

Not OP but I'll add on to this. Not everybody uses their routers the same way so it doesn't really matter what the point of doing it is. The point is to learn how to do it. In my case I'm going to have a lot of these routers in the field and I don't want to have to log into each of them individually...
by LaZyLion
Wed Apr 05, 2023 10:19 pm
Forum: Scripting
Topic: Fill variable with value from interface/lte/cellular/Access Technology ... possible ?
Replies: 7
Views: 2874

Re: Fill variable with value from interface/lte/cellular/Access Technology ... possible ?

Thank you Sib! This had been driving me crazy for over an hour. For future me googling: interface/lte/monitor lte1 once will get you the list of available item names (called keys) and values. To extract a specific key: :put ([interface/lte/monitor lte1 once as-value ]->"imei") or :local lt...
by LaZyLion
Thu Feb 09, 2023 7:07 pm
Forum: General
Topic: IEEE 802.3ah/IEEE 802.3ag
Replies: 22
Views: 12107

Re: IEEE 802.3ah/IEEE 802.3ag

We have spent an incredible amount of money on Ciena switches for OAM and have to add Edgerouters or Vyos instances for routing.
RouterOS handles QinQ well enough, but if it had OAM features it would greatly simplify our lives.
by LaZyLion
Wed Feb 01, 2023 2:36 am
Forum: General
Topic: Changing a user's password via terminal
Replies: 12
Views: 88532

Re: Changing a user's password via terminal

Is there a way to mask a password in a script? Instead of /user set admin password=bla-bla you'd use /user set admin password-md5=f56e8aca4cdfaefba307865a179e28a7 Field techs can have user-level passwords, but I'd like to at least pretend I'm protecting my admin passwords from curious Georges.
by LaZyLion
Thu Jul 20, 2017 8:02 pm
Forum: Scripting
Topic: tx-bytes rx-bytes have spaces and are unusable. Please help (edited and added more info)
Replies: 7
Views: 4487

Re: tx-bytes rx-bytes have spaces and are unusable. Please help (edited and added more info)

I'm having this issue as well. I'm using 6.39.2 The manual clearly states these numbers should be returned as integers: https://wiki.mikrotik.com/wiki/Manual:Interface but :put [:typeof [/interface ethernet get ether1 rx-bytes]] shows that an array is being returned. The spaces make this extra unhel...
by LaZyLion
Sun Jul 16, 2017 8:21 pm
Forum: Scripting
Topic: POST Request with fetch
Replies: 83
Views: 117504

Re: POST Request with fetch

Hi all This new post feature is great for me. It adds an extra layer of security and peace of mind when transmitting sensitive information like wifi passwords. I have a script that all my routers run to check in with my php server. It started as a dyndns client but has evolved into so much more. Her...
by LaZyLion
Sun Mar 05, 2017 8:42 am
Forum: Wireless Networking
Topic: how to tell if b g or n
Replies: 0
Views: 704

how to tell if b g or n

Hi all

Sorry it this has been asked before but google failed me.


How do I determine if a wireless interface is doing b or g or n.

I know I can disable B by changing the Band setting, but I'd like to be able to
determine is an interface is being dragged down by a client.


Thanks all.

LL
by LaZyLion
Sun Jan 08, 2017 1:01 am
Forum: Scripting
Topic: A function for url encoding
Replies: 2
Views: 4493

A function for url encoding

Hi all, I got to playing around with functions and came up with a way to url encode text. I regularly use /tool fetch to send information to a php script on my web server. I run my own homemade DYDNS variant and it helps to have the information properly encoded so it arrives intact. The code: Create...
by LaZyLion
Sun Jul 31, 2016 10:16 pm
Forum: Wireless Networking
Topic: BIG BUG- Unicast key exchange timeout
Replies: 130
Views: 129444

Re: BIG BUG- Unicast key exchange timeout

Hi all I'm adding my two cents to the issue as well. This is now July 31 of 2016. Eight years of an ongoing issue! oh well. I'm using ROS 6.36 on all devices involved. Devices are in AP Bridge mode, same SSID, same AES WPA2 key All set up by script so no typo's. The devices connect and work great fo...
by LaZyLion
Mon Nov 09, 2015 9:44 pm
Forum: Beginner Basics
Topic: Question about srcnat
Replies: 3
Views: 1315

Re: Question about srcnat

I see. So the srcnat chain is not restricted to packets that are leaving the router via a wan port. Hence to need to specify the out-interface so that only packets leaving via wan get masked. Thank you. But could the same effect be had using: /ip firewall nat add chain=srcnat src-address-type=!local...
by LaZyLion
Thu Nov 05, 2015 5:22 am
Forum: Beginner Basics
Topic: Question about srcnat
Replies: 3
Views: 1315

Question about srcnat

Hi all, Ever since I started working with RouterOS, I've wondered why is it necessary to specify the "out-interface" in the srcnat firewall rule? /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade add chain=srcnat out-interface=ether2 action=masquerade add chain=srcna...
by LaZyLion
Mon Sep 21, 2015 12:19 am
Forum: General
Topic: A newbie Question about Masquerade
Replies: 3
Views: 1067

A newbie Question about Masquerade

Hi all In all the configuration examples I've seen, and even in the default configuration, I see this: /ip firewall nat add action=masquerade chain=srcnat out-interface=ether1 In a multi-wan setup, there is such an entry for each wan. I've always wondered, why is it necessary to specify the "ou...
by LaZyLion
Wed Sep 09, 2015 3:26 pm
Forum: General
Topic: ECMP vs NTH vs PCC
Replies: 12
Views: 26695

Re: ECMP vs NTH vs PCC

For anyone like me who has been doing endless googling and finding lots of examples that lack decent explanations, here is how I understand load balancing; nth vs pcc. This assumes you read examples like https://aacable.wordpress.com/2011/08/29/mikrotik-4-wan-load-balancing-using-pcc-with-pppoe-serv...
by LaZyLion
Wed Sep 09, 2015 10:35 am
Forum: General
Topic: matching traffic from the router itself in mangle
Replies: 8
Views: 4132

matching traffic from the router itself in mangle

Hi all I'm playing with load balancing using pcc firewall rules in mangle and I've noticed that when I do a ping, tool fetch, or any other traffic from the console, it doesn't get matched to any of my mangle rules. I just tried and I can't get of the chains in mangle to trap router initiated traffic...
by LaZyLion
Fri Mar 20, 2015 8:02 pm
Forum: General
Topic: How to Block torrent 100%? Only 2 lines. It is solved.
Replies: 59
Views: 112220

Re: How to Block torrent 100%? Only 2 lines. It is solved.

can someone help me, why i get the error "expected end of command (line 1 column 19)" in terminal when i right click to paste the command bellow. "p"r=udp is highlighted a ac=d ch=forward in-i=ether2-master-local pr=udp cont="d1:ad2:id20:" dst-p=1025-65535 packet-s=95-...
by LaZyLion
Sun Mar 08, 2015 9:14 am
Forum: Announcements
Topic: RouterOS v6.27 released
Replies: 273
Views: 133991

Re: RouterOS v6.27 released

Strods LaZyLion - We fixed print function for "/system package update" in latest 6.28rcX versions. Now something like this might work for you: { /system package update check-for-updates once delay 5 :put [/system package update get latest-version ] } First function will force RouterOS to c...
by LaZyLion
Fri Feb 27, 2015 11:43 pm
Forum: Announcements
Topic: RouterOS v6.27 released
Replies: 273
Views: 133991

Re: RouterOS v6.27 released

LaZyLion - Since 6.27 "/system package update check-for-updates" is dynamic and gives output to console. That has caused changes. You can use command like this: :put ([/system package update check-for-updates once as-value ] -> "current-version") Great, that gives me the current...
by LaZyLion
Wed Feb 18, 2015 12:51 am
Forum: Announcements
Topic: RouterOS v6.27 released
Replies: 273
Views: 133991

Re: RouterOS v6.27 released

RouterOS auto upgrade script is broken, there is no more "current-version" and "latest-version" properties in "/system package update". I would like to re-iterate this issue. In 6.26 we get: [user@myrouter] /system package update> :put [get current-version ] 6.26 But i...
by LaZyLion
Wed Sep 10, 2014 11:09 pm
Forum: General
Topic: DHCP Server - Block Access
Replies: 1
Views: 7992

DHCP Server - Block Access

Hi all I'm looking for a little clarification on something: If I go into ip/dhcp-server/leases and make an entry static, an option appears to "block access" for that users mac address. If i am understanding correctly, this will prevent the user from renewing or getting an ip when their lea...
by LaZyLion
Wed Aug 06, 2014 1:41 am
Forum: General
Topic: v6.18
Replies: 109
Views: 40913

Re: v6.18

Hi, I'm interested in this also. I tried to put "cz.pool.ntp.org" in WebFig into NTP Client settings, but it doesn't accept that value. What is feature "*) sntp client - added support for dns lookup of ntp servers;" for? Roman I see the following in change log: *) sntp client - ...
by LaZyLion
Sun Aug 03, 2014 2:58 am
Forum: General
Topic: v6.18
Replies: 109
Views: 40913

Re: v6.18

I see the following in change log: *) sntp client - added support for dns lookup of ntp servers; Does that mean I can put "pool.ntp.org" into Primary Server? /system ntp client set primary-ntp="pool.ntp.org" invalid value for argument primary-ntp: invalid value for argument ip-ad...
by LaZyLion
Wed Jul 23, 2014 7:08 pm
Forum: General
Topic: Strange behavior
Replies: 1
Views: 1064

Re: Strange behavior

Update. I'm Running 6.17 now. The interface is still being changed by Quickset to Ether2. I use a few different ip addresses on my bridge and it seems to only change the most recently added. I'm tempted to use a dummy ip address but this could issues since I use Ether2 as a Wan port. The last added ...
by LaZyLion
Tue Jul 22, 2014 8:33 pm
Forum: Beginner Basics
Topic: Quick Set: AP Mode
Replies: 7
Views: 4012

Re: Quick Set: AP Mode

There is a bug in Quickset. When you hit Apply it changes the interface for lan ip from bridge-local to ether2. If you are not connected to ether2, or ether2 is not part of the bridge, you will not be able to reach it. This may be what is happening to you. To check this, use a serial cable to see wh...
by LaZyLion
Wed May 14, 2014 5:31 am
Forum: General
Topic: Failover based on bandwidth not on route gateway ping
Replies: 12
Views: 3982

Re: Failover based on bandwidth not on route gateway ping

I have a similar setup in I have two wan connections that I want to failover with. The first is very reliable and very stable, but slow, and expensive to use if you exceed the low data cap. The second is much much cheaper to use, much much faster, but stable as a wind vane. We do not want load balan...
by LaZyLion
Wed May 14, 2014 5:07 am
Forum: Beginner Basics
Topic: How to export dhcp static entires
Replies: 2
Views: 8069

Re: How to export dhcp static entires

Is their old router also a Mikrotik or RouterOS? If so, Log in via SSH using putty. (You can also use serial or telnet.) At the comment prompt type: /export file=settings You can then use ftp, or scp, or Webfig/Files to a file called "settings.rsc". You can edit this file in notepad. Hope ...
by LaZyLion
Wed May 14, 2014 5:02 am
Forum: Beginner Basics
Topic: Need help w/ new RBS2011
Replies: 5
Views: 1610

Re: Need help w/ new RBS2011

Perhaps you are in Safe mode?
by LaZyLion
Fri May 09, 2014 10:45 am
Forum: General
Topic: Strange behavior
Replies: 1
Views: 1064

Strange behavior

Hi all. I have a brand new RB2011 with the latest 6.12 with a strange quirk. To re-create it: Do a factory reset on the router. Access the router via WinBox or Webfig. View IP Addresses and see that 192.168.88.1 is assigned to interface Bridge-Local. Now open QuickSet in either Winbox or Webfig. Cha...