Page 1 of 1

Fail-Over

Posted: Fri Apr 12, 2019 3:52 am
by facubertran
Hello!
I share failover script for Mikrotik. Please if you find any bad report me.

https://guias.crenein.com/wp/?p=279

Re: Fail-Over

Posted: Fri Apr 12, 2019 4:01 am
by vecernik87
ahahahahaha:
/tool fetch mode=https url="https://#####.com/Crenein-Install-FaOv.rsc"
/import file="Crenein-Install-FaOv.rsc"
(domain changed on purpose so nobody can accidentally run it)

@facubertran: wait... seriously? Do you expect anyone to download and run ambiguous script on their device? Why don't you just ask for ip, username and password straight away? :lol: (I know why - there might be firewall preventing access from WAN)

@everyone: If you are not aware,
/tool fetch
can be easily detected on the server thanks to "HTTP_USER_AGENT", therefore your router may be served different script, than the one which you see in the browser. Never ever run scripts without prior manual inspection.

Re: Fail-Over

Posted: Fri Apr 12, 2019 6:33 pm
by facubertran
Sorry. Also you can download RSC file and you can inspect it. :wink: :wink:

Re: Fail-Over

Posted: Fri Apr 12, 2019 6:58 pm
by facubertran
ahahahahaha:
/tool fetch mode=https url="https://#####.com/Crenein-Install-FaOv.rsc"
/import file="Crenein-Install-FaOv.rsc"
(domain changed on purpose so nobody can accidentally run it)

@facubertran: wait... seriously? Do you expect anyone to download and run ambiguous script on their device? Why don't you just ask for ip, username and password straight away? :lol: (I know why - there might be firewall preventing access from WAN)

@everyone: If you are not aware,
/tool fetch
can be easily detected on the server thanks to "HTTP_USER_AGENT", therefore your router may be served different script, than the one which you see in the browser. Never ever run scripts without prior manual inspection.
https://bitbucket.org/facubertran/crene ... rc/master/

Re: Fail-Over

Posted: Mon Apr 22, 2019 10:43 pm
by Lupin
Can you explain, how it works?

Re: Fail-Over

Posted: Tue Apr 23, 2019 4:02 am
by facubertran
Can you explain, how it works?
It's very difficult. But the rule is. Probe - Fail action - Notification.
The probes are interface running status, gateway status, traffic in the interface, ICMP and HTTP. If all are fail, the script runn other script for notification and execute an action, for example, disable gateways in the route table.

Re: Fail-Over

Posted: Tue Apr 23, 2019 5:32 pm
by plisken
Hello!
I share failover script for Mikrotik. Please if you find any bad report me.

https://guias.crenein.com/wp/?p=279
Copy the script into the window. Use not a link to another website please

Re: Fail-Over

Posted: Thu Apr 25, 2019 11:37 pm
by facubertran
Hello!
I share failover script for Mikrotik. Please if you find any bad report me.

https://guias.crenein.com/wp/?p=279
Copy the script into the window. Use not a link to another website please
There are several extensive files.

Re: Fail-Over

Posted: Fri Apr 26, 2019 1:41 am
by NetWorker
@facubertran: wait... seriously? Do you expect anyone to download and run ambiguous script on their device? Why don't you just ask for ip, username and password straight away? :lol:
:lol: :lol: :lol: :lol: :lol: :lol:
Copy the script into the window. Use not a link to another website please
What he said!!

Besides, any script that doesn't fit in three or four posts is either a resource hog or poorly written. ;)