Make your router run Scripts!

  Рет қаралды 12,386

MikroTik

MikroTik

Күн бұрын

Пікірлер: 26
@qsergii
@qsergii 4 ай бұрын
Debugger is missing! But perfect feature! Thank you!
@dhiaahmed5420
@dhiaahmed5420 4 ай бұрын
very informative tutorial, I wish you could do more videos about scripting 😊
@Gooloso98
@Gooloso98 4 ай бұрын
Ty 🙏 for adding newer methods to fetch. Now I can use cloudflare's API
@JB-df3ek
@JB-df3ek 4 ай бұрын
What is replacement for RB911-5HacD?
@mikrotik
@mikrotik 4 ай бұрын
L11UG-5HaxD
@olpchk1115
@olpchk1115 3 ай бұрын
Need more diagnostics and more available events for handling
@FinlayDaG33k
@FinlayDaG33k 4 ай бұрын
TIL: There is a built-in script editor.
@zactodd3144
@zactodd3144 4 ай бұрын
Have been scripting for years and finally have some of my questions answered, plus some I didn't know I had. Keep up the great work
@XxSpYxX
@XxSpYxX 4 ай бұрын
I wish scripting and scripts got into the UI
@alexhawes-hm3xt
@alexhawes-hm3xt 4 ай бұрын
instead of showing an example script of multiplying numbers can you show a real world script of internet failover between 2 connections that do not have static addresses please, this is a huge omission from ROS7, i've tried several scripts posted on the internet but nothing works consistently
@stevebot
@stevebot 4 ай бұрын
There are too many different failure and failover scenarios for there to be a single solution. At the most basic in your case, you let your WAN interfaces get their IP information and set their default routes, then you make a routing rule to push traffic out the interface you want to be primary and use gateway checking to let the router determine if they are viable and deactivate them as necessary. Good luck, failover is not an easy nut to crack and different failure modes with different carriers behave differently.
@alexhawes-hm3xt
@alexhawes-hm3xt 4 ай бұрын
@@stevebot Thanks, looks like I have some reading to do. I do love a good technical challenge but MT would be complete if this was a built-in feature.
@Fu86
@Fu86 4 ай бұрын
Nice easter egg in the endcard :)
@zenmaster24
@zenmaster24 4 ай бұрын
can scripts be triggered on events? eg a port gets unplugged/plugged in
@mikrotik
@mikrotik 4 ай бұрын
Most likely you can use Netwatch as a trigger, but if you want a realtime layer2 trigger, you could create a script that runs a 'while true' loop and parse the interface data on each step.
@olpchk1115
@olpchk1115 3 ай бұрын
@@mikrotik what a waste!
@RenzoRosales-sn4vb
@RenzoRosales-sn4vb 4 ай бұрын
Nice haircut! Great video
@ОлегХитрый
@ОлегХитрый 4 ай бұрын
Perfect explaining!
@Accountnummer
@Accountnummer 4 ай бұрын
So, is there also a script to make that when there is one wan-port failing, and a second WAN is ging to work as a failover, to delete all the running connections?
@raminrajabioskouei781
@raminrajabioskouei781 4 ай бұрын
yep
@Accountnummer
@Accountnummer 4 ай бұрын
Thanks guys. But, the issue i got is that when the internet fails over to the 2nd WAN, the connections are not failing over with port 5060 (SIP). I'm looking for a solution for that, and thought this could be an oppurtunity.
@jferdom
@jferdom 4 ай бұрын
@@Accountnummer Of course you can do that.. the command to kill the connections would be like this: /ip firewall connection remove [ find where dst-address~"^123.123.123.123:" || dst-address~"^231.231.231.231:" ] All of this supposing your PBX´s addresses are 123.123.123.123 and 231.231.231.231. Now you need to do some checks (with ping, for example) to only execute that at the right time. Wrap it all in a script, schedule it, and enjoy! You can search by dst-port instead of dst-address if you wish... Controlling RouterOS via CLI/Scripts is awesome. P.S. Mikrotik, please... Implement a DEBUGGER. PLEASE!!
@achillecisco
@achillecisco 4 ай бұрын
Nice !!!
@M4dM1ke
@M4dM1ke 4 ай бұрын
Nice!
Make your router run scripts, pt.2
5:51
MikroTik
Рет қаралды 6 М.
VRF basics with MikroTik
10:38
MikroTik
Рет қаралды 31 М.
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,5 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
IEEE Delta Academy - Cyber Security Intro Session
2:05:48
IEEE Menoufia SB
Рет қаралды 1,2 М.
Multiple uplinks using PCC, Load balancing
16:22
MikroTik
Рет қаралды 78 М.
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
NetworkChuck
Рет қаралды 1 МЛН
(1) Why We're Featuring MikroTik Routers
11:38
Category5 Technology TV with Robbie Ferguson
Рет қаралды 59 М.
Making Tmux Better AND Beautiful -- here’s how
10:56
typecraft
Рет қаралды 84 М.
What are VLANs and how to configure them (pt.1)
13:01
MikroTik
Рет қаралды 51 М.
Самый дорогой iPHONE 16 PRO MAX #shorts
0:58
Арсений Петров
Рет қаралды 2 МЛН