I think I know what the problem is, .. however I'm not sure how to solve this
from what i gather
tcp:
SYN =>
<= SYN ACK
ACK =>
connection established
however, ..
WAN2 is a secundairy gateway while WAN1 is the default gateway, .. traffic is comming in through WAN2, however since the WAN1 is the default gateway of the client, it responds through WAN1, connection failed.
Exactly like johnpoz said earlier.
edit:
yes, if i change the route for that specific ip i can connect to the tcp, however now my question how can i make a dynamic route so that when I connect to it that traffic goes through the correct gateway. And that's why UDP works. It all makes sense now.
can this be solved with a routing daemon?