Community discussions

MikroTik App

Search found 3022 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 11
by Jotne
Thu May 26, 2022 11:56 pm
Forum: Scripting
Topic: Netwatch style script
Replies: 22
Views: 10518

Re: Netwatch style script

i made a script that do log up/down message using netwatch, that can be used to monitor various thing. Eks WireGuard.
viewtopic.php?p=888800#p888800
by Jotne
Thu May 26, 2022 11:33 pm
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

Likely the problem is that a complete overhaul of the logging system would make some people (who have invested time in handling the mess as it is) angry...
One of them is me, since I have to rewrite the Splunk Mikrotik logging.
But its worth it.
by Jotne
Thu May 26, 2022 9:22 pm
Forum: General
Topic: Mikrotik - assign same wireless to two bridges
Replies: 7
Views: 288

Re: Mikrotik - assign same wireless to two bridges

You could also use one Bridge with multiple VLAN instead if multiple Bridges.
by Jotne
Thu May 26, 2022 9:14 pm
Forum: General
Topic: Is there any way to hide the RED comment?
Replies: 34
Views: 1433

Re: Is there any way to hide the RED comment?

Sure, but I agree with OP that it doesn't seem very professional with screens full of red warnings that every connection is unsafe.
Are you logged inn to your router (winbox/web) and have the log window open all time?
I would say that Winbox/web are for configuration and searching for problems.
by Jotne
Thu May 26, 2022 9:08 pm
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

ppp,error,critical: 217.67.*.*: Encryption got out of sync - disabling At what severity level is this message? Error or Critical From Syslog Severity level https://en.wikipedia.org/wiki/Syslog 0 Emergency 1 Alert 2 Critical 3 Error 4 Warning 5 Notice 6 Informational 7 Debug Please Mikrotik fix the ...
by Jotne
Tue May 24, 2022 7:57 am
Forum: General
Topic: Are there any limitation in number of interface lists ?
Replies: 9
Views: 338

Re: Are there any limitation in number of interface lists ?

Is this some you have in production, or some you like to setup? Can you post the config?
by Jotne
Tue May 24, 2022 12:14 am
Forum: General
Topic: Are there any limitation in number of interface lists ?
Replies: 9
Views: 338

Re: Are there any limitation in number of interface lists ?

PS no need to make two post about the same. You can do many quote in one post.

Still does not understand what is your goal is. Is the some in production, or just for test?
Make a design drawing.
by Jotne
Mon May 23, 2022 9:56 pm
Forum: General
Topic: Are there any limitation in number of interface lists ?
Replies: 9
Views: 338

Re: Are there any limitation in number of interface lists ?

How many interfaces do you have since you need more than 200 interface lists?
by Jotne
Mon May 23, 2022 2:30 pm
Forum: General
Topic: Feature Request: Disable log from logging by the specified service
Replies: 7
Views: 234

Re: Feature Request: Disable log from logging by the specified service

You must still be misreading the issue, as issues presented here is not about your personal problems and solutions, rather errors and flaws in the RouterOS implementation. 1. OP han not replayed back saying anything about what is wrong and what is correct. 2. From the title " Feature Request &...
by Jotne
Mon May 23, 2022 10:45 am
Forum: General
Topic: Feature Request: Disable log from logging by the specified service
Replies: 7
Views: 234

Re: Feature Request: Disable log from logging by the specified service

When API logs inn, there will be written some to the logs. Internal logs has a limit, so it will be filled up by repeating stuff. Example on my router. log.png This does not give any problem for me, since I do send all logs to an external syslog/splunk server. There I can filter out what I do like t...
by Jotne
Mon May 23, 2022 8:06 am
Forum: Scripting
Topic: flushing firewall connections on a specific interface?
Replies: 2
Views: 116

Re: flushing firewall connections on a specific interface?

Have you tried:
/ip firewall connection remove [find where dst-address~"your_public_ip_on_interface_xxx"]
Here you can specify what outside IP you like the connection be cleared for.
by Jotne
Sun May 22, 2022 8:23 am
Forum: Scripting
Topic: Automate Script [SOLVED]
Replies: 12
Views: 472

Re: Automate Script [SOLVED]

This scripts will write a file every minute to the flash drive. Would that shorten the flash life? I would suggest you do monitor the router using an external program like splunk. Here you can see many routers uptime and when they restarted. This is my garage router. You can see uptime for 17 days a...
by Jotne
Sun May 22, 2022 7:57 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

I am getting the voltage this way. /system health :put [get [find where name=voltage] value] Its more inline with the rest of my scripting. After som testing, it seems that value-name are not needed if you specify what you need after the data id. Differences: This works :put [get [find where name=vo...
by Jotne
Sun May 22, 2022 7:50 am
Forum: Announcements
Topic: v6.49.6 [stable] is released!
Replies: 61
Views: 24158

Re: v6.49.6 [stable] is released!

And in English that would be? Using google translate hello friends of the group, has it happened to someone that they have updated a RouterBOARD 750G r3 to version 6.49.6 and it stops saving configurations, that is, when it is turned off or restarted, it returns the last changes after the update. so...
by Jotne
Fri May 20, 2022 11:40 am
Forum: General
Topic: Feature Request: Disable log from logging by the specified service
Replies: 7
Views: 234

Re: Feature Request: Disable log from logging by the specified service

You can use an external log server. There you can easily filter out what you do not want.
by Jotne
Wed May 18, 2022 1:26 pm
Forum: General
Topic: Renaming files (request)
Replies: 1
Views: 105

Renaming files (request)

I was looking for ways to rename files on RouterOS. Why? I like to modify my backup script, so that it only sends backup/export files if file size are change. Testing for size is simple, so after backup is send, I will rename export to old_export file. Next run test size and if different send new ex...
by Jotne
Wed May 18, 2022 11:54 am
Forum: Scripting
Topic: renaming backups
Replies: 9
Views: 1777

Re: renaming backups

Are you doing that on the router it self?
by Jotne
Wed May 18, 2022 11:28 am
Forum: Scripting
Topic: renaming backups
Replies: 9
Views: 1777

Re: renaming backups

This way is better, more readable :)

I was looking for how to compare two files if possible, and only take new backup and send it if different from previous backup.
checksum if possible or size.
by Jotne
Wed May 18, 2022 10:20 am
Forum: Beginner Basics
Topic: converting .backup to plain text
Replies: 14
Views: 620

Re: converting .backup to plain text

This is why I always backup all my routers with both backup file and export config. But its interesting that there are programs to unpack the backup file, never seen that before. By converting the backup file, the OP my see why he can not reach or how to reach the router after backup file is restored.
by Jotne
Wed May 18, 2022 9:17 am
Forum: Scripting
Topic: renaming backups
Replies: 9
Views: 1777

Re: renaming backups

I do reply to this old post, since it may help other. Problem is that file name can not contain / So to get it to work, this character has to be removed or replaced to some like this { :local id [/system identity get name] :local time [/system clock get time] :local date [/system clock get date] :lo...
by Jotne
Wed May 18, 2022 8:51 am
Forum: Beginner Basics
Topic: Port Forwarding issue
Replies: 7
Views: 491

Re: Port Forwarding issue

Remove the router, setup a linux pc where you change ssh port from 22 to 1212. Connect it to your IPS and test it you can reach that from internet.
If yes, some is wrong with RouterOS config, if no, ISP problems.
by Jotne
Mon May 16, 2022 9:39 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

Then splunk does not see the file.
/opt/splunk/etc/system/local/inputs.conf
It can be a permission settings, if its there.
If I do run Splunk a non-root user, f.eks as a splunk user, I make sure all files under /opt/splunk has same rights.
by Jotne
Mon May 16, 2022 8:54 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

In folder (in linux)
/opt/splunk/bin
run
./splunk btool inputs list | grep udp
You should see:
[monitor:///data/syslog/udp/.../*.log]
[udp]
by Jotne
Mon May 16, 2022 8:17 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

Then you have skipped this part in rsyslog setup: To make Splunk read rsyslog data make this file: %SplunkHome%/etc/system/local/inputs.conf [monitor:///data/syslog/udp/.../*.log] sourcetype = rsyslog host_segment=4 [monitor:///data/syslog/tcp/.../*.log] sourcetype = rsyslog host_segment=4 NB Splunk...
by Jotne
Mon May 16, 2022 7:22 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

It seems that rsyslog data looks fine. But to get the firewall data in firewall dashboard correctly, you should name the rule as in section. 2c In splunk go to this setting: Settings->Data Input->Files & Directories Do you see a line starting with? /data/syslog/udp/.../*.log This command index=*...
by Jotne
Mon May 16, 2022 5:31 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

Whats inn those files? paste some lines. See section 3b Debuging

If syslog folder has data, it could be one of two.
Not using MikroTik tag (Capital M and capital T)
Splunk not reading data.

What do search for
index=*
give
by Jotne
Mon May 16, 2022 1:16 pm
Forum: Beginner Basics
Topic: Port Forwarding issue
Replies: 7
Views: 491

Re: Port Forwarding issue

Not an answer to your question, but [*] never open opp 8192 from internet to admin your router. You asking for problems. add action=accept chain=input dst-port=8291 protocol=tcp See this post: https://forum.mikrotik.com/viewtopic.php?p=870631#p870631 set winbox address=192.168.1.0/24 This helps some...
by Jotne
Mon May 16, 2022 9:56 am
Forum: Announcements
Topic: v7.3beta [testing] is released!
Replies: 323
Views: 55800

Re: v7.3beta [testing] is released!

100 email to support@mikrotik.com would be better.
by Jotne
Mon May 16, 2022 8:28 am
Forum: Scripting
Topic: MikroTik PCC and ECMP Load Balancing script Generator over Unequal multi WAN Links [SOLVED]
Replies: 17
Views: 888

Re: MikroTik PCC and ECMP Load Balancing script Generator over Unequal multi WAN Links [SOLVED]

You should never open Winbox directly from outside, your router will be hacked...
.
winbox.png
See this link:
viewtopic.php?p=870631#p870631
by Jotne
Mon May 16, 2022 8:22 am
Forum: General
Topic: Bandwidth usage per IP
Replies: 5
Views: 581

Re: Bandwidth usage per IP

5. Hot to read report?
can you do? http://your.router.ip/xxxx
by Jotne
Sun May 15, 2022 11:08 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

Updated section 1f, to make clear your can not use UDP/514 in Splunk if Splunk is not run as root. You then need external rsyslog server.
by Jotne
Sun May 15, 2022 7:03 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 &#1282

Ahh, If you use rsyslog, it uses UDP port 514, so you can not add it to Splunk. Only one app can use one given port. And since you need to be root to use port 514 (<1024), the app needs to run as root. And since its not recommended to run Splunk as root, I let rsyslog get the data by it listen to po...
by Jotne
Sun May 15, 2022 2:27 pm
Forum: General
Topic: USB over IP
Replies: 6
Views: 631

Re: USB over IP

Do you mean that you should connect an USB mouse and when you use the Mouse, it should move the cursor on a remote machine.
This is possible, but not with Mikrotik.
There are hardware that can do that or software that can be used to emulate USB.
by Jotne
Sun May 15, 2022 2:21 pm
Forum: General
Topic: Warning: CPU not running at default frequency.
Replies: 3
Views: 455

Re: Warning: CPU not running at default frequency.

All this is Ok.

First off, I do not remember that I did change the settings.
Second, since Router sees its not the default frequency, so why not just give info about what is correct.
Should not be needed to lookup each devices.
by Jotne
Sun May 15, 2022 2:18 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

Did try to send you an email, but did not get delivered, so did try one more just now. I do use Ubuntu and there all rsyslog are installed as default in folder /etc/rsyslog.d/ and as user root. In the config there are settings that points to where to store syslog data, udp.conf that points to folder...
by Jotne
Sun May 15, 2022 12:46 pm
Forum: General
Topic: Warning: CPU not running at default frequency.
Replies: 3
Views: 455

Warning: CPU not running at default frequency.

I have a RB951 that is running 700MHz and do get the warning Warning: CPU not running at default frequency. This is the same for 7.1.5 and 7.2.3. Problem is that when you go to System->RouterBOARD->Settings->CPU Frequency, you can not see what the default is. So to MT, please give some information t...
by Jotne
Sat May 14, 2022 9:59 pm
Forum: Beginner Basics
Topic: How to remove a dynamic DNS?
Replies: 17
Views: 1011

Re: How to remove a dynamic DNS?

add action=accept chain=input comment="Remote access to Mikrotik Igor" dst-port=8291 protocol=tcp See my reply here: https://forum.mikrotik.com/viewtopic.php?p=870631#p870631 /ip firewall filter add action=accept chain=input comment="Remote access to Mikrotik Igor" dst-port=8291...
by Jotne
Sat May 14, 2022 8:19 pm
Forum: Announcements
Topic: v7.3beta [testing] is released!
Replies: 323
Views: 55800

Re: v7.3beta [testing] is released!

7.3beta40 is available, why is it buried in this thread.
This is how beta are posted. Look at older beta threads and you will find all beta version in just one thread for each main version.
by Jotne
Fri May 13, 2022 7:59 pm
Forum: Announcements
Topic: v7.3beta [testing] is released!
Replies: 323
Views: 55800

Re: v7.3beta [testing] is released!

Remember this is just one beta version. MT do read this forum and they see user reaction to what they do. So no need 100 post about the same.
by Jotne
Fri May 13, 2022 2:31 pm
Forum: Beginner Basics
Topic: How to remove a dynamic DNS?
Replies: 17
Views: 1011

Re: How to remove a dynamic DNS?

Just remove check mark from "Use Peer DNS" in DHCP client config on RouterOS like here:
.
dns.png
by Jotne
Fri May 13, 2022 1:40 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

Splunk can do all you ask about and more. Nearly unlimited possibility. It do cost allot of money if you put it inn to a large scale company, but may be the best and most flexible solution out there. For your IP address list, you can hav tem in a csv file that Splunk uses. This fil can be updated au...
by Jotne
Fri May 13, 2022 10:55 am
Forum: Scripting
Topic: Get "Bridge port" from address "/ip/arp" via API
Replies: 1
Views: 339

Re: Get "Bridge port" from address "/ip/arp" via API

Its clearly a bug. On 7.x I do see the bridge port in Winbox but not at
/ip arp print detail
nor
:put [/ip arp get *1]
Send an email to support@mikrotik.com and report it as bug.
by Jotne
Fri May 13, 2022 8:18 am
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

1. Can a report be generated for the individual device? Yes 2. Can the script log the address list so I can perform an audit on affected IPs. Yes 3. I dont understand your naming convention...are you referring to the comment given to the rules? Yes its the naming of filter/nat rules to make it easi...
by Jotne
Thu May 12, 2022 10:21 am
Forum: General
Topic: Download traffic is not showing on Interface!
Replies: 21
Views: 1064

Re: Download traffic is not showing on Interface!

Can you not setup a Router in VM with at least 2 interface. It will then be simpler to separate download/upload and simpler to make queues to limit the bandwidth etc.
by Jotne
Thu May 12, 2022 8:28 am
Forum: Scripting
Topic: Change all users in PPPOE profile A to profile B. [SOLVED]
Replies: 4
Views: 465

Re: Change all users in PPPOE profile A to profile B. [SOLVED]

Here you go:
{
/ppp secret
:foreach id in=[find where profile="Profile-A"] do={
	set $id profile="Profile-B"
}
}
by Jotne
Wed May 11, 2022 11:29 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

Here is output of my settings /ip/kid-control> export # may/11/2022 22:25:17 by RouterOS 7.2.3 # software id = E4B6-AAAA # # model = RouterBOARD 750G r3 # serial number = xxxxx /ip kid-control add fri=0s-1d mon=0s-1d name=Monitor sat=0s-1d sun=0s-1d thu=0s-1d tue=0s-1d wed=0s-1d To see the actual da...
by Jotne
Wed May 11, 2022 8:05 am
Forum: Beginner Basics
Topic: Can ping IP's/Websites, but no internet. [SOLVED]
Replies: 60
Views: 3709

Re: Can ping IP's/Websites, but no internet. [SOLVED]

I am really AGAINST DoH in General and DoT instead would please me. DoH should only be used in countries where the people are oppressed and can't have free gathering of information in an other way. After https was introduced, DNS was the most easy way for ISP to log what you do. I am living in a fr...
by Jotne
Tue May 10, 2022 7:05 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

I would have no problem to make this app better and working together :) Yes its the same app that has been around since at least 2017. My level of programming skill is not at a high level, but know some and also working with splunk as a main work. We have 50+ Splunk server and 1+ TB a day from 3k+ s...
by Jotne
Tue May 10, 2022 2:22 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

Small bug found that will come in 3.7 if you do use rsyslog. Quick fix to get it to work. Change this part of props.conf from [rsyslog] TRUNCATE = 10000 TRANSFORMS-dns = remove_dns_query,remove_dns_answer TRANSFORMS-force_mikrotik = force_mikrotik_st,force_mikrotik_ix To [rsyslog] TRUNCATE = 10000 T...
by Jotne
Tue May 10, 2022 11:56 am
Forum: General
Topic: Unknown IP address on ether1
Replies: 39
Views: 2168

Re: Unknown IP address on ether1

If you can post the config of the router, it would help some to investigate.
by Jotne
Mon May 09, 2022 12:28 pm
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Backup config to Gmail v1.4 [SOLVED]

When something needs to be run on both versions, don't use syntax compatible only with v7 ;)

:local Version [/system/resource get version]
->
:local Version [resource get version]

God catch, updated.
by Jotne
Mon May 09, 2022 10:35 am
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Backup config to Gmail v1.4 [SOLVED]

Script updated to v1.4 Now also sends router version information in the subject. Faster to see when router was upgraded. # # Created Jotne 2022 v1.4 # # 1.4 Added Router OS version # 1.3r Revised by REX # 1.3 / 1.2 try to fix v6/v7 compability # 1.1 added "show-sensitive" # 1.0 initial rel...
by Jotne
Mon May 09, 2022 8:11 am
Forum: Beginner Basics
Topic: NTP protocol Is Blocked by ISP [SOLVED]
Replies: 47
Views: 2511

Re: NTP protocol Is Blocked by ISP [SOLVED]

It is confirmed that the ISP is blocking NTP protocol and they will not do anything to solve it. I have to do it from my side.
Did you ask your ISP if they have an NTP server you can use?
by Jotne
Sun May 08, 2022 10:42 am
Forum: Beginner Basics
Topic: Can ping IP's/Websites, but no internet. [SOLVED]
Replies: 60
Views: 3709

Re: Can ping IP's/Websites, but no internet. [SOLVED]

Is that the full config ?
Can not be. Missing DHCP/Bridge/interface config +++
by Jotne
Sat May 07, 2022 11:52 pm
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

Splunk to analyze MikroTik Routers :)
viewtopic.php?t=179960

Signature does not show up in all post. Not sure why.
by Jotne
Sat May 07, 2022 6:43 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

File is find in section 1g) in the first post. And I did forget to upload 3.6 when I had written that it was upgraded. Fixed now.
by Jotne
Sat May 07, 2022 6:39 pm
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

Upgraded the router with memory leak in 7.1.5 as shown here: viewtopic.php?p=922854#p922854
After one day running 7.2.3 it seems to not have memory problem with same config (just upgrade).
by Jotne
Sat May 07, 2022 11:04 am
Forum: Beginner Basics
Topic: Remote access [SOLVED]
Replies: 7
Views: 1211

Re: Remote access [SOLVED]

Use google ans search for mikrotik vpn.
MikroTik do support a big variety of VPN so select the type that fits your need. (Stay away for PPTP VPN)
by Jotne
Sat May 07, 2022 9:03 am
Forum: Scripting
Topic: Connecting to Mikrotik router remotely from application running on the server through API
Replies: 1
Views: 143

Re: Connecting to Mikrotik router remotely from application running on the server through API

Take care when setting up remote access to the router over internet. VPN is the best option. Se my post here:

viewtopic.php?t=177280
by Jotne
Fri May 06, 2022 1:39 pm
Forum: General
Topic: Is there any way to hide the RED comment?
Replies: 34
Views: 1433

Re: Is there any way to hide the RED comment?

My car GSP gives a red warning sign with the speed limit when I drive passed the speed limit. I have then some option. 1. Drive slower 2. Ignore warning 3. Turn of GPS 4. Request the producer to remove the warming. 5. Use another GPS without warning 6. ? Same for OP. He gets several post here on wha...
by Jotne
Fri May 06, 2022 1:22 pm
Forum: General
Topic: Is there any way to hide the RED comment?
Replies: 34
Views: 1433

Re: Is there any way to hide the RED comment?

If you can live with the non secure PPTP, you should have no problem with a RED comment in Winbox.

You can use an external tool to look at the VPN connection like my Splunk for MikroTik.
Dere you can setup what you like to see or not to see.
by Jotne
Fri May 06, 2022 12:20 pm
Forum: General
Topic: Is there any way to hide the RED comment?
Replies: 34
Views: 1433

Re: Is there any way to hide the RED comment?

The OP wrote the above line in his first message. Since then, almost everyone is trying to convince him to use anything else than PPTP. Am I missing anything? You miss comment like this: Ship each site a pre-configured hEX or similar to terminate a proper VPN tunnel. For instance, a site-to-site Wi...
by Jotne
Fri May 06, 2022 9:56 am
Forum: General
Topic: traffic monitoring
Replies: 9
Views: 547

Re: traffic monitoring

by Jotne
Fri May 06, 2022 9:53 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

From what version?
by Jotne
Fri May 06, 2022 8:26 am
Forum: General
Topic: SNMP Walk works, but Get does not
Replies: 3
Views: 230

Re: SNMP Walk works, but Get does not

Can you post the output of with oid of the line giving correct result?
by Jotne
Thu May 05, 2022 6:39 pm
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] and v7.2.3 [stable] are released!

Version 7.1.6 would be the next in long-term branch... But this is off topic, we should stop here. Off topic, but I was very surprised when I did see that 7.1.5 thread was closed in favor for 7.2.1. So is 7.2.1 same as 7.1.6? Normal MT keeps a version over a longer periode. When its stable for some...
by Jotne
Thu May 05, 2022 2:58 pm
Forum: General
Topic: Is there any way to hide the RED comment?
Replies: 34
Views: 1433

Re: Is there any way to hide the RED comment?

Time to start upgrading older hardware.
by Jotne
Thu May 05, 2022 11:44 am
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) &#128190; &#128736; &#128187; &#1282

Upgraded to 3.6 # 3.6 (05.05.2022) # NB Delete old app (copy custom made config) before install v3.6 # Change data to store in Mikrotik index, instead of default index # Change how rsyslog handles data. Did fail if there was more than one type of input # Updeted script in "MikroTik DHCP to Sta...
by Jotne
Thu May 05, 2022 8:05 am
Forum: Scripting
Topic: File transfer via SFTP fails
Replies: 12
Views: 2191

Re: File transfer via SFTP fails

Cleaned up the script some. Removed ; from half of the script. Not needed at end of line. Only when multiple commands are on same line. Open up the do= commands to better see the loops. Added tabs to better see the loops. :log info "Automated Backup Started" :delay 2s :log info "Creat...
by Jotne
Wed May 04, 2022 10:03 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.5 (Graphing everything) &#128190; &#128736; &#128187; &#1282

Hi Jotne,I'm new to the forum and to splunk, I have my lab upstairs with an ubuntu server with rsyslog and a mikrotik rb3011/6.42.9v router, the logs arrive in my rsyslog, but I can't see them in splunk. I would appreciate any help. Do this search give any Mikrotik data? index=* You have followed t...
by Jotne
Wed May 04, 2022 9:56 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.5 (Graphing everything) &#128190; &#128736; &#128187; &#1282

@siscom try some search like this.
index=* sourcetype=mikrotik  eventtype IN (*tp_connection_from,*tp_user_logged_in,ppp_authentication_failed,l2tp_user_logged_out)
or
index=* sourcetype=mikrotik  ppp
Without seeing what you get its not easy,
by Jotne
Tue May 03, 2022 10:08 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] is released!

You also need WifiWave 2 packets for it briks.
by Jotne
Tue May 03, 2022 10:02 am
Forum: Scripting
Topic: How to get the received ping of ros v7.x?
Replies: 1
Views: 158

Re: How to get the received ping of ros v7.x?

Missing ping number seems to only bee seen with count=2. Try count=3 This looks like a bug and MT should fix it. [jotne@RB951-2] > :put [:ping 8.8.8.8 count=2] Columns: SEQ, HOST, SIZE, TTL, TIME SEQ HOST SIZE TTL TIME 0 8.8.8.8 56 53 17ms540us 1 8.8.8.8 56 53 17ms770us [jotne@RB951-2] > :put [:ping...
by Jotne
Tue May 03, 2022 9:58 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] is released!

Its very sily to say that I have to read forum before upgrade to stable version...when is new firmware distributed by official upgrade from HAP AC3, the firmware must be checked for this device. How anyone could explain how Mikrotik is testing new stable version when it bricks all HAP AC3????? Its ...
by Jotne
Tue May 03, 2022 8:21 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] is released!

Put it in the signature part of your user account ;)
Does not help if owner of Mikrotik Routers does not bother to read the forum.
by Jotne
Tue May 03, 2022 8:20 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] is released!

Argh the wiviwave2 package make my hAPAC3 bootloop forever...
Did you read this forum before upgrade?
Did you read the post above before you posted this post.
This is just repeating what is already known.
by Jotne
Tue May 03, 2022 8:19 am
Forum: Announcements
Topic: v7.2.2 [stable] and v7.2.3 [stable] are released!
Replies: 401
Views: 46043

Re: v7.2.2 [stable] is released!

I am really angry, as it took me literally 5-6 hours to setup and test...even with linux and dump switch in between did not work with netinstall I do not see why all is upset. Yes, its not good that software do breaks the router. Many users posts and ask for auto upgrade of routers, and this is why...
by Jotne
Tue May 03, 2022 12:04 am
Forum: Scripting
Topic: Find External IP ? [SOLVED]
Replies: 25
Views: 66236

Re: Find External IP ? [SOLVED]

all other disadvantages...
Can you give some example on that.
I know that if you posting config, you should not post serial, since it can be used to find your IP. Not a very big problem if you have secured your router well.
by Jotne
Mon May 02, 2022 6:02 pm
Forum: Scripting
Topic: Find External IP ? [SOLVED]
Replies: 25
Views: 66236

Re: Find External IP ? [SOLVED]

As I write above.
:put [/ip cloud get public-address]
by Jotne
Sun May 01, 2022 10:52 pm
Forum: Scripting
Topic: Convert uptime to date and time [SOLVED]
Replies: 21
Views: 1006

Re: Convert uptime to date and time [SOLVED]

Convert this:
:put [/system/resource/get uptime]
5w4d12:38:02
to what?
by Jotne
Sat Apr 30, 2022 11:15 pm
Forum: General
Topic: How to secure Mikrotik with FW rules?
Replies: 35
Views: 1491

Re: How to secure Mikrotik with FW rules?

add chain=input comment="allow Winbox" in-interface=ether1-gateway port=8291 protocol=tcp DO NOT OPEN ADMIN INTRAFACE FROM INTERNET!!!!!! This is just asking for trouble. Use VPN to administrate your device from remote location. If VPN can not be used, follow this list to make connection ...
by Jotne
Wed Apr 27, 2022 10:38 pm
Forum: RouterOS beta and rc versions
Topic: Impossible to install 6.48.6 on new v7-only CCR2004-1G-12S+2XS
Replies: 65
Views: 4149

Re: The v6.48.6 [long-term] is a scam!

I suggest you guys search the forum for all complains on v7 to get the idea, there's no point in collating it all here for you. Do you have problem with it? That I buy a VW Golf and some fails for me, does not mean it fails for all. Most of the error found are specific problems for this and that ca...
by Jotne
Wed Apr 27, 2022 9:31 pm
Forum: RouterOS beta and rc versions
Topic: Impossible to install 6.48.6 on new v7-only CCR2004-1G-12S+2XS
Replies: 65
Views: 4149

Re: The v6.48.6 [long-term] is a scam!

Mikrotik ignores any requests and denies users to use v6.48.6 [long-term] for this product forcing upgrade to currently unusable v7.
I am not a troll, You are asked by me and by normis what is wrong with 7.
What do not work work with the unusable v7
by Jotne
Wed Apr 27, 2022 7:59 pm
Forum: RouterOS beta and rc versions
Topic: Impossible to install 6.48.6 on new v7-only CCR2004-1G-12S+2XS
Replies: 65
Views: 4149

Re: The v6.48.6 [long-term] is a scam!

I can take from days to years to fix a problem. Depending on how easy it is to reproduce and how big impacts it has on the router.
It helps a loot with a good description and a detailed procedure on how to recrate the problem.
by Jotne
Wed Apr 27, 2022 12:38 pm
Forum: RouterOS beta and rc versions
Topic: Impossible to install 6.48.6 on new v7-only CCR2004-1G-12S+2XS
Replies: 65
Views: 4149

Re: The v6.48.6 [long-term] is a scam!

He will not replay to that. I have already asked two times in this thread for what is the problem.
by Jotne
Tue Apr 26, 2022 5:40 pm
Forum: Scripting
Topic: Can a script be created if a wrong login name is used
Replies: 44
Views: 5185

Re: Can a script be created if a wrong login name is used

Either way should be possible. I will look at it when I am back home.
by Jotne
Mon Apr 25, 2022 11:32 pm
Forum: Scripting
Topic: Can a script be created if a wrong login name is used
Replies: 44
Views: 5185

Re: Can a script be created if a wrong login name is used

When going through bad login, its possible to compare the username against all local stored user name and if not found, then do log a message.
by Jotne
Mon Apr 25, 2022 2:02 pm
Forum: Scripting
Topic: Can a script be created if a wrong login name is used
Replies: 44
Views: 5185

Re: Can a script be created if a wrong login name is used

I am not sure if the message that are logged are different if its wrong user or wrong password.
Test and se what log you get. If log are different, it should be easy to fix the script.
I am away from my mikrotik routes, so no testing (vacation in Brazil :) )
by Jotne
Mon Apr 25, 2022 1:58 pm
Forum: Announcements
Topic: v7.2.1 [stable] is released!
Replies: 245
Views: 30491

Re: v7.2.1 [stable] is released!

That was what normis just did write.
by Jotne
Sun Apr 24, 2022 11:55 pm
Forum: Beginner Basics
Topic: Manage Mikrotik from Internet
Replies: 5
Views: 323

Re: Manage Mikrotik from Internet

Make sure you use VPN to access your router.
You should also upgrade to latest long time release 6.48.6
https://mikrotik.com/download
by Jotne
Sun Apr 24, 2022 1:55 pm
Forum: RouterOS beta and rc versions
Topic: Impossible to install 6.48.6 on new v7-only CCR2004-1G-12S+2XS
Replies: 65
Views: 4149

Re: The v6.48.6 [long-term] is a scam!

Why downgrade?
What does not work?
You did not reply to this.
by Jotne
Sat Apr 23, 2022 6:56 pm
Forum: RouterOS beta and rc versions
Topic: Impossible to install 6.48.6 on new v7-only CCR2004-1G-12S+2XS
Replies: 65
Views: 4149

Re: The v6.48.6 [long-term] is a scam!

Hence these are impossible to downgrade to v6.48.6.
Why downgrade?
What does not work?
by Jotne
Sat Apr 23, 2022 12:44 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.5 (Graphing everything) &#128190; &#128736; &#128187; &#1282

I have been using GreyLog for a couple of years for Syslog management on my Tiks. Can someone help me understand when using Splunk with a Tik, what would be the advantage over GreyLog? GreyLog and Splunk are the two mayor log receiving system. One is 100% free, other is free up to 500MB log / day. ...
by Jotne
Sat Apr 23, 2022 12:40 pm
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.5 (Graphing everything) &#128190; &#128736; &#128187; &#1282

What do you get when search for
index=*
Do you use rsyslog or are you running Splunk as root and listen on port 514?
See section
3b) Debugging
by Jotne
Sat Apr 23, 2022 12:38 pm
Forum: Beginner Basics
Topic: Recommend way to block Ads with Mikrotik
Replies: 64
Views: 49651

Re: Recommend way to block Ads with Mikrotik

Not necessarily.
Because DoH server can be blocked, and then fallback to standard DNS.
Since you can not see what's inside HTTPS packages, you can not know if its a web site or DoH traffic. And since any can setup a DoH or DoT server, there are no way you can block this.
by Jotne
Sat Apr 16, 2022 6:39 pm
Forum: Scripting
Topic: Scrip modify scheduler date in hour
Replies: 2
Views: 158

Re: Scrip modify scheduler date in hour

Why?
by Jotne
Wed Apr 13, 2022 7:26 pm
Forum: Announcements
Topic: v7.3beta [testing] is released!
Replies: 323
Views: 55800

Re: v7.3beta [testing] is released!

I have not looked at 7.3beta, but my guess is that change log is the difference from 7.2 or 7.2.1
by Jotne
Sat Apr 09, 2022 2:23 pm
Forum: Scripting
Topic: script working in scripting won't work in netwatch, not a permission issue
Replies: 4
Views: 314

Re: Don't know why this script not work

Why not use netwatch function?
Its created for just this type of senarios.
by Jotne
Sat Apr 09, 2022 2:20 pm
Forum: Announcements
Topic: v7.2 is released!
Replies: 370
Views: 36031

Re: v7.2 is released!

I hope that one day my network interface will work
version 6 works without problems
Not the same, but you can install VmWare and use CHR version of RouterOS.
by Jotne
Tue Apr 05, 2022 2:05 pm
Forum: Announcements
Topic: v7.2 is released!
Replies: 370
Views: 36031

Re: v7.2 is released!

Changes since last rc (rc7) Find using compare duplicate cells in Excel. No new stuff added since rc7 List of all changes and when they was introduced in 7.2 train RC `7.2.0 rc5 *) api - accept "Content-Type" with specified charset; rc5 *) arm - fixed "auto" CPU frequency setting...
by Jotne
Tue Apr 05, 2022 12:35 pm
Forum: Announcements
Topic: v7.2 is released!
Replies: 370
Views: 36031

Re: v7.2 is released!

They should have made a changelog relative to 7.2rc7 as well. That is some I do miss as well. If you look at Cisco, you have a tool where you can compare each version against each other and even select different hardware. Cisco Feature Navigator https://cfnng.cisco.com/ Not sure how much you can se...
by Jotne
Sun Apr 03, 2022 2:25 pm
Forum: Scripting
Topic: Aoutomatic Upgrade router Firmwarewith scripting
Replies: 1
Views: 197

Re: Aoutomatic Upgrade router Firmwarewith scripting

Read this post: https://forum.mikrotik.com/viewtopic.php?p=788771#p788771 Never, ever let the system auto upgrade without having a hold trigger. After new firmware comes out, wait 2-3 weeks and read all post to see if any serious bug arrive. Test new software on a local test router with same hardwar...
by Jotne
Thu Mar 31, 2022 8:44 pm
Forum: Scripting
Topic: Activate Script [SOLVED]
Replies: 5
Views: 543

Re: Activate Script [SOLVED]

Not sure where I get it from. May have seen it some place and start using it.
by Jotne
Thu Mar 31, 2022 2:50 pm
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 and v7.1.5 is released!

Does not look god. Memory does still be eaten up. Did try to turn of DoH som 6 hour ago, still going up. So in some days it reaches 100%.
RB 750Gr3 Router OS 7.1.5
Will send file to support.
.
by Jotne
Thu Mar 31, 2022 1:27 pm
Forum: Scripting
Topic: Send Public IP to telegram
Replies: 6
Views: 430

Re: Send Public IP to telegram

local cAdd
set cAdd [/ip/cloud/get public-address]
by Jotne
Thu Mar 31, 2022 12:03 pm
Forum: Announcements
Topic: v7.2rc6 and v7.2rc7 is released!
Replies: 102
Views: 12348

Re: v7.2rc6 and v7.2rc7 is released!

but it was a little shocking moment as the PING didn´t came back.....
You should not be shocked, since this is just a test version and should not be used in production.
by Jotne
Thu Mar 31, 2022 12:02 pm
Forum: Announcements
Topic: v7.2rc6 and v7.2rc7 is released!
Replies: 102
Views: 12348

Re: v7.2rc6 is released!

No, there have been fix releases quicker than that...
From my long list of release, there has not been a faster public release (4:25) from 6.47 and up (including beta). Have not looked at releases before 6.47. But I may have missed some...
by Jotne
Thu Mar 31, 2022 9:07 am
Forum: Scripting
Topic: Send Public IP to telegram
Replies: 6
Views: 430

Re: Send Public IP to telegram

Turn in IP Cloud on your router and get IP using this command.
:put [/ip/cloud/get public-address]
by Jotne
Thu Mar 31, 2022 9:04 am
Forum: Scripting
Topic: script about the connection speed of the interface
Replies: 5
Views: 1822

Re: script about the connection speed of the interface

Can it be a bug? What RouterOS version do you run?
by Jotne
Thu Mar 31, 2022 9:00 am
Forum: Scripting
Topic: Ping not working in script on 7.1.5?
Replies: 1
Views: 144

Re: Ping not working in script on 7.1.5?

Use netwatch, not ping in script:
viewtopic.php?p=922780
by Jotne
Thu Mar 31, 2022 8:27 am
Forum: Scripting
Topic: Activate Script [SOLVED]
Replies: 5
Views: 543

Re: Activate Script [SOLVED]

No need to use ping in script. What you do is to use netwatch. There you can have a script for up/down information. Script name: Netwatch #################################### # Netwatch script # # Used as both up and down script # Created Jotne 2021 v1.5 # #################################### :local...
by Jotne
Wed Mar 30, 2022 9:55 pm
Forum: Announcements
Topic: v7.2rc6 and v7.2rc7 is released!
Replies: 102
Views: 12348

Re: v7.2rc6 is released!

Do you run at not standard frequency for the CPU.
/system/routerboard/settings/print
by Jotne
Wed Mar 30, 2022 6:23 pm
Forum: Announcements
Topic: v7.2rc6 and v7.2rc7 is released!
Replies: 102
Views: 12348

Re: v7.2rc6 is released!

What is the problem that you are reporting with this specific 7.2rc6 and what does it have to do with 6.4x versions?
It was just to show that in 7.x series MT has change from posting many beta version of the software to posting many RC version.
by Jotne
Wed Mar 30, 2022 2:57 pm
Forum: Announcements
Topic: v7.2rc6 and v7.2rc7 is released!
Replies: 102
Views: 12348

Re: v7.2rc6 is released!

Is RC the new Beta? I do not see that any beta has been posted for 7.2, but multiple RC. (6 so far)
7.1 was some inn between with 6 rc and 6 beta (Posted)

6.49 - 2 rc
6.48 - 1 rc
6.47 - 1 rc
6.46 - 1 rc
6.45 - 2 rc
6.44 - 1 rc
by Jotne
Tue Mar 29, 2022 10:47 pm
Forum: General
Topic: What is the best way to prevent internal traffic from leaving? [SOLVED]
Replies: 56
Views: 2312

Re: What is the best way to prevent internal traffic from leaving? [SOLVED]

This discussion has nothing, absolutely nothing to do with DNS. I'm trying to prevent traffic to 8.8.8.8 Is not 8.8.8.8 a DNS IP. What else is 8.8.8.8 used for? I just try to figure out why you request what you do to see if there is an other approach to the problem PS you do not need to Quote the w...
by Jotne
Tue Mar 29, 2022 10:18 pm
Forum: General
Topic: What is the best way to prevent internal traffic from leaving? [SOLVED]
Replies: 56
Views: 2312

Re: What is the best way to prevent internal traffic from leaving? [SOLVED]

Because if the source IP is 192.168.0.3, Google should just drop the packet , it can't send traffic back to it.
Then you should remove 8.8.8.8 DNS settings from 192.168.0.3
by Jotne
Tue Mar 29, 2022 8:33 pm
Forum: General
Topic: What is the best way to prevent internal traffic from leaving? [SOLVED]
Replies: 56
Views: 2312

Re: What is the best way to prevent internal traffic from leaving? [SOLVED]

@kevinds
Why block 8.8.8.8 for some hosts?

I have seen that Chromecast has fixed 8.8.8.8 and fails if you try to grab traffic to udp 53 and send it to another DNS.
Also if some block my DNS that I like to use, I just change to DoH or DoT.
by Jotne
Tue Mar 29, 2022 8:37 am
Forum: General
Topic: What is the best way to prevent internal traffic from leaving? [SOLVED]
Replies: 56
Views: 2312

Re: What is the best way to prevent internal traffic from leaving? [SOLVED]

Unless I'm missing something, this will blackhole all internal traffic..
No, it will only block traffic that has destination IP in the blackhole route.
by Jotne
Tue Mar 29, 2022 8:27 am
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 and v7.1.5 is released!

As seen form this post viewtopic.php?p=921640#p921640
hEX RB750Gr3 continues to leak memory since upgrade to 7.1.5
.
Memory 7.1.5.png
by Jotne
Mon Mar 28, 2022 3:39 pm
Forum: Scripting
Topic: [ROS6.x] Generate a random number in a range.
Replies: 2
Views: 182

Re: [ROS6.x] Generate a random number in a range.

Just a quick search on this forum and you can find multiple post.
viewtopic.php?f=9&t=56933
viewtopic.php?f=9&t=175453&p=858629
by Jotne
Mon Mar 28, 2022 3:02 pm
Forum: Beginner Basics
Topic: Recommend way to block Ads with Mikrotik
Replies: 64
Views: 49651

Re: Recommend way to block Ads with Mikrotik

It will not. This is the point of Pi-hole.

Where you get DNS to your hosted webserver (on your lan), does not mater. If its DNS or DoH as long as its the public name for your server.
DoH in your browser will however bypass both your local DNS or local DoH server settings.
by Jotne
Sat Mar 26, 2022 11:56 pm
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 and v7.1.5 is released!

I do have a memory leak after upgrading a 750Fr3 (that have a large config) from 6.49.2->6.49.5->7.1.5 friday morning. After the upgrade memory usage only goes up. I will lett it go some week and follow it closely. If it does not stop, I will try to stop DoH that I have had problem with before. . Me...
by Jotne
Fri Mar 25, 2022 9:15 pm
Forum: Scripting
Topic: Reset all counters [SOLVED]
Replies: 4
Views: 554

Re: Reset all counters [SOLVED]

/ip firewall nat reset-counters-all
Add it to a scheduler if you like to reset it a certain time.
by Jotne
Fri Mar 25, 2022 10:01 am
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 and v7.1.5 is released!

Strange, it works now after some time.

But this is a BUG for MT to fix.

In stable channel, it shows 7.1 even if I have 7.1.5. So according to MT, I should downgrade???
by Jotne
Fri Mar 25, 2022 7:36 am
Forum: Scripting
Topic: Why API Is Too Slow
Replies: 6
Views: 1336

Re: Why API Is Too Slow

No reply to an 10 year post...

And do not quote the whole post above you. Not a good habit as well.
Use the green Post Reply button under the the post to reply some.
When there are post inn between, you can quote a post, but pick only what you reply to.
by Jotne
Fri Mar 25, 2022 7:18 am
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 and v7.1.5 is released!

Upgraded a hEX RB750gv3 to 7.1.5 everything seems to went fine except when I look at System->Package In check for Updates it only show ERROR: connection timed out when I look for new version. Same for long term, stable, testing and development. I can ping mikrotik.com from terminal, so internet conn...
by Jotne
Thu Mar 24, 2022 9:24 pm
Forum: General
Topic: Port 514 filtered shell
Replies: 7
Views: 414

Re: Port 514 filtered shell

I do not see any joke here.

To help out, please post the config.
by Jotne
Thu Mar 24, 2022 8:03 pm
Forum: Scripting
Topic: all ppp profile
Replies: 14
Views: 768

Re: all ppp profile

MT does not handle upper/lower case very good.
Missing toupper/tolower (?i) +++
by Jotne
Thu Mar 24, 2022 5:33 pm
Forum: Scripting
Topic: all ppp profile
Replies: 14
Views: 768

Re: all ppp profile

Hmm

I hoped that this should work, but it does not:
name~"(?i)fibr"
Did try this as well, but does not work.
name~"(\?i)fibr"
by Jotne
Thu Mar 24, 2022 3:25 pm
Forum: General
Topic: Port 514 filtered shell
Replies: 7
Views: 414

Re: Port 514 filtered shell

https://www.speedguide.net/port.php?port=514

514 UDP Syslog
514 TCP Remote shell

But you can use nearly all port to other stuff if you like.
by Jotne
Thu Mar 24, 2022 2:19 pm
Forum: Scripting
Topic: all ppp profile
Replies: 14
Views: 768

Re: all ppp profile

You need to find what you are looking for, then get all the data for the ID that find returns. print should not be used in script. :foreach Profile in=[/ppp profile find where name~"FIBR"] do={:put [/ppp profile get $Profile]} Some more clean setup. /ppp profile :foreach Profile in=[find w...
by Jotne
Thu Mar 24, 2022 1:40 pm
Forum: Scripting
Topic: executed a script on log event
Replies: 2
Views: 228

Re: executed a script on log event

See my posts in this thread:
viewtopic.php?t=148397

It uses the log to block VPN users that do not have correct credentials.
by Jotne
Wed Mar 23, 2022 1:54 pm
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 and v7.1.5 is released!

Nope, the device was upgraded from v6.48.x -> v7.1.3 -> v7.1.5 remotely is the key word here
This is why you should (if possible) always test on a equal local device before starting on remote device.
by Jotne
Wed Mar 23, 2022 1:38 pm
Forum: General
Topic: System -> Auto Upgrade howto?
Replies: 8
Views: 22738

Re: System -> Auto Upgrade howto?

True MKX. *) dot1x - fixed "reject-vlan-id" for MAC authentication (introduced in v6.48); *) dot1x - fixed MAC authentication fallback (introduced in v6.48); *) tile - fixed bridge performance degradation (introduced in v6.47); *) webfig - fixed "PortMapping" button (introduced i...
by Jotne
Tue Mar 22, 2022 8:47 pm
Forum: General
Topic: System -> Auto Upgrade howto?
Replies: 8
Views: 22738

Re: System -> Auto Upgrade howto?

Here you see a good example on how wrong it can go on auto upgrade:
viewtopic.php?t=184318

7.1.5 was just releases some hour after 7.1.4 that did delete the routing table when upgrade.
by Jotne
Tue Mar 22, 2022 2:22 pm
Forum: RouterOS beta and rc versions
Topic: Where is UPS?
Replies: 24
Views: 7795

Re: Where is UPS?

What's new in 7.1.4 (2022-Mar-21 13:23):

*) ups - fixed UPS support;
by Jotne
Tue Mar 22, 2022 1:40 pm
Forum: Announcements
Topic: v7.1.4 and v7.1.5 is released!
Replies: 208
Views: 26323

Re: v7.1.4 is released!

When will Docker be supported again? T_T T_T T_T T_T Wrong thread. This thread is about 7.1.x updates. They will normal only contain bug fixes. I do also think 7.2Rc is locked for new stuff, so post your request to support@mikrotik.com or here: https://forum.mikrotik.com/viewtopic.php?t=45934
by Jotne
Mon Mar 21, 2022 8:04 am
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

https://forum.mikrotik.com/viewtopic.php?t=178353#p890747 We only can do it for ARM systems, no plans for MIPS now. That is not the same as that there will never be. It may come in future. We only can do it for ARM system (since we do not have time, or missing a component, or to little memory or...)
by Jotne
Mon Mar 21, 2022 7:58 am
Forum: Scripting
Topic: Email last 24hrs logs [SOLVED]
Replies: 6
Views: 663

Re: Email last 24hrs logs [SOLVED]

You can send all logs using syslog. See link in my signature for how to use Splunk to analyze them and graph them.
by Jotne
Sun Mar 20, 2022 4:37 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

no plans for other architecture atm as per MT
I know its only arm yet. Can you post a link to where MT stats that there will be no ZeroTier for other platform?
by Jotne
Sat Mar 19, 2022 9:10 pm
Forum: Scripting
Topic: Scripting with MAC Address/Serial Number Variables
Replies: 4
Views: 376

Re: Scripting with MAC Address/Serial Number Variables

ohh, this was the heavily guarded secret that all ISP uses ;)
by Jotne
Sat Mar 19, 2022 5:31 pm
Forum: General
Topic: Microsoft creates tool to scan MikroTik routers for TrickBot infections
Replies: 4
Views: 630

Re: Microsoft creates tool to scan MikroTik routers for TrickBot infections

This is just a quick walk trough on what the Microsoft script does. It may not be 100% correct (my python knowledge are not high), but should give an idea. basecommand.py Used to run other commands? dns.py /ip dns print Test if remote dns is allowed /ip dns cache print detail Test of cahce is enable...
by Jotne
Fri Mar 18, 2022 3:24 pm
Forum: Scripting
Topic: ":put" problem in scripting [SOLVED]
Replies: 17
Views: 3506

Re: ":put" problem in scripting [SOLVED]

When you do have a script that run, lets say 00:00 every night. Where do you expect :put to show its output? Do you have a terminal session open 24/7/365 and waiting for output? This is why we do have :log that sends output to log or syslog . Data can also be sent to email, ftp, http, blink the led ...
by Jotne
Fri Mar 18, 2022 12:23 pm
Forum: Scripting
Topic: New script please
Replies: 1
Views: 187

Re: New script please

I guess if you google for it, you will find various example. BUT NEVER EVER SET THIS TO AUTO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You could have the script to test if a flag is set on a web server. If the flag is set to yes and the script runs and see that there is a n...
by Jotne
Thu Mar 17, 2022 8:19 am
Forum: Scripting
Topic: how can save mac address in a comment after login [SOLVED]
Replies: 15
Views: 1015

Re: how can save mac address in a comment after login [SOLVED]

Cleaned up the script. Code tags, tabs, if section and removed not needed ; :foreach i in=[/ip hotspot user find where name!=default-trial] do={ :local uptime [/ip hotspot user get number=$i uptime] #if an user have 00:00:00 uptime means it's not connected right? then... :if ($uptime=00:00:00) do={ ...
by Jotne
Wed Mar 16, 2022 10:42 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

Or not an bug at all. It may be by design. You posted it in this thread, so it is to assume that this was related to 7.2rc4.
This may be posted to support@mikrotik.com as a future request or as a bug if it ever has worked.
by Jotne
Wed Mar 16, 2022 9:07 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

It removes the GRE connection on 6.x and 7.1.3?
by Jotne
Wed Mar 16, 2022 7:18 pm
Forum: Scripting
Topic: The condition is not met, why does the script keep executing?
Replies: 7
Views: 477

Re: The condition is not met, why does the script keep executing?

It seem that your picture were added as thumbnail. Not able to see details.
by Jotne
Wed Mar 16, 2022 3:58 pm
Forum: RouterOS beta and rc versions
Topic: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]
Replies: 19
Views: 1826

Re: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]

Without seeing the config and information what is tried, its hard to help with anything.

So post config. Send supportfile to support@mikrotik.com
by Jotne
Tue Mar 15, 2022 7:38 pm
Forum: General
Topic: How to stop/block NetShare -tethering apps
Replies: 2
Views: 809

Re: How to stop/block NetShare -tethering apps

I think you cant stop this. On my Huawei P30 i can set it up as an Wifi bridge (default app on phone). This will make the phone as an wifi router with nat. There are no way that router or any equipment out the outside could see what I am doing. You can monitor all wifi net around and see if there ar...
by Jotne
Tue Mar 15, 2022 5:33 pm
Forum: General
Topic: Feature requests
Replies: 1460
Views: 403818

Re: Feature requests

What logging config did you make to see this detailed logging? No config, but use this command: /system history print detail This part of my Splunk/Mikrotik script sends the data to Syslog: # Get detailed command history RouterOS >= v7 # ---------------------------------- :if ([:tonum [:pick [/syst...
by Jotne
Tue Mar 15, 2022 3:12 pm
Forum: General
Topic: Feature requests
Replies: 1460
Views: 403818

Re: Feature requests

Please add more detailed description to log This is already implemented in v7. of RouterOS. Here is an example on where I do add cnn.com to access-list demo Syslog (or you can see it in the local log) script,info EndCMD script,info ;undoable=true script,info ;time=mar/15/2022 14:02:06;undo=/ip fire...
by Jotne
Tue Mar 15, 2022 1:54 pm
Forum: Announcements
Topic: v7.1.3 is released!
Replies: 272
Views: 38171

Re: v7.1.3 is released!

82 days on my hEX 6.49.2
Sector writes Since reboot 199 000
Total sector write 3 902 000
by Jotne
Mon Mar 14, 2022 10:15 pm
Forum: General
Topic: Port forwarding working partially
Replies: 18
Views: 810

Re: Port forwarding working partially

I have only used on port in MT to forward FTP and it works fine. It may that MT does some more than I see.
add action=dst-nat chain=dstnat comment="FTP -> Server" dst-address-list=WAN-IP dst-port=21 log-prefix=ND_DE_FTP-Balder protocol=tcp to-addresses=192.168.233.32
by Jotne
Mon Mar 14, 2022 10:03 pm
Forum: Scripting
Topic: Find a comment that doesn't contain a specific text [SOLVED]
Replies: 3
Views: 421

Re: Find a comment that doesn't contain a specific text [SOLVED]

/ip hotspot user find comment!~"a" ~ Does contain !~ Does not contain NB do not use [] in the way you did. You can also mix and match: /ip hotspot user find comment!~"a" comment~"b" to get result to a variable: :local test [/ip hotspot user find comment!~"a" ...
by Jotne
Mon Mar 14, 2022 3:46 pm
Forum: RouterOS beta and rc versions
Topic: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]
Replies: 19
Views: 1826

Re: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]

Why, the device is a router, and I need it as a router. It is not a lab I thought we was writing in the RC thread. Software that should only be used on routers in lab/test. It may be a bug or it may be some wrong configured. Posting your config may help to get other to verify your configuration.
by Jotne
Mon Mar 14, 2022 3:44 pm
Forum: General
Topic: The backup script broke after the update.
Replies: 4
Views: 306

Re: The backup script broke after the update.

They should work, but try
/export
/quit
If you use v7 export will not give you everything.
/export show-sensitive
That will give you more
by Jotne
Mon Mar 14, 2022 3:38 pm
Forum: Scripting
Topic: Scripting with MAC Address/Serial Number Variables
Replies: 4
Views: 376

Re: Scripting with MAC Address/Serial Number Variables

This should do: { /interface ethernet :local mac5 [get [find name=ether5] orig-mac-address] :local serial [/system routerboard get serial-number] :local SSID ("ssid_".[:pic $mac5 9 11].[:pic $mac5 12 14].[:pic $mac5 15 17]) :local Pass [:pic $serial 6 12] :put "SSID=$SSID" :put &...
by Jotne
Mon Mar 14, 2022 12:11 pm
Forum: General
Topic: The backup script broke after the update.
Replies: 4
Views: 306

Re: The backup script broke after the update.

Can you see what commands it sendes to the router?
by Jotne
Mon Mar 14, 2022 11:56 am
Forum: RouterOS beta and rc versions
Topic: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]
Replies: 19
Views: 1826

Re: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]

Did you try it with basic config? I guess there are some in your config that fails.
by Jotne
Mon Mar 14, 2022 11:22 am
Forum: Scripting
Topic: File transfer via SFTP fails
Replies: 12
Views: 2191

Re: File transfer via SFTP fails

by Jotne
Sun Mar 13, 2022 4:44 pm
Forum: General
Topic: Wireguard - SNMP interface monitoring
Replies: 5
Views: 485

Re: Wireguard - SNMP interface monitoring

You can use netwatch to minitor remote IP. See my script for netwatch here:
viewtopic.php?p=899208#p899208

SNMP would be complicate to work with this, but Syslog/Telegram/Email ++ should work fine.
by Jotne
Sun Mar 13, 2022 9:08 am
Forum: Scripting
Topic: a script for monitoring packet loss for ping 10 times
Replies: 12
Views: 8840

Re: a script for monitoring packet loss for ping 10 times

Why on earth would you have a quote button if it is not to quote the comment that you want to thank When you reply to the post above you, quote is not needed, since its a continuation of the conversation. But you can like this quote part of it if its to reply to specific part of the post. You did n...
by Jotne
Sat Mar 12, 2022 10:25 pm
Forum: General
Topic: What is using up my memory?
Replies: 13
Views: 915

Re: What is using up my memory?

What routerOS version do you run? Have you tried upgrade/downgrade?
If you use DoH, try to disable it, and see what happens. For me with one DoH provider i did get saw tooth pattern, see link to Sindy.
Even if memory goes up/down, it worked. Change to other DoH provider fixed my problem.
by Jotne
Sat Mar 12, 2022 7:46 pm
Forum: Scripting
Topic: a script for monitoring packet loss for ping 10 times
Replies: 12
Views: 8840

Re: a script for monitoring packet loss for ping 10 times

Edited my post.
Original phpBB skin prosilver (that I use) it red :)
by Jotne
Sat Mar 12, 2022 11:27 am
Forum: Scripting
Topic: SNMP execute scripts
Replies: 3
Views: 314

Re: SNMP execute scripts

Try replace snmpwalk (that is used to read subtree of information) with snmpget that is used for one oid.
by Jotne
Sat Mar 12, 2022 8:34 am
Forum: Scripting
Topic: a script for monitoring packet loss for ping 10 times
Replies: 12
Views: 8840

Re: a script for monitoring packet loss for ping 10 times

Not only are you quoating post above, but you do it 3 times!!!!

Next time your post, see under the post and click big green Post Reply button.

There is also an edit button, If you like to add more to an post.
You can see this thread: viewtopic.php?t=168474
by Jotne
Fri Mar 11, 2022 7:49 pm
Forum: General
Topic: Tool: A Web base Mikrotik Internet Usage Counter (per user, per ip , per device)
Replies: 2
Views: 264

Re: Tool: A Web base Mikrotik Internet Usage Counter (per user, per ip , per device)

How do you collect the data from the routers?
Script/Snmp/Syslog?

Have you looked at my Splunk prosjekt? Link in signatur.
I did use ip accounting to get data pr device, but since that is removed in 7.x, I have change to Kid control, that do work on both 6.x and 7.x
by Jotne
Fri Mar 11, 2022 10:27 am
Forum: Scripting
Topic: Send file by HTTP post
Replies: 12
Views: 957

Re: Send file by HTTP post

You have asked for the same i 3 post (for me that is SPAM). That is not needed, and it will not help you. Any request you like, send to support@mikrotik.com
by Jotne
Thu Mar 10, 2022 3:24 pm
Forum: RouterOS beta and rc versions
Topic: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]
Replies: 19
Views: 1826

Re: RB5009 reboots itself each 8-10 days (7.2rc3/rc4) [SOLVED]

It may be do to config. Try to set ut to default (basic) config and see if it still reboot.s
by Jotne
Wed Mar 09, 2022 11:40 pm
Forum: General
Topic: Nat and preservice public ip for a port
Replies: 8
Views: 390

Re: Nat and preservice public ip for a port

Seems to work on a test router.
by Jotne
Wed Mar 09, 2022 11:01 pm
Forum: General
Topic: Nat and preservice public ip for a port
Replies: 8
Views: 390

Re: Nat and preservice public ip for a port

@Zacharias
/ip firewall nat add src-address=172.16.1.20 action=src-nat to-addresses=92.x.x.x
This asks for chain

Same with this:
/ip firewall nat add dst-address=92.x.x.x dst-port=443 protocol=tcp  action=dst-nat to-addresses=172.16.1.20
by Jotne
Wed Mar 09, 2022 10:55 pm
Forum: General
Topic: Nat and preservice public ip for a port
Replies: 8
Views: 390

Re: Nat and preservice public ip for a port

I want the above rule to work so inside to outside nat and nat to the sever1.
Since server2 is a web server, I like the webserver to see the public source IP, so that logging of usage would be correct.

@Larsa
Thats why I added " if its possible"
by Jotne
Wed Mar 09, 2022 10:34 pm
Forum: General
Topic: Nat and preservice public ip for a port
Replies: 8
Views: 390

Nat and preservice public ip for a port

I am not very good in the nat, so need som help if its possible. I have a router with a public IP on interface ether1. On inside I have two server. Server 1 Linux server (172.16.1.10) with only need for web port 22 trough NAT. Simple dest nat. Server 2 Web server (172.16.1.20) I need port 443 from p...
by Jotne
Wed Mar 09, 2022 7:15 pm
Forum: Scripting
Topic: Help me to write this script
Replies: 6
Views: 381

Re: Help me to write this script

Its a smarter way to do it. But if you get url from a system, you still need to test if its already in the list, so script is needed.
/ip firewall address-list add address=youtube.com list=demo
failure: already have such entry
by Jotne
Wed Mar 09, 2022 5:53 pm
Forum: Scripting
Topic: Help me to write this script
Replies: 6
Views: 381

Re: Help me to write this script

Here is the complete script: :local Site "mt.lv" :local IP [:resolve $Site] /ip firewall address-list :if ([:len [find address=$IP list="demo"]]=0) do={ add address=$IP list="demo" comment="$Site" } You need to test if ip is already in the list. If yes, do not...
by Jotne
Wed Mar 09, 2022 3:42 pm
Forum: Scripting
Topic: Help me to write this script
Replies: 6
Views: 381

Re: Help me to write this script

This will resolve name for mt.lv and add it to address list "Demo"
/ip firewall address-list add address=[:resolve mt.lv] list="demo"
by Jotne
Wed Mar 09, 2022 1:01 pm
Forum: Scripting
Topic: File transfer via SFTP fails
Replies: 12
Views: 2191

Re: File transfer via SFTP fails

See this script made by me and rexteded.
viewtopic.php?p=915725#p915725

Do send both binary and readable backup to email
by Jotne
Tue Mar 08, 2022 3:39 pm
Forum: Beginner Basics
Topic: Script for send SMS
Replies: 10
Views: 633

Re: Script for send SMS

What you can do. Setup a filter rule that allows all traffic inn (forward) at the top of the firewall list At each start of period (1st each month) clear counter. This rule will show total bytes and number of packets. If >60GB send SMS If >60GB+x*10GB sends SMS New periode, reset. My fw rule "d...
by Jotne
Tue Mar 08, 2022 1:46 pm
Forum: Scripting
Topic: File transfer via SFTP fails
Replies: 12
Views: 2191

Re: File transfer via SFTP fails

What are you trying to send?
Its easy to setup gmail sending of files.
by Jotne
Mon Mar 07, 2022 5:28 pm
Forum: Scripting
Topic: script to add ip to list based on log - help needed
Replies: 7
Views: 629

Re: script to add ip to list based on log - help needed

if the time is 00:00 the "[/system clock get time] - 5m" is negative time value -00:05:00 and do not find the previous day log from 23:55
for me that is an bug. If you work with time, you do work with time and 00:00 -5m should be 23:55.
by Jotne
Sun Mar 06, 2022 8:50 pm
Forum: Scripting
Topic: script to add ip to list based on log - help needed
Replies: 7
Views: 629

Re: script to add ip to list based on log - help needed

Here is what I do use to get last 5m log of massages that do contains: negotiation failed
You should be able to modify it to get the data you like
:local loglist [:toarray [/log find  time>([/system clock get time] - 5m) message~"negotiation failed"]]
by Jotne
Fri Mar 04, 2022 3:02 pm
Forum: Scripting
Topic: ROS 7.1.1 and scripting problem
Replies: 1
Views: 177

Re: ROS 7.1.1 and scripting problem

Do this gives time -6 min?
:put ([/system clock get time] - 6m)
by Jotne
Thu Mar 03, 2022 6:54 pm
Forum: Announcements
Topic: v7.1.3 is released!
Replies: 272
Views: 38171

Re: v7.1.3 is released!

It will come, just wait.
by Jotne
Thu Mar 03, 2022 1:07 pm
Forum: Announcements
Topic: v7.1.3 is released!
Replies: 272
Views: 38171

Re: v7.1.3 is released!

In 7.x the serial number should be hidden when the command export is used.
Should only be shown with export show-sensitive
Why?
If you use MikroTik Cloud, all can then see your public IP.
by Jotne
Wed Mar 02, 2022 8:50 pm
Forum: General
Topic: IPv6 [yes/no] ????
Replies: 12
Views: 639

Re: IPv6 [yes/no] ????

1… End-to-end connectivity I know that NAT is not a firewall, but it help to protect local network. Will be interesting to see all open routers that expose all internal devices on the net. 2… Reduced network complexity Not sure about that. Not easy to setup a firewall and very hard to see what each...
by Jotne
Wed Mar 02, 2022 7:33 pm
Forum: General
Topic: IPv6 [yes/no] ????
Replies: 12
Views: 639

Re: IPv6 [yes/no] ????

I understand what you're trying to say but isn't it better to be ready for the change (prepared) instead of being forced to do so (in a hurry, with all possible consequences) ?
For how many years ?
When RouterOS 9 is released ;)
by Jotne
Wed Mar 02, 2022 7:04 pm
Forum: Scripting
Topic: if enable interface do something
Replies: 4
Views: 281

Re: if enable interface do something

I do not understand. Interface do not Enable/Disable by it self. Some or a script needs to do the change of status of an interface.
by Jotne
Wed Mar 02, 2022 6:56 pm
Forum: General
Topic: IPv6 [yes/no] ????
Replies: 12
Views: 639

Re: IPv6 [yes/no] ????

Even for home user sometimes it's good to have more than one public address. That I do not see as a problem. You can setup 60000+ nat port. You can use an revese proxy and have as many Web server as you like. To need to have more than 60000 port for outgoing nat, you have to be a larger company. Pr...
by Jotne
Wed Mar 02, 2022 6:05 pm
Forum: General
Topic: IPv6 [yes/no] ????
Replies: 12
Views: 639

IPv6 [yes/no] ????

I do now what IPv6, but my question is: Do I need it? Should I care about? My ISP do offer it, but should I use it. What is the real benefit of it? As a home user? We are running out of IPv4. This have I heard the last 15+ year, but still IPv4 is the backbone of internet. Do IPv6 give me some extras...
by Jotne
Wed Mar 02, 2022 5:53 pm
Forum: Scripting
Topic: Pseudo Random Number Generator Script (Mersenne Twister)
Replies: 23
Views: 13133

Re: Pseudo Random Number Generator Script (Mersenne Twister)

Manual has an error in the example for rndstr :put [: rndnum from="abcdef%^&" length=33]; should be :put [: rndstr from="abcdef%^&" length=33] Also do not need the ; at end of each line in manual as well. Its only needed to separate multiple command on same line.
by Jotne
Wed Mar 02, 2022 3:41 pm
Forum: Scripting
Topic: Pseudo Random Number Generator Script (Mersenne Twister)
Replies: 23
Views: 13133

Re: Pseudo Random Number Generator Script (Mersenne Twister)

Hmm, how did I miss this...

Any documentation on this? I did not find any.

Generate mac
:put [:rndstr length=12 from="0123456789abcdef"]
by Jotne
Tue Mar 01, 2022 8:36 pm
Forum: Scripting
Topic: Script DHCP Lease not working
Replies: 12
Views: 626

Re: Script DHCP Lease not working

That is why I do use Splunk. All in one place and nice graph view of everything.
by Jotne
Tue Mar 01, 2022 5:53 pm
Forum: Wireless Networking
Topic: Is hAP AC a wireless router or an access point?
Replies: 12
Views: 600

Re: Is hAP AC a wireless router or an access point?

an access point usually can not be a router
True, but most home router I have been working with can be set to bridge mode, so you can use a home router as an access point or as an switch.
by Jotne
Tue Mar 01, 2022 5:43 pm
Forum: Scripting
Topic: Script DHCP Lease not working
Replies: 12
Views: 626

Re: Script DHCP Lease not working

This should do: :if ($leaseBound = 1) do={ :do { :local Comment [/ip dhcp-server lease get value-name=comment number=[/ip dhcp-server lease find address=$leaseActIP]] :local interFace :do { :set $interFace [/caps-man/registration-table get [find where mac-address=$leaseActMAC] interface] } on-error=...
by Jotne
Tue Mar 01, 2022 2:44 pm
Forum: Wireless Networking
Topic: Is hAP AC a wireless router or an access point?
Replies: 12
Views: 600

Re: Is hAP AC a wireless router or an access point?

PS. There are different License Level, so not all product can do what other can do.
by Jotne
Tue Mar 01, 2022 11:07 am
Forum: Wireless Networking
Topic: Is hAP AC a wireless router or an access point?
Replies: 12
Views: 600

Re: Is hAP AC a wireless router or an access point?

This is the beauty of RouterOS. You can use nearly all product in the way you like to use it.
Is hAP AC a wireless router or an access point?
Yes
by Jotne
Tue Mar 01, 2022 11:04 am
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

Most home ruter does only have 16MB, so to use multiple partition you need a larger router with at least 32MB
https://wiki.mikrotik.com/wiki/Manual:Partitions
by Jotne
Mon Feb 28, 2022 9:51 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

I guess that could not be done to all routers?
by Jotne
Mon Feb 28, 2022 9:46 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

I took the JUMP and hit the concrete on the bottom with my head!! WTF Mikrotik!! Erase the routing tables (/routing/table), leaving me with setting about 50 different routing-marks all who are all over the place!!!!! I started the recovery but ran out off breath doing them all and will think hard o...
by Jotne
Mon Feb 28, 2022 8:21 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

Then it should show up as testing:
development: error: file not found.
long term: error: file not found.

Now you are tricked to belive that 7.1 is a stable long term version. Yes I do now that it is not, but other may think so.
by Jotne
Mon Feb 28, 2022 12:54 pm
Forum: Announcements
Topic: v7.2rc4 is released!
Replies: 145
Views: 28453

Re: v7.2rc4 is released!

Both 7.2 rc3 and r4 does shows wrong in long term release
long term: 7.1
stable 7.1.3
testing 7.2 rc4
development: error: file not found.
Strange that 7.1.3 is stable and 7.1 is long term :)
.
long term.jpg
by Jotne
Sun Feb 27, 2022 9:45 pm
Forum: Beginner Basics
Topic: Cant port forward or upnp RB951Ui-2HnD
Replies: 13
Views: 597

Re: Cant port forward or upnp RB951Ui-2HnD

No public IP, so you have a router in front of you. It only shows your LAN part. So you can not get NAT or uPnP to work in this router. You need to configure router in front of your Mikrotik Router. If this is an ISP, you can not configure it, but you can ask if they can bridge it, so you get a publ...
by Jotne
Sun Feb 27, 2022 9:18 pm
Forum: Beginner Basics
Topic: Cant port forward or upnp RB951Ui-2HnD
Replies: 13
Views: 597

Re: Cant port forward or upnp RB951Ui-2HnD

/8 i havent touched, everything is default except for enabling poe and mucking about trying to get port forwarding and then upnp working. I have never seen /8 as a default configuration. And as 404Network writes, you should start over. PS and do not QUOTE the full post above you. If you have not se...
by Jotne
Sun Feb 27, 2022 8:12 pm
Forum: Beginner Basics
Topic: Cant port forward or upnp RB951Ui-2HnD
Replies: 13
Views: 597

Re: Cant port forward or upnp RB951Ui-2HnD

/ip address add address=192.168.88.1/8 interface=ether2 network=192.0.0.0 Innside IP should be set on bridge and not on interface part of a bridge. And do you really need a /8 with 16,777,216 IP address.????? For normal home nett /24 with 256 IP should be more than enough. I do not see any DHCP ser...
by Jotne
Sun Feb 27, 2022 5:59 pm
Forum: Scripting
Topic: if enable interface do something
Replies: 4
Views: 281

Re: if enable interface do something

You can use Netwatch. Give an IP on the other side. If ip goes away, send email.
by Jotne
Sun Feb 27, 2022 11:31 am
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Script comparability v6<->v7 problems [SOLVED]

Thanks for the update and explanation rextended :)
Now it work both on 7.x and 6.x
by Jotne
Sat Feb 26, 2022 10:11 pm
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Script comparability v6<->v7 problems [SOLVED]

@Jonte, which one, and what problem you having? I can offer what see in @rextended's examples below, but can't vouch that's all the V7 issues.
My latest postet script do work on both 6 and 7, but version rextended posted does not work on v7.
by Jotne
Sat Feb 26, 2022 5:59 pm
Forum: General
Topic: My Mikrotik HAP ac Have Small Bytes count on IP Accounting
Replies: 1
Views: 2909

Re: My Mikrotik HAP ac Have Small Bytes count on IP Accounting

Not a direct reply to your question, but IP Accounting is going a way (not included in v7). I have used it in my Splunk MikroTik monotoring. Se link in my signature. So to still get accounting data from each client in v7, I moved over to use Kid Control that gives much of the same information (set u...
by Jotne
Sat Feb 26, 2022 5:41 pm
Forum: Announcements
Topic: Mēris botnet information
Replies: 89
Views: 168394

Re: Mēris botnet information

@wongdi Telnet/SSH/Winbox should never ever be open to the router from outside IP. Seeing your logs that someone tries to connect from public IP tells us that its open. VPN is nearly to one good way to work on remote routers. Make a new post (not this thread). Post your complete config and ask for a...
by Jotne
Sat Feb 26, 2022 5:37 pm
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Script comparability v6<->v7 problems [SOLVED]

My version do work at both 6 and 7. What do I need to make rextendeds script to work on 7.x?
by Jotne
Sat Feb 26, 2022 12:01 pm
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Script comparability v6<->v7 problems [SOLVED]

Does not work. Tested in 7.1.2

Pasting this to terminal, does not give anything.
:parse "/export show-sensitive file=test.rsc"
But this works:
[:parse "/export show-sensitive file=test.rsc"]
by Jotne
Sat Feb 26, 2022 12:29 am
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Re: Script comparability v6<->v7 problems [SOLVED]

Perfect. Did learn some new today, so thank you for the help :) Was just what I needed and have tested the script on various version and works fine. # # Created Jotne 2022 v1.3 # # 1.1 Added "show-sensitive" # 1.3 Fixed v6/v7 compability # # Takes two different backup and send then to emai...
by Jotne
Fri Feb 25, 2022 9:03 pm
Forum: Scripting
Topic: Backup config to Gmail v1.4 [SOLVED]
Replies: 27
Views: 2070

Backup config to Gmail v1.4 [SOLVED]

Backup script to send config to Gmail account. # # Created Jotne 2022 v1.4 # # 1.4 Added Router OS version # 1.3r Revised by REX # 1.3 / 1.2 try to fix v6/v7 compability # 1.1 added "show-sensitive" # 1.0 initial release # # Takes two different backup and send then to email # # backup.rsc ...
by Jotne
Fri Feb 25, 2022 1:19 pm
Forum: Scripting
Topic: Confirm reboot in script
Replies: 2
Views: 315

Re: Confirm reboot in script

Why do you need to reboot every day?
by Jotne
Wed Feb 23, 2022 5:17 pm
Forum: Announcements
Topic: v7.1.3 is released!
Replies: 272
Views: 38171

Re: v7.1.3 is released!

Oh, thank you so much!, its possibe to disable or remove? thanks
Why?
by Jotne
Tue Feb 22, 2022 8:06 pm
Forum: Scripting
Topic: Block IP after 3 time hotspot login failures
Replies: 7
Views: 677

Re: Block IP after 3 time hotspot login failures

How do you see that a user has 3 times login failure? From the log?
If its from the log, you can modify this script to search for log inn errors:
viewtopic.php?p=743875#p743875
by Jotne
Tue Feb 22, 2022 8:00 pm
Forum: Scripting
Topic: How can I write here from line 1 to 50?
Replies: 6
Views: 444

Re: How can I write here from line 1 to 50?

From this in OPs post "/system/logging/remove", I do assume he is talking about deleting configuration of logging, not logging entries (that can not be deleted).
by Jotne
Tue Feb 22, 2022 3:44 pm
Forum: Scripting
Topic: How can I write here from line 1 to 50?
Replies: 6
Views: 444

Re: How can I write here from line 1 to 50?

You can do :for i from=0 to=50 do={ :put $i } But take care!! What you see from /system logging print Flags: X - disabled, I - invalid, * - default # TOPICS ACTION PREFIX 0 X* info memory 1 * error memory 2 * warning memory 3 * critical echo 4 dhcp logserver MikroTik 5 !debug logserver MikroTik !pac...
by Jotne
Tue Feb 22, 2022 11:17 am
Forum: Scripting
Topic: How can I write here from line 1 to 50?
Replies: 6
Views: 444

Re: How can I write here from line 1 to 50?

What is your goal? Remove all logging config?
by Jotne
Tue Feb 22, 2022 11:15 am
Forum: Scripting
Topic: Block IP after 3 time hotspot login failures
Replies: 7
Views: 677

Re: Block IP after 3 time hotspot login failures

Are anything added to the access list "hotspot_blacklist"
by Jotne
Mon Feb 21, 2022 10:03 pm
Forum: Announcements
Topic: v7.1.3 is released!
Replies: 272
Views: 38171

Re: v7.1.3 is released!

Try to upgrade to latest 6.x, before you look from Upgrade.
by Jotne
Mon Feb 21, 2022 9:33 pm
Forum: Scripting
Topic: Block IP after 3 time hotspot login failures
Replies: 7
Views: 677

Re: Block IP after 3 time hotspot login failures

1. Do not quote post above you. There is a big Post Reply button under the post to use to reply. 2. Do use code tags when posting code. </> button above the post. I have cleaned up the script and added code tags to be able to read it. #Hotspot IP to MAC binding# :foreach a in=[/ip firewall address-l...
by Jotne
Mon Feb 21, 2022 3:35 pm
Forum: Beginner Basics
Topic: How do I block unknown devices?
Replies: 15
Views: 1003

Re: How do I block unknown devices?

Blocking all and open certain sites may be a way to go. Many sites do not work with just one IP open, everything is interconnected.
But then the kids just use their cellular network, friends cellular network, neighbor wifi etc.
by Jotne
Mon Feb 21, 2022 12:47 pm
Forum: Beginner Basics
Topic: How do I block unknown devices?
Replies: 15
Views: 1003

Re: How do I block unknown devices?

block thing like facebook.com Can not be done. Same as with torrent etc. As long as you do not have 100% control of the clients (typical a corporate network), you are out of luck. You can try block DNS: Client uses another DNS You try to redirect DNS: Clients uses DoH You try to block IP: Facebook ...
by Jotne
Mon Feb 21, 2022 12:40 pm
Forum: Scripting
Topic: Block IP after 3 time hotspot login failures
Replies: 7
Views: 677

Re: Block IP after 3 time hotspot login failures

If you can see it in the logs, you can make a script for it.
This is nearly the same as block VPN user not authenticate correctly.
See here:
viewtopic.php?t=148397
by Jotne
Sun Feb 20, 2022 8:23 pm
Forum: Scripting
Topic: Why did I buy this shite
Replies: 5
Views: 628

Re: Why did I buy this shite

Like this: { :local myVar :set myVar "my value" :put $myVar } or shorter { :local myVar "my value" :put $myVar } No need for ; at end of line. Just when multiple commands are on sime line. To Mikrotik . Please clean up the ; at end of each line. Some code has it some not, be cons...
by Jotne
Sun Feb 20, 2022 8:18 pm
Forum: Scripting
Topic: Random String
Replies: 5
Views: 2211

Re: Random String

This was an old thread to comment.
To get a random password:
viewtopic.php?t=164114
by Jotne
Sat Feb 19, 2022 10:20 pm
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

I'd call it a WinBox feature, not a bug.
Table are far from equal.
Bridge/Host has on my test router 40 entry and only mac

IP/Arp has 7 item and do include IP and MAC

I do like that Cli and WinBox show the same at same place in the same menu structure (MT are far off for the latter).
by Jotne
Thu Feb 17, 2022 12:17 pm
Forum: Scripting
Topic: Help with remove Command
Replies: 2
Views: 316

Re: Help with remove Command

What is the output of:
:put [/ip firewall connection find where connection-type=sip]
and
:put [/ip firewall connection find where connection-mark=SIP]
If its more than one, you may need to loop trough it.
by Jotne
Thu Feb 17, 2022 12:10 pm
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

In 7.2.1 (7.x) you can get Bridge Port for the IP arp list. But this seems to work only in WinBox. Is this a bug, or is it a hidden command to see it in the terminal as well? If its a bug, please fix. If I miss some, please enlighten me :)
.
BridgePort.jpg
by Jotne
Tue Feb 15, 2022 5:27 pm
Forum: Announcements
Topic: v6.49.3 [stable] is released!
Replies: 69
Views: 14346

Re: v6.49.3 [stable] is released!

Or some forgot that it was done :) Just another strange notice. I do always open this page with scripts and announcement: https://forum.mikrotik.com/viewforum.php?f=9 to look for new releases and scripts problem. But this time this page does not show the new 6.49.3 post???? But if you look at this p...
by Jotne
Tue Feb 15, 2022 2:24 pm
Forum: Announcements
Topic: v6.49.3 [stable] is released!
Replies: 69
Views: 14346

Re: v6.49.3 [stable] is released!

If this compile time is true, this is the far longest time between compile date and post date. Longest I did found other than this is the 19 day for 6.42.11.
viewtopic.php?t=143805

:)
by Jotne
Tue Feb 15, 2022 1:31 pm
Forum: Announcements
Topic: v6.49.3 [stable] is released!
Replies: 69
Views: 14346

Re: v6.49.3 [stable] is released!

try again, it should work correctly now
Was 6.49.3 really compiled Des 22 2021?
.
6.49.3.jpg
by Jotne
Mon Feb 14, 2022 8:30 pm
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

Ping from where to where? If its over internet you do not have much control.
What do you get when you ping from a device connected to the router, to the router? Did that go up?
by Jotne
Mon Feb 14, 2022 8:22 am
Forum: Useful user articles
Topic: 📌 Tool: Using Splunk to analyse MikroTik logs 3.6 (Graphing everything) 💾 🛠 💻 📊
Replies: 104
Views: 25545

Re: &#128204; Tool: Using Splunk to analyse MikroTik logs 3.5 (Graphing everything) &#128190; &#128736; &#128187; &#1282

You did not post output of my command above. With that I can see if logs looks like what I expect. I did forget to ask on what platform you do run Splunk. Some of my first information in my first post: Installation 1) On your PC Works on Windows and Linux, but use Linux (clearly the best choice and ...
by Jotne
Fri Feb 11, 2022 3:19 pm
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

I do see some strange on a 750Gr3 running 6.49.2 When I select upgrade, it shows 7.1.2 That is ok. But when I select testing, it shows 7.1.1??? Why would some one install 7.1.1 when 7.1.2 on the same train is released? 7.2.rc2 is not shown in any of the channels. Development gives ERROR: file not fo...
by Jotne
Fri Feb 11, 2022 10:59 am
Forum: Announcements
Topic: WinBox v3.33 and v3.34 released!
Replies: 115
Views: 15222

Re: WinBox v3.33 and v3.34 released!

I did just take a look at release history of Winbox 3.x since first release in 2015. It's a very clear trend that Winbox upgrade are released in bulk at same short time periods. Then it can goes up to nearly 1 year without new version. Maybe some more testing before release should be a good thing. :)
by Jotne
Fri Feb 11, 2022 8:19 am
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

Can't find this update on my RB5009. Have checked for updates in /system packages
Quick Set > Check for updates shows installed version 7.0.5 and latest version 6.49.2
Upgrade to 6.49.2 and you should see 7.1.2
by Jotne
Thu Feb 10, 2022 8:02 pm
Forum: Scripting
Topic: Compute IPv4 addresses in script [SOLVED]
Replies: 2
Views: 463

Re: Compute IPv4 addresses in script [SOLVED]

A quick google search:
viewtopic.php?t=116253

PS I have not tested it.
by Jotne
Thu Feb 10, 2022 3:43 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 20
Views: 4917

Re: need to save simple queue output to a file

Try change from :put ("name=\"" . $qName . "\" target=" . $qTarget . " bytes=" . $qBytes . " enabled=" . $qStatus) to: :local logmessage ("name=\"" . $qName . "\" target=" . $qTarget . " bytes=" . $qBytes . &qu...
by Jotne
Thu Feb 10, 2022 11:56 am
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

what is 6to4 tunnel? Where did you see this? I do not see any mention on 6to4 in this post. Found on google 6to4 tunnels enable isolated IPv6 sites to communicate across an automatic tunnel over an IPv4 network that does not support IPv6. To use 6to4 tunnels, you must first configure a boundary rou...
by Jotne
Thu Feb 10, 2022 11:27 am
Forum: Announcements
Topic: v7.1.2 is released!
Replies: 136
Views: 24971

Re: v7.1.2 is released!

Upgraded all my devices...no problem upgrading.
If this is a huge production network, you have big balls, 42 min after release :)
I always wait some weeks (reading forums) to see if some goes wrong.
Also test one test router that are like my production routers to make sure all my functions works.
by Jotne
Thu Feb 10, 2022 8:20 am
Forum: Announcements
Topic: v7.1.1 is released!
Replies: 468
Views: 139532

Re: v7.1.1 is released!

This is fixed in 7.2rc2.
Still very long export time on devices with little CPU in 7.2rc2 (compare to 6.x)
viewtopic.php?p=908897#p908897
  • 1
  • 2
  • 3
  • 4
  • 5
  • 11