Hello,
I have a router with 2 WAN interfaces (and many LAN interfaces…). WAN1 (1.1.1.2) → ISP1, WAN2 (2.2.2.2) → ISP2.
In the routing table, there are 2 default gateways:
0.0.0.0 Gw=1.1.1.1, 0.0.0.0 (routing-mark=to-ISP2) Gw=2.2.2.1
I have an IPSEC site-to-site tunnel between local address=2.2.2.2 and some remote address (e.g. 10.10.10.1) (at peer definition the local address is set).
The ipsec tunnel does not comes up. When I log the outgoing traffic, I found, that the ipsec local address (2.2.2.2) is src-natted to 1.1.1.2, and the traffic goes out to ISP1…
I do not undersand, why is it so.
I tried to create an output mangle rule for mark routing the traffic witch origin is 2.2.2.2, but no luck.
How can I force that the ipsec tunnel should leave the router to ISP2?
Thank you for your help!