Use two WAN - One for browse internet, other to acces from internet

Hello.

I have an idea for my LAN, recently i have a new ISP with LTE connection and a very good speed, and also I have an ADSL connection with Public IP address.

I have a data server behind my router, and I need to access from everywhere, and I want to dedicate the ADSL with public IP to this server, and all the clients inside the LAN need to be take out to LTE gateway.

So I can use the Full ADSL speed to access the Data Server.
Also I need to administrate the router from the external network.

Can I do this???

Yes. You can.

Thanks, I know I can, but I tried a numerous methods and cannot make it work, that’s why I was asking…
Thanks again

Ok. Mangle incoming traffic and send the responses back to the wan from which it arrived. Beside that use the general routing rules with lower distance for first wan and higher distance to the second wan. Mangled traffic will keep where it should and the rest will go where you decide by priority.

Thanks for the help.... Could this be what you mentioned.....?

But with no luck..

here are the rules I made it, I hope I wrote them well enough, but they does not work at all..... still no connection from the outside wile I need to have everything else trough LTE...

the rules you mentioned to add in mangle table...


add action=jump chain=prerouting jump-target=classify
add action=mark-routing chain=prerouting connection-mark=DSL new-routing-mark=DSL
add action=mark-connection chain=classify in-interface=ether1 new-connection-mark=DSL
add action=mark-connection chain=classify in-interface=ether4 new-connection-mark=DSL
add action=mark-connection chain=classify new-connection-mark=LTE
add action=mark-routing chain=output connection-mark=DSL new-routing-mark=DSL


This part is all IP ---> routes table that I have in that part.

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 A S 0.0.0.0/0 190.129.11.113 1
1 A S 0.0.0.0/0 192.168.20.254 1
2 ADC 190.129.11.112/29 190.129.11.114 ether1 0
3 ADC 192.168.20.0/24 192.168.20.2 ether2 0
4 ADC 192.168.50.0/24 192.168.50.1 ether4 0
5 ADC 192.168.160.0/24 192.168.160.1 ether3 0
6 ADC 192.168.170.0/24 192.168.170.1 ether5 0

Rules for the default gateways

add comment="ENTEL ADSL Modem" distance=1 gateway=190.129.11.113 routing-mark=DSL
add comment="ENTEL LTE Modem" distance=1 gateway=192.168.20.254

NAT rules to masquerade the connections..... In this part I also tried, to add routing mark first, and connection mark too, no luck....

add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether2


Can somebody see what I'm doing wrong, I tried a numerous things, and nothing seems to work,.....


Thanks....