Im configuring a linux centos sever for testings and the network configuration for it is:
WAN 1= 192.168.1.103/24 eth0 WAN 2= 172.16.1.249/16 eth1 LAN = 192.168.10.1 eth2
server is configured to be a non transparent proxy without authentication, every client has configured the proxy and IP port on the browsers. Internet access is working fine from the client computers; computers are in the 192.168.10.x/24 range and also the default gateway for the computers is 192.168.10.1
We need to redirect windows Remote Desktop traffic from the LAN from eth2 to eth1 only. this because the WAN2 link is more stable and that fits our needs to keep the RDP session alive. The final destination server which has the RDP enabled so we can work has the IP 18.104.22.168/24 and access is provided by a router from the ISP.
How can I configure this in the server so RDP protocol (port 3389) can be redirected to eth1 and the rest of the traffic keeps using the eth0 link?
Im lost about what approach to take, i dont know for sure if this can be accomplished using iptables or if else it has to use iproute2.
Thanks in advance.