Skip to content

Commit

Permalink
Do not use egressIP on reply packets
Browse files Browse the repository at this point in the history
EgressIP namespaces should only force the egressIP when the pod is the
client. If the pod is the server we want to reply normally.
  • Loading branch information
Juan-Luis de Sousa-Valadas Castaño committed Jan 5, 2021
1 parent 9b44e03 commit 4e34aea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/network/node/ovscontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (oc *ovsController) SetupOVS(clusterNetworkCIDR []string, serviceNetworkCID
otx.AddFlow("table=100, priority=300,udp,udp_dst=%d,actions=drop", vxlanPort)
otx.AddFlow("table=100, priority=200,tcp,tcp_dst=53,nw_dst=%s,actions=output:2", oc.localIP)
otx.AddFlow("table=100, priority=200,udp,udp_dst=53,nw_dst=%s,actions=output:2", oc.localIP)
otx.AddFlow("table=100, priority=150,ct_state=-rpl,actions=goto_table:101")
// eg, "table=100, priority=100, reg0=${tenant_id}, ip, actions=set_field:${tun0_mac}->eth_dst,set_field:${egress_mark}->pkt_mark,goto_table:101"
otx.AddFlow("table=100, priority=0, actions=goto_table:101")

Expand Down

0 comments on commit 4e34aea

Please sign in to comment.