I have a MKT connected to two xDSL Connections... Don't want Load Balancing but I want to access to one TS server on the LAN.
I can access the router via both connections with a routing rule and this is all ok.
I have a dst-nat over the default gateway to get the TS an it works ok. The problems com when I try to make a dst-nat with in interface the other gateway (not default) the rule don't work.
I have sniff in the mkt and I have seen that the packet arrives via the non default gateway, is translated to the lan server but is sent via the default gateway, not the interface where the packet arrives.
I have made a mangle rule that marks new connections to this server and then other that mark rounting based on this connection mark. I have created a routing policy to apply this routing mark, but still this don't work. I have sniffed in this situation and the packet arrives to the lan server but it don't return.
Here is my config;
Code: Select all
add chain=prerouting action=mark-connection new-connection-mark=Conexion-WIFI passthrough=yes connection-state=new in-interface=WIFI dst-port=33392 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark=100 passthrough=no connection-mark=Conexion-WIFI comment="" disabled=yes
Code: Select all
add chain=dstnat action=dst-nat to-addresses=192.168.100.6 to-ports=3389 in-interface=WIFI dst-port=33392 protocol=tcp comment="PAT de puertos TS sobre SRVSQL1" disabled=no
Code: Select all
add dst-address=0.0.0.0/0 gateway=XXX.XXX.XXX.XXX distance=1 scope=255 target-scope=10 routing-mark=100 comment="" disabled=no
Code: Select all
add src-address=XXX.XXX.XXX.XXX/32 action=lookup table=100 comment="" disabled=no
add routing-mark=100 action=lookup table=100 comment="" disabled=no
Greeted in advance
Tete