Hi,
I’m asking help for a configuration that worked on v6 routerOS but doesn’t work on v7.
I have 2 PPPoE WAN and one LAN. All internet trafic from goes on WAN1 with distance 1 and on WAN2 as failover with distance 5 and this works well.
I need to made a web server reachable from both WAN and I made these rules:
WAN1 and WAN2 are masquerade and internet is working on both interfaces.
NAT of ports 80/443 from WAN1 to 192.168.10.10 ports 80/443.
NAT of ports 80/443 from WAN2 to 192.168.10.10 ports 80/443.
If I point to WAN1 public IP, I see the web server on 192.168.10.10
Then I made two firewall mangle rules:
on prerouting chain traffic incoming on wan2 mark-connection=from_wan2
on prerouting (or output) chain traffic marked with connection-mark=from_wan2: new-routing mark: to_WAN2
Last, a routing rule for 0.0.0.0/0 with routing mark = to_WAN2, distance 1 - gateway PPPoE2 (WAN2).
I made also a row on /route rules for to_WAN2 route.
This did work on v6 routerOS but not on v7… why ?
I want that the web server is reachable both from WAN1 and WAN2 public IP.
I've never done this, but I would think RouterOS basic NAT would handle this without the mangling. It certainly will work up to the point where the router dst-nats the connection to the internal web server. When that server replies to the router, NAT should look at the reply and say, "Ah, this connection request came in on WAN2, so I should send it out that way, not via the default route."
But this is perhaps naive.
A possibly better guess: show your rules. Saying "NAT of ports" is vague by half, because you aren't specifying srcnat vs dstnat. Don't make us guess. Show us.
It probably doesn’t work because in v7 routing marks started applying to same-named routing tables and not routes (the routing-mark parameter was removed for them).
To adjust to this change, you will only add a routing table named "to_WAN2" or whatever the routing mark is, and add a default route pointing to WAN2 PPPoE interface in it:
@Andale
It would be easier if you posted your complete current configuration, following this:
bits and pieces here and there are confusing and there could be something else that is seemingly unrelated that could make the config not work properly.