Ole Troan
5297447bd6
nat: tweak rfc7857 tcp connection tracking
...
The RFC7857 state machine introduced in 56c492a is a trade-off.
It tries to retain sessions as much as possible and also offers
some protection against spurious RST by re-establishing sessions if data
is received after the RST. From experience in the wild, this algorithm is
a little too liberal, as it leaves too many spurious established sessions
in the session table.
E.g. a oberserved pattern is:
client server
<- FIN, ACK
ACK ->
ACK ->
RST, ACK ->
With the current state machine this would leave the session in established state.
These proposed changes do:
- require 3-way handshake to establish session.
(current requires only to see SYNs from both sides)
- RST will move session to transitory without recovery if data is sent after
- Only a single FIN is needed to move to transitory
Fixes: 56c492aa0502751de2dd9d890096a82c5f04776d
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I92e593e00b2efe48d04997642d85bd59e0eaa2ea
Signed-off-by: Ole Troan <ot@cisco.com>
2022-04-21 10:35:58 +00:00
..
2022-02-07 18:40:51 +00:00
2022-02-17 18:02:35 +00:00
2022-02-09 13:47:29 +00:00
2022-03-18 20:11:26 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2022-03-22 00:50:23 +00:00
2022-03-27 09:21:34 +00:00
2020-12-07 08:17:10 +00:00
2020-12-07 08:17:10 +00:00
2022-02-17 18:02:35 +00:00
2022-03-22 00:50:23 +00:00
2021-11-02 22:26:34 +00:00
2022-02-07 16:39:35 +00:00
2022-02-07 16:39:35 +00:00
2022-03-27 09:21:34 +00:00
2019-11-05 21:08:59 +00:00
2022-02-17 18:02:35 +00:00
2020-12-03 19:43:23 +00:00
2021-10-06 11:58:43 +00:00
2022-04-14 12:46:51 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-09-28 16:06:19 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2022-03-08 18:16:03 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-11-22 16:44:26 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2022-04-01 13:26:04 +00:00
2021-11-23 13:03:36 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-09-27 09:54:56 +00:00
2022-03-04 16:14:11 +00:00
2021-10-07 15:34:31 +00:00
2022-03-22 14:31:45 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2019-12-04 23:16:44 +00:00
2019-12-17 10:56:20 +00:00
2021-11-02 22:26:34 +00:00
2022-03-24 15:39:16 +00:00
2021-09-16 07:12:13 +00:00
2021-11-23 09:03:30 +00:00
2022-03-24 14:26:28 +00:00
2019-12-17 10:56:20 +00:00
2021-10-12 16:55:08 +00:00
2022-02-17 18:02:35 +00:00
2022-03-10 14:08:19 +08:00
2021-08-13 15:57:21 +00:00
2020-05-05 18:36:33 +00:00
2022-03-08 17:43:43 +00:00
2021-10-06 12:32:20 +00:00
2021-11-02 22:26:34 +00:00
2022-04-14 12:46:51 +00:00
2022-04-14 12:46:51 +00:00
2022-01-17 19:55:13 +00:00
2021-11-22 16:44:26 +00:00
2019-11-08 13:25:56 +00:00
2019-12-17 10:56:20 +00:00
2022-03-10 14:08:19 +08:00
2022-03-10 14:08:19 +08:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2019-11-05 21:08:59 +00:00
2021-05-13 09:33:06 +00:00
2019-11-05 21:08:59 +00:00
2019-11-05 21:08:59 +00:00
2022-02-18 09:20:40 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-11-09 17:29:32 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2021-05-13 09:33:06 +00:00
2022-03-09 19:15:05 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2022-03-24 13:56:43 +00:00
2021-05-13 09:33:06 +00:00
2022-03-04 16:14:11 +00:00
2022-04-01 13:26:04 +00:00
2022-04-21 10:35:58 +00:00
2022-03-04 16:14:11 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2021-11-22 16:44:26 +00:00
2020-04-30 13:25:29 +02:00
2022-02-17 18:02:35 +00:00
2020-11-20 10:27:01 +00:00
2022-02-17 18:02:35 +00:00
2021-06-14 13:12:34 +00:00
2021-05-13 09:33:06 +00:00
2021-07-28 08:25:38 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2022-03-04 16:14:11 +00:00
2019-11-05 21:08:59 +00:00
2022-02-17 18:02:35 +00:00
2022-03-04 16:14:11 +00:00
2021-12-02 17:53:11 +00:00
2019-12-17 10:56:20 +00:00
2020-03-16 09:18:46 +00:00
2019-11-05 21:08:59 +00:00
2019-12-17 10:56:20 +00:00
2022-03-10 14:08:19 +08:00
2022-03-10 14:08:19 +08:00
2022-03-10 14:08:19 +08:00
2022-01-05 10:52:22 +00:00
2020-11-30 16:56:43 -05:00
2021-05-13 09:33:06 +00:00
2022-02-06 11:45:11 +00:00
2021-11-06 16:44:56 +00:00
2021-05-13 09:33:06 +00:00
2020-05-03 15:21:42 -04:00
2020-05-01 18:08:45 +00:00
2021-03-04 10:59:11 +00:00
2020-11-24 11:24:53 +01:00
2022-02-17 18:02:35 +00:00
2022-03-30 17:51:33 +00:00
2021-05-13 09:33:06 +00:00
2021-11-02 22:26:34 +00:00
2022-02-17 18:02:35 +00:00
2022-02-17 18:02:35 +00:00
2019-12-11 15:23:55 +00:00
2022-03-27 09:21:34 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2022-04-12 16:06:43 +00:00
2019-11-12 20:37:55 +00:00
2021-05-13 09:33:06 +00:00
2022-02-17 18:02:35 +00:00
2022-03-09 15:04:26 +00:00
2021-11-02 22:26:34 +00:00
2022-02-24 12:51:33 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2020-05-01 18:08:45 +00:00
2021-05-13 09:33:06 +00:00
2020-01-30 20:12:19 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-03-25 08:37:46 +00:00
2021-03-16 12:12:23 +00:00
2022-03-24 15:39:16 +00:00
2021-06-14 13:13:13 +00:00
2021-09-29 14:27:48 +00:00
2021-11-03 10:54:43 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-03-25 08:37:46 +00:00
2020-12-07 08:17:10 +00:00
2022-02-17 18:02:35 +00:00
2022-02-24 12:51:33 +00:00
2021-02-19 10:48:20 +00:00
2021-05-13 09:33:06 +00:00
2021-05-13 09:33:06 +00:00
2021-01-20 13:53:33 +00:00
2020-11-30 16:56:43 -05:00
2020-12-03 19:43:23 +00:00
2021-05-29 18:13:01 +00:00
2019-11-05 21:08:59 +00:00
2021-01-08 13:10:58 +00:00
2021-10-08 11:38:56 +00:00
2021-05-13 09:33:06 +00:00