Skip to content

Commit

Permalink
don't masquerade services or pod traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 8, 2024
1 parent b6756b9 commit 1aa2359
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/dataplane/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ func (c *Controller) syncRules(ctx context.Context) {
SetName: apis.PodRangesV4Set,
Invert: true,
},
&expr.Lookup{
SourceRegister: 1,
SetName: apis.ServiceIPsV4Set,
Invert: true,
},
// [ masq flags 0x10 ]
&expr.Masq{
FullyRandom: true,
Expand Down Expand Up @@ -293,6 +298,11 @@ func (c *Controller) syncRules(ctx context.Context) {
SetName: apis.PodRangesV6Set,
Invert: true,
},
&expr.Lookup{
SourceRegister: 1,
SetName: apis.ServiceIPsV6Set,
Invert: true,
},
// [ masq flags 0x10 ]
&expr.Masq{
FullyRandom: true,
Expand Down

0 comments on commit 1aa2359

Please sign in to comment.