Community discussions

MikroTik App
 
jrosetto
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Fri Feb 19, 2016 9:15 pm

WAN Failover Question

Mon Aug 22, 2016 3:23 pm

I have a working failover with two internet providers using routes and distances. I had a situation where the primary internet was down but the gateway was still pingable so the internet didn't failover. Is there a way to monitor an external IP instead of the gateway to create the failover with the basic setup I have? I read a few articles but I'm still confused if this is possible or not.
wan1.PNG
wan2.PNG
You do not have the required permissions to view the files attached to this post.
 
User avatar
harvey
Member Candidate
Member Candidate
Posts: 131
Joined: Thu Apr 05, 2012 8:16 pm

Re: WAN Failover Question

Mon Aug 22, 2016 3:30 pm

Have you taken a look at this....

http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting

"But what if your modem is up, and telephone line is down?"
 
jrosetto
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Fri Feb 19, 2016 9:15 pm

Re: WAN Failover Question

Mon Aug 22, 2016 3:43 pm

Have you taken a look at this....

http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting

"But what if your modem is up, and telephone line is down?"
This is the script that is confusing to me. I'm confused about the virtual routes. Is this what I use for my public pingable servers? Basically I am looking to ping 208.67.222.222 instead of my gateway.
 
User avatar
harvey
Member Candidate
Member Candidate
Posts: 131
Joined: Thu Apr 05, 2012 8:16 pm

Re: WAN Failover Question

Tue Aug 23, 2016 10:59 am

Have you taken a look at this....

http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting

"But what if your modem is up, and telephone line is down?"
This is the script that is confusing to me. I'm confused about the virtual routes. Is this what I use for my public pingable servers? Basically I am looking to ping 208.67.222.222 instead of my gateway.
Take a look at this article that should fit your needs exactly. It's a script that monitors multiple servers on the internet and then it changes rules accordingly and can switch back.
 
IvoM
just joined
Posts: 3
Joined: Wed Aug 31, 2016 1:35 pm

Re: WAN Failover Question

Wed Aug 31, 2016 1:50 pm

Sorry for hijacking this thread, I'm new so bear with me.

I'm trying to get this "script" working for 2 day now but I'm having no luck so far.
I have a cable (WAN) and cellular (LTE) connection where as I'm trying to configure the LTE connection as a backup.

I did setup a small test config for testing purposes.
WAN GW: 192.168.51.1/24
LTE GW: 192.168.0.253/30
LAN: 192.168.88.0/24

I do see different routes become active/deactived when a link goes down but my default routes don't change at all. I attached the routes overview with both links up and down examples.

Is there anything I need to add in the Firewall Nat or Mangle rules?
/ip firewall nat
add action=masquerade chain=srcnat comment=ISP1 out-interface=WAN to-addresses=\
    192.168.0.254
add action=masquerade chain=srcnat comment=ISP2 out-interface=LTE to-addresses=\
    192.168.51.83
Mangle is empty

RouterOS 6.36.2. I hope there is someone who can point me in the right direction!
You do not have the required permissions to view the files attached to this post.
 
IvoM
just joined
Posts: 3
Joined: Wed Aug 31, 2016 1:35 pm

Re: WAN Failover Question

Thu Sep 01, 2016 10:58 pm

OK, I finally did solve with a stupid simple solution:
I changed the original default routes
dst 0.0.0.0/0 gw 192.168.51.1
dst 0.0.0.0/0 gw 192.168.0.254
to
dst 0.0.0.0/0 gw 10.1.1.1
dst 0.0.0.0/0 gw 10.2.2.2

that's all but it's finaly working for me :) Hopefully someone else will find this usefull

Who is online

Users browsing this forum: Ahrefs [Bot], hklt0110 and 95 guests