With SG allowing one-way traffic, onward traffic can get discarded due to stale flow entry
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Committed
|
High
|
Praveen | |||
R3.0.3.x |
Fix Committed
|
High
|
Praveen | |||
R3.1 |
Fix Committed
|
High
|
Praveen | |||
Trunk |
Fix Committed
|
High
|
Praveen |
Bug Description
R3.1 (2.2x as well)
Case was suggested by Praveen
Have a SG which allows only egress traffic from a VM.
Ex ( sg1) : Egress IPv4 UDP 1-65535 10.1.1.6/32
Apply sg1 to 10.1.1.4/32
On 10.1.1.6/32, have an SG which allows traffic to/from 10.1.1.4
1) From 10.1.1.4, send traffic to 10.1.1.6 which works. Clear the flows.
2) Now from 10.1.1.6 , send traffic to 10.1.1.4 so that it hits the earlier flow. The flows created similar to that in Step 1 are now marked discard
3) Now, send the same traffic as in Step1 which will fail until the discard-marked rules are deleted
Ex :
From 10.1.1.4, hping3 -p 22 --udp 10.1.1.6 -s 10000 -c 10 --keep
From 10.1.1.6, hping3 -p 10000 --udp 10.1.1.4 -s 22 -c 10 --keep
root@nodek1:~# flow -l --match "10.1.1.4:10000 & proto udp"
Flow table(size 80609280, entries 629760)
Entries: Created 23369 Added 23388 Processed 23369 Used Overflow entries 0
(Created Flows/CPU: 11128 2862 1015 920 807 399 782 752 48 23 30 50 23 25 28 40 645 599 548 585 480 111 798 512 1 80 8 33 16 3 5 13)(oflows 0)
Action:F=Forward, D=Drop N=NAT(S=SNAT, D=DNAT, Ps=SPAT, Pd=DPAT, L=Link Local Port)
Other:
Flags:E=Evicted, Ec=Evict Candidate, N=New Flow, M=Modified Dm=Delete Marked
TCP(r=reverse)
Listing flows matching ([10.1.1.4]:10000, Protocol UDP)
Index Source:
-------
145920<=>257884 10.1.1.6:22 17 (5)
(Gen: 7, K(nh):43, Action:D(SG), Flags:, QOS:-1, S(nh):20, Stats:3/126, SPort 51111 TTL 0)
257884<=>145920 10.1.1.4:10000 17 (5)
(Gen: 7, K(nh):43, Action:D(Unknown), Flags:, QOS:-1, S(nh):43, Stats:0/0, SPort 53858 TTL 0)
root@nodek1:~#
description: | updated |
Changed in juniperopenstack: | |
milestone: | none → r3.2.0.0-fcs |
Review in progress for https:/ /review. opencontrail. org/24203
Submitter: Naveen N (<email address hidden>)