-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node: udn: Ensure UDN traffic doesn't leak into default network servi…
…ces. In local gateway mode all UDN traffic that needs to exit the node was redirected to the host (via the mp-X port). There however it was injected into the br-ex/breth0 bridge where it got sent into the default network patch port (because the destination IP is that of a service CIDR). That traffic eventually reached the default network endpoint and the connection was successfully set up. The mode above is not the correct mode of operation for UDN. UDN pods should not be allowed to access any default network services (except select ones like kapi). To achieve that we change the br-ex/breth0 flows and add new per-UDN flows that detect traffic originated by a given network and only direct it back to that network's patch port. This commit updates the e2e test to cover this scenario. This change also indirectly fixes the fact that node port default services should not be accessible from UDN when the target IP is the local node IP (that traffic is now sent back to the UDN GR where no LB is configured for the default service). New flow specific unit tests are also added to make sure these flows are not accidentally removed in the future. Signed-off-by: Dumitru Ceara <[email protected]>
- Loading branch information
Showing
5 changed files
with
183 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.