I have a turris router with two internet links connected to it (say wanA and wanB), and I am using mwan3 for load balancing those two links.
I have a few servers behind this router which I am using port-forwarding. So far all my servers are being accessed via wanA.
I was trying to setup port-forwarding to a new server so that incoming connections from wanB would be routed to this server.
I used luci to setup the port-forwarding, but I can't make it work.
I was using tcpdump/wireshark to find out if the incoming connections were reaching my server, behind the router, and indeed it is.
So I believe the replies to these incoming connections are going to lalaland instead of back to the client. For context, it is a webserver, but any other service is facing the same issue
I can see the incoming SYN connections, and my server replying the SYN/ACK, but seems like the router isn't properly sending the packets back to the client.
I'm guessing it's something related to the routing, but I'm not sure how to fix it.
Could somebody help me debug it?
Thanks
What I can see on the conntrack -E output is essentially, for obvious reasons I trimmed the IP public addresses :
...186 is the client I'm using to test
...158.184 is my router's WAN
10.0.0.99 is my server behind the router.
I've fixed it, so, just leaving the solution here in case somebody steps on it in the future.
My configuration was missing a policy/rule pair in my mwan3 configuration to allow traffic from my internal server to be routed back to a specific wan, instead of the default gateway, detailed steps on how to configure it are here: