I am trying to get two IP addresses that are presented on the MT from two different ISP’s to be natted to the same internal host, this is basically to provide redundancy! I have go it working in that the nat’ed addresses do work and I can contact the servers using these addresses, though I don’t think the traffic is flowing back via the address / connection it was natted from and is using its standard route. Anybody any experience with this or any examples of the setup?
I have been trying to make this work for ages and have tried the above solution too. It does not seem to work. I can only remote desktop from the default route. If I change the default route to the other wan interface, i can connect but not from the first. The only difference is that i do not masquarade each interface individually but more like this
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=
“place hotspot rules here” disabled=yes
add action=masquerade chain=srcnat comment=NAT disabled=no out-interface=
“!Lan Interface”
you need to mark connections, mark packets, and then mark routing. in your example below you are not marking packets, only connections, which is pretty much just the SYN packets.
Where you refering to my post? I just noted that i do not have a rule for each wan interface, i bundled them all together and i was nor sure if it made any differece.
add action=mark-connection chain=forward comment=
“New packets from Wan Interfaces” connection-state=new disabled=no
in-interface=ether2 new-connection-mark=“New Incoming Eth2” passthrough=
no
add action=mark-packet chain=prerouting comment=“” connection-mark=
“New Incoming Eth2” disabled=no new-packet-mark=“New Incoming Eth2”
passthrough=no
add action=mark-routing chain=prerouting comment=
“New packets to Wan Interfaces” disabled=no new-routing-mark=
“New Outgoing Eth2” packet-mark=“New Incoming Eth2” passthrough=no
You mean something like this? This does not work too. Tried with connection-state=new and without it. Without it i noticed that the counters are exactly the same for packet mark and packet routing. I still cannot connect though.
Tried every possible variation with prerouting and forward.
did you basically duplicate your main routing table in the ‘New Outgoing Eth2’ routing table? you need to add the connected routes into that table as well as the alternate default gateway. I think you might also need a single mangle output chain rule to catch the traffic from the router itself (pings to router).
When 194.30.234.129 gateway is down 192.168.5.254 gateway takes over. 192.168.1.254,192.168.3.254 etc gateways are adsl modems
194.30.234.129 is a bridged cisco leased line with static ips (no natting)
Hello, although this is very old post I have an identical scenario with the same rules and the NAT does not work.
I have two ISP connected to mikrotik and NAT to several different servers on the LAN. As described “infidel” just above: “If I change the default route to the other wan interface, i can connect but not from the first” …
The problem is resolved. Under those rules had mangle for QoS and other one was particularly crushing the mark-connection and mark-route is not applied.
Best regards.