Community discussions

MikroTik App
 
michalhosna
just joined
Topic Author
Posts: 1
Joined: Fri Mar 03, 2023 5:45 pm

How to setup proper Multi WAN setup

Fri Mar 03, 2023 6:00 pm

Hi.
I have two uplink WAN connections (primary & backup) with two different public IP addresses on two different interfaces (ether1 & ether2).
Using srcnat masquerade and static routing on RB4011.

I'm trying to set up a robust multi-WAN failover setup with following features:

1. Keep existing NATed connections on the given WAN uplink when doing failover
- When I want to manually failover to a backup connection, all existing connections became "broken" for the users because they are routed/nated through different WAN IP addresses. Is there a way to keep existing connections on the given WAN link?

2. Send responses to incoming connections through the same uplink.
- I use the router as an L2TP Server and a Wireguard "Server". When connecting from the Internet using one of the public IPs the traffic should "return" using the same WAN uplink it came through. How to do this?

3. What is the current recommended automatic failover setup? Recursive routing?
3.a. How to solve "flapping" when the primary connection keeps coming up and down?

How to do this the best way in 2023 on RouterOS 7.8? Is there a guide/tutorial online I can find? All that I could find do not cover all the features and/or are old (pre ROS 7).

Thanks!
 
svgc
just joined
Posts: 1
Joined: Thu Mar 02, 2023 6:41 pm

Re: How to setup proper Multi WAN setup

Fri Mar 03, 2023 11:07 pm

Combine all 3 of these:
1. use "in interface" in NAT rules - set it to a given WAN interface
2. PCC for load balancing and Firewall marking for handling of in/out connections : https://help.mikrotik.com/docs/display/ ... mple3(PCC)
3. recursive failover: https://help.mikrotik.com/docs/pages/vi ... d=26476608
Last edited by svgc on Fri Mar 03, 2023 11:12 pm, edited 1 time in total.

Who is online

Users browsing this forum: Amazon [Bot], itsbenlol and 56 guests