forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: nodeport: handle revDNAT for local backends at to-netdev/to-overlay
Replies by local service backends currently get their revDNAT processing in from-container. There's two problems with that: 1. we have cases where the packet doesn't reach this part of the from-container program (ie. redirect to host proxy), and 2. we're not handling replies by hostns backends at all. So add an additional check for RevDNAT in handle_nat_fwd() at to-netdev, before such an untranslated reply leaves the node. The same is needed for to-overlay, see 3a83623 ("bpf: add support for local NodePort via tunnel"). Fixes: cilium#22659 Fixes: cilium#22838 Fixes: cilium#21955 Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
- Loading branch information
1 parent
a12b9ec
commit 54a8631
Showing
4 changed files
with
193 additions
and
13 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
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