Skip to content

Commit

Permalink
proxy/routes: Introduce fromEgressProxyRule
Browse files Browse the repository at this point in the history
Signed-off-by: Zhichuan Liang <gray.liang@isovalent.com>
  • Loading branch information
jschwinger233 authored and ti-mo committed Apr 25, 2024
1 parent 1dd2179 commit 7d278af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/proxy/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ var (
Table: linux_defaults.RouteTableFromProxy,
Protocol: linux_defaults.RTProto,
}

//nolint:unused // Routing rule for traffic from egress proxy.
fromEgressProxyRule = route.Rule{
Priority: linux_defaults.RulePriorityFromProxy,
Mark: linux_defaults.MagicMarkEgress,
Mask: linux_defaults.MagicMarkHostMask,
Table: linux_defaults.RouteTableFromProxy,
Protocol: linux_defaults.RTProto,
}
)

// installFromProxyRoutesIPv4 configures routes and rules needed to redirect ingress
Expand Down

0 comments on commit 7d278af

Please sign in to comment.