Community discussions

MikroTik App

Search found 24 matches

by thiagomedeiros
Mon Mar 11, 2024 1:42 am
Forum: Scripting
Topic: Script - Zabbix - Getting values from ping and loss inside Mikrotik
Replies: 0
Views: 295

Script - Zabbix - Getting values from ping and loss inside Mikrotik

Well, work is done. This use Zabbix to get a value from ping and loss inside Mikrotik. Template for Zabbix 6.0 OBS: Only run with SNMP read/write access. Please use SNMP version 3! You need to create the script into Mikrotik with a start name: Ping Example: Ping - something else. Into Mikrotik, crea...
by thiagomedeiros
Mon Mar 11, 2024 12:55 am
Forum: Scripting
Topic: snmpwalk/snmpget can't read global variable [SOLVED]
Replies: 12
Views: 1209

Re: snmpwalk/snmpget can't read global variable [SOLVED]

Well, work is done. This use Zabbix to get a value from ping and loss inside Mikrotik. Template for Zabbix 6.0 OBS: Only run with SNMP read/write access. Please use SNMP version 3! You need to create the script into Mikrotik with a start name: Ping Example: Ping - something else. Into Mikrotik, crea...
by thiagomedeiros
Sun Mar 10, 2024 11:47 pm
Forum: Scripting
Topic: snmpwalk/snmpget can't read global variable [SOLVED]
Replies: 12
Views: 1209

Re: snmpwalk/snmpget can't read global variable [SOLVED]

@Amm0

The SNMP run with a user called *sys, and this user can't read another vars from other users.
by thiagomedeiros
Sun Mar 10, 2024 11:17 pm
Forum: Scripting
Topic: snmpwalk/snmpget can't read global variable [SOLVED]
Replies: 12
Views: 1209

Re: snmpwalk/snmpget can't read global variable [SOLVED]

This is very weird: Don't Work: ping address=8.8.8.8 interval=200ms count=3 as-value iso.3.6.1.4.1.14988.1.1.18.1.1.2.12 = "" Works: ping address=8.8.8.8 interval=200ms count=3 iso.3.6.1.4.1.14988.1.1.18.1.1.2.12 = STRING: " SEQ HOST SIZE TTL TIME STATUS 0 8.8.8.8 56 58 36ms775us 1 8....
by thiagomedeiros
Sun Mar 10, 2024 10:14 pm
Forum: Scripting
Topic: snmpwalk/snmpget can't read global variable [SOLVED]
Replies: 12
Views: 1209

Re: snmpwalk/snmpget can't read global variable [SOLVED]

@optio I think you are right.

Tryed this and worked:

:global test;
:set $test 123;
:put $test;

iso.3.6.1.4.1.14988.1.1.18.1.1.2.12 = STRING: "123"
by thiagomedeiros
Sat Mar 09, 2024 5:02 pm
Forum: Scripting
Topic: snmpwalk/snmpget can't read global variable [SOLVED]
Replies: 12
Views: 1209

snmpwalk/snmpget can't read global variable [SOLVED]

RouterOS ver 7.14 Global environment declared before: test=123 Script code: /system script add dont-require-permissions=no name=test policy=read,write,policy,test source=":global test; :put \$test;" Listing name from SNMP: snmpwalk -v3 -l authPriv -u mkuser -a SHA -A xxxxxxxx -x DES -X xxx...
by thiagomedeiros
Tue Feb 13, 2024 4:07 pm
Forum: General
Topic: IPv6 DHCP Lease time = 24820d
Replies: 2
Views: 385

Re: IPv6 DHCP Lease time = 24820d

Ok, thanks!
by thiagomedeiros
Sun Feb 11, 2024 6:10 pm
Forum: General
Topic: IPv6 DHCP Lease time = 24820d
Replies: 2
Views: 385

IPv6 DHCP Lease time = 24820d

Hi, my IPv6 lease time is showing 24820d, this is a bug? (18 messages discarded) 12:58:54 echo: dhcp,debug,packet -> clientid: 00030001 789a1826 e70c 12:58:54 echo: dhcp,debug,packet -> serverid: 00030001 08ecf514 829f 12:58:54 echo: dhcp,debug,packet -> ia_pd: 12:58:54 echo: dhcp,debug,packet t1: 1...
by thiagomedeiros
Wed Dec 21, 2016 5:07 am
Forum: General
Topic: How to set Service Ports connections timeout
Replies: 5
Views: 6270

Re: How to set Service Ports connections timeout

Thank you Van, I'll ask for a feature request.
by thiagomedeiros
Mon Dec 19, 2016 5:01 pm
Forum: General
Topic: How to set Service Ports connections timeout
Replies: 5
Views: 6270

Re: How to set Service Ports connections timeout

Don't work. I need every time to go to ip firewall service ports, disable and enable pptp, to the gre connection finish. The default time is 5h. I don't like this.

Image
by thiagomedeiros
Fri Dec 16, 2016 7:44 am
Forum: General
Topic: How to set Service Ports connections timeout
Replies: 5
Views: 6270

How to set Service Ports connections timeout

Hi, I would like to set NAT helper timeout (Service Ports) for PPTP protocol, is this possible? By default the time is 5 hours. Can I change this to another value? PS: Connection tranking don't work for service ports to limit connection time. Se below: My service port configuration: /ip firewall ser...
by thiagomedeiros
Mon Nov 14, 2016 2:09 pm
Forum: Beginner Basics
Topic: Assigning different functions for interfaces
Replies: 5
Views: 1445

Re: Assigning different functions for interfaces

Create a new NAT for this port.
by thiagomedeiros
Sun Nov 13, 2016 3:56 am
Forum: General
Topic: Two Seperate LAN Networks Behind One RB750 ?
Replies: 13
Views: 16528

Re: Two Seperate LAN Networks Behind One RB750 ?

You can remove port 3 or 4 from the master switch. Select none at interface. Doing this you can set a DHCP server for every network without conflicts and can do some more. http://uploads.tapatalk-cdn.com/20161113/088eb3347f25d7f67f596f30b6ef599f.jpg Remeber to not use the same cables in the 24 ports...
by thiagomedeiros
Thu Oct 06, 2016 5:21 pm
Forum: General
Topic: [Fixed in 6.34] IPv6 address from Pool stays invalid
Replies: 12
Views: 4853

Re: [Fixed in 6.34] IPv6 address from Pool stays invalid

I have the same problem in version 6.37.1. My routerboard is a RB750UP.

See this video with the problem and how I solve them: https://dl.dropboxusercontent.com/u/282 ... Wantel.mp4
by thiagomedeiros
Sun Jul 31, 2016 9:48 pm
Forum: Scripting
Topic: DNS-O-Matic auto update this work with microtik 5.26
Replies: 8
Views: 2406

Re: DNS-O-Matic auto update this work with microtik 5.26

Replace this: # get the current IP address from the internet (in case of double-nat) /tool fetch mode=http address="checkip.dyndns.org" src-path="/" dst-path="/dyndns.checkip.html" :local result [/file get dyndns.checkip.html contents] # parse the current IP result :loc...
by thiagomedeiros
Sun Jul 31, 2016 9:44 pm
Forum: Scripting
Topic: Determining public IP
Replies: 3
Views: 1647

Re: Determining public IP

You like fast response and giving solution? Using this: http://forum.mikrotik.com/viewtopic.php?f=9&t=87068#p436788 You can do that: set myip.dnsomatic.com to be reachable on route 2, run this each reasonable time: /tool fetch mode=http keep-result=yes url="http://myip.dnsomatic.com/index....
by thiagomedeiros
Sun Jul 31, 2016 9:19 pm
Forum: Scripting
Topic: DDNS script for *.sn.mynetname.net with WAN interface behind NAT
Replies: 7
Views: 34304

Re: DDNS script for *.sn.mynetname.net with WAN interface behind NAT

You don't need to fetch a file, replace this: #get current external IP tool fetch mode=http url="http://myip.dnsomatic.com/mypublicip.txt" :delay 1 :local currentIP [/file get mypublicip.txt contents ] /file remove "mypublicip.txt" To this: :global currentIP [:resolve myip.opendn...
by thiagomedeiros
Sun Jul 31, 2016 9:15 pm
Forum: Scripting
Topic: Find External IP ? [SOLVED]
Replies: 26
Views: 89248

Re: Find External IP ? [SOLVED]

is there any way you can make it print the variable or does it have to save to a file.
Yes, you can do this:
:global currentIP [:resolve myip.opendns.com server=208.67.222.222];

Will always return your public IP. Not needed to download/fetch a file.
by thiagomedeiros
Sat Jul 30, 2016 7:58 pm
Forum: Scripting
Topic: Dyndns.org script, now to remove all log info ?
Replies: 19
Views: 10021

Re: Dyndns.org script, now to remove all log info ?

Hi all, first of all sorry for my bad english, I'm Brazilian. So, reading the DNS-O-Matic API - (https://dnsomatic.com/wiki/api) - Documentation says: For clients using OpenDNS, a DNS request for myip.opendns.com will always return the public IP of the client. And I tried: :global currentIP [:resolv...
by thiagomedeiros
Wed May 23, 2012 5:42 pm
Forum: Scripting
Topic: Script to redirect a page with a timer
Replies: 4
Views: 4340

Re: Script to redirect a page with a timer

Spanish: ¿Hay una manera de hacer el desbloqueo se realiza sólo cuando el usuario accede a una página, de lo contrario permanecer encerrado hasta que se realice esta acción? En BrazilFW bloqueo estuvo activo hasta el usuario hace clic en Continuar (en la alerta a la página redireccionada). Por ejemp...
by thiagomedeiros
Tue May 22, 2012 9:12 pm
Forum: Scripting
Topic: Script to redirect a page with a timer
Replies: 4
Views: 4340

Re: Script to redirect a page with a timer

It works very well, thank you!
by thiagomedeiros
Thu Apr 19, 2012 12:29 am
Forum: Scripting
Topic: Script to redirect a page with a timer
Replies: 4
Views: 4340

Re: Script to redirect a page with a timer

Thanks, i'll try next week. I'm travelling now.
by thiagomedeiros
Tue Apr 03, 2012 11:03 pm
Forum: Scripting
Topic: Script to redirect a page with a timer
Replies: 4
Views: 4340

Script to redirect a page with a timer

Hi i'm a novice with Mikrotik. Before this i used BrazilFW. Now i have a RB750UP 5.14 version, and i have some clients that i share my connection with them. But, you know, some clients takes some time to pay and i need to show a warning page to this clients. I imagined a script that redirect all pag...