Hi all,
I configured for my company a new CC1036-12G-4S (6.41.4) with 2 WAN on eth1 and eth2
I followed this guide: https://wiki.mikrotik.com/wiki/ECMP_load_balancing_with_masquerade
and it works correctly.
I have problems though when I have to reach an internal IP (10.10.10.10) .
I can reach only 1 rule at once and not both. This happens in a random way , probably every 10/15 minutes.
I use Google DNS.
Could you help me, kindly?
Regards
Ok, then you might need to add some mangle rules in order to allow packets to go out same gateway they entered, just do a search, there are info on google and this forum for that
So you want users to be able to access the same server from two different public IPs, WAN1 and WAN2.
Off the top of my head you need two dstnat rules to ensure the incoming unsolicited traffic goes to the server.
I would also make corresponding srcnat rules to ensure traffic goes out the same WANIP.
I initially thought this was not necessary as I thought the Router would keep track of incoming connections and ensure they got routed out properly but I am just a newbie LOL.
By the way, I am going to assume you limite by IP address who can access your server (otherwise it would be not as secure as possible).
Simply remove source addresses lists if not required.
/ip firewall nat
add action=srcnat chain=srcnat to WAN1_IPaddress comment=“SCR_NAT for Traffic Going Out WAN1” \ to WAN1_IPaddress
add action=srcnat chain=srcnat to WAN2_IPaddress comment=“SCR_NAT for Traffic Going Out WAN2” \ to WAN2_IPaddress
(don’t be alarmed, the TO Address becomes available when you select srcnat action. It does not mean where the outgoing traffic is going on the internet, it is used to
identify which public IP will get substituted for the private IP of your users (in this case the server).
(similarly the to address becomes available when selecting dstnat for action. In this case it is your server).
What I would like to know is what is the difference between the to address here and the destination address in the General area selection???)
The Mikrotik Support suggest me to use the additional rule (in mangle section) based on the chain:prerouting. Probably to mark incoming connections.
Do you think that’s the problem?
Thanks
You already mark connections, but only traffic to router (chain=input). If you do it in chain=prerouting, and add route marking in chain=forward for traffic from LAN and previously marked connections, it should work.