microsoft / SDN

This repo includes PowerShell scripts and VMM service templates for setting up the Microsoft Software Defined Networking (SDN) Stack using Windows Server 2016
Other
486 stars 541 forks source link

Source NAT issue on Windows Server 1803/1709 #250

Open angeloxx opened 6 years ago

angeloxx commented 6 years ago

I want to notify a problem with the Windows Source NAT used to manage the outgoing Container traffic.

Environment

Symptom

In both cases the problem seems to be the short range of source ports used to NAT the source traffic. Current workaround consist to setup the connection tracking on the Stonegate to "Loose" mode.

dineshgovindasamy commented 6 years ago

@JMesser81 @daschott @madhanrm - FYI

daschott commented 6 years ago

@angeloxx thank you for reporting this. I wonder if this is related to https://github.com/Azure/acs-engine/issues/3501

angeloxx commented 6 years ago

Thank you @daschott, but I think the issue is not related to that acs-engine issue; we're working in a on-premise environment and the issue is related to outgoing connection to an external service, outside the kubernetes cluster network. Outgoing packets reports the correct source ip address, but the assigned source port is not closed properly or reused too early without waiting the last FIN/FIN_ACK

daschott commented 5 years ago

Thanks @angeloxx. This issue I linked is a Kubernetes-specific feature that we're working on for the next Windows release. It sounds like what you are describing is a perf/concurrency issue that we need to investigate in more detail. But we have some other issues we are working through first in order to GA. Your issue is on our list of bugs though for tracking, which we are working through systematically.

You can also try to use the win-bridge plugin in the meanwhile (ETA for validation+new docs coming by the end of the month) to see if it helps at all. We had some binary changes recently.

eyenx commented 2 years ago

Any update on this issue? We have the exact same behaviour with Calico CNI