Community discussions

 
facubertran
just joined
Topic Author
Posts: 22
Joined: Sat Sep 24, 2016 4:18 pm

Fail-Over

Fri Apr 12, 2019 3:52 am

Hello!
I share failover script for Mikrotik. Please if you find any bad report me.

https://guias.crenein.com/wp/?p=279
Last edited by facubertran on Tue Apr 30, 2019 4:40 pm, edited 2 times in total.
 
User avatar
vecernik87
Long time Member
Long time Member
Posts: 640
Joined: Fri Nov 10, 2017 8:19 am

Re: Fail-Over

Fri Apr 12, 2019 4:01 am

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.
 
facubertran
just joined
Topic Author
Posts: 22
Joined: Sat Sep 24, 2016 4:18 pm

Re: Fail-Over

Fri Apr 12, 2019 6:33 pm

Sorry. Also you can download RSC file and you can inspect it. :wink: :wink:
Last edited by facubertran on Fri Apr 12, 2019 7:03 pm, edited 1 time in total.
 
facubertran
just joined
Topic Author
Posts: 22
Joined: Sat Sep 24, 2016 4:18 pm

Re: Fail-Over

Fri Apr 12, 2019 6:58 pm

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/
 
Lupin
Member Candidate
Member Candidate
Posts: 264
Joined: Mon Feb 16, 2009 10:22 pm
Location: Italy

Re: Fail-Over

Mon Apr 22, 2019 10:43 pm

Can you explain, how it works?
 
facubertran
just joined
Topic Author
Posts: 22
Joined: Sat Sep 24, 2016 4:18 pm

Re: Fail-Over

Tue Apr 23, 2019 4:02 am

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.
 
plisken
Forum Guru
Forum Guru
Posts: 2388
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Fail-Over

Tue Apr 23, 2019 5:32 pm

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
 
facubertran
just joined
Topic Author
Posts: 22
Joined: Sat Sep 24, 2016 4:18 pm

Re: Fail-Over

Thu Apr 25, 2019 11:37 pm

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.
 
NetWorker
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Sun Jan 31, 2010 6:55 pm

Re: Fail-Over

Fri Apr 26, 2019 1:41 am

@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. ;)

Who is online

Users browsing this forum: No registered users and 8 guests