David Leadbeater
eb4d8d6b44
netfilter: nf_conntrack_irc: Fix forged IP logic
...
[ Upstream commit 0efe125cfb99e6773a7434f3463f7c2fa28f3a43 ]
Ensure the match happens in the right direction, previously the
destination used was the server, not the NAT host, as the comment
shows the code intended.
Additionally nf_nat_irc uses port 0 as a signal and there's no valid way
it can appear in a DCC message, so consider port 0 also forged.
Fixes: 869f37d8e48f ("[NETFILTER]: nf_conntrack/nf_nat: add IRC helper port")
Signed-off-by: David Leadbeater <dgl@dgl.cx>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-15 12:39:46 +02:00
..
2021-10-06 10:23:43 +02:00
2021-10-27 09:33:59 +02:00
2017-12-16 16:25:46 +01:00
2022-09-05 10:23:57 +02:00
2016-09-25 23:16:42 +02:00
2015-03-18 10:51:35 +01:00
2015-02-22 15:59:54 -05:00
2021-08-04 11:58:03 +02:00
2017-10-08 10:26:09 +02:00
2017-10-21 17:21:34 +02:00
2017-08-24 17:12:18 -07:00
2019-09-21 07:14:16 +02:00
2016-07-11 12:32:45 +02:00
2020-07-09 09:35:57 +02:00
2018-03-24 11:00:14 +01:00
2022-09-15 12:39:46 +02:00
2016-07-22 17:05:10 +02:00
2020-10-14 09:48:14 +02:00
2020-06-03 08:16:46 +02:00
2018-08-24 13:12:41 +02:00
2016-08-13 13:27:13 +02:00
2016-09-07 10:36:52 +02:00
2016-08-13 13:27:13 +02:00
2022-04-20 09:06:37 +02:00
2016-08-13 13:27:13 +02:00
2016-08-12 00:41:08 +02:00
2016-08-13 13:27:13 +02:00
2016-07-21 02:31:53 +02:00
2019-01-13 10:03:48 +01:00
2017-06-17 06:41:49 +02:00
2021-05-22 10:40:33 +02:00
2016-07-21 02:31:53 +02:00
2015-12-14 12:48:58 +01:00
2016-03-01 17:36:47 -05:00
2016-10-20 19:59:59 +02:00
2016-09-25 23:16:45 +02:00
2018-08-24 13:12:32 +02:00
2018-10-20 09:51:32 +02:00
2022-02-08 18:15:28 +01:00
2022-02-08 18:15:28 +01:00
2022-02-08 18:15:28 +01:00
2022-02-08 18:15:28 +01:00
2022-02-08 18:15:28 +01:00
2022-02-08 18:15:28 +01:00
2015-10-27 06:54:56 +01:00
2022-03-08 19:00:57 +01:00
2021-06-30 08:49:14 -04:00
2022-08-25 11:09:30 +02:00
2022-03-28 08:06:05 +02:00
2016-09-12 19:54:45 +02:00
2016-09-12 19:54:45 +02:00
2016-09-25 23:34:19 +02:00
2016-08-25 13:11:00 +02:00
2021-06-10 12:42:35 +02:00
2017-10-08 10:26:09 +02:00
2016-09-24 21:29:53 +02:00
2022-08-25 11:09:20 +02:00
2019-08-25 10:51:22 +02:00
2016-09-23 09:29:02 +02:00
2016-09-23 09:29:02 +02:00
2016-09-23 09:29:02 +02:00
2016-07-23 12:25:00 +02:00
2016-04-23 20:13:24 -04:00
2019-02-20 10:18:34 +01:00
2016-01-03 21:04:23 +01:00
2022-06-14 16:52:36 +02:00
2021-07-20 16:21:02 +02:00
2020-04-02 17:20:35 +02:00
2016-11-24 14:40:03 +01:00
2016-09-23 09:29:02 +02:00
2016-10-04 08:59:03 +02:00
2017-06-17 06:41:58 +02:00
2016-09-23 09:30:48 +02:00
2016-03-02 20:05:27 +01:00
2019-02-20 10:18:34 +01:00
2021-08-04 11:58:03 +02:00
2016-09-22 16:33:05 +02:00
2022-09-05 10:23:55 +02:00
2017-11-30 08:39:14 +00:00
2016-09-07 11:02:06 +02:00
2016-11-24 14:43:35 +01:00
2015-04-13 17:17:28 +02:00
2016-08-25 12:55:34 +02:00
2016-08-25 12:55:34 +02:00
2022-07-07 17:30:10 +02:00
2019-05-04 08:49:06 +02:00
2021-06-03 08:23:27 +02:00
2015-09-18 21:58:25 +02:00
2020-02-28 15:42:51 +01:00
2018-02-25 11:05:43 +01:00
2016-07-22 17:05:10 +02:00
2016-09-23 09:30:36 +02:00
2016-11-08 23:53:36 +01:00
2016-08-12 00:43:13 +02:00
2018-03-24 11:00:14 +01:00
2020-02-28 15:42:56 +01:00
2016-09-24 21:29:53 +02:00
2018-11-27 16:09:39 +01:00
2016-10-17 17:38:19 +02:00
2015-09-24 09:34:41 +09:00
2018-03-18 11:18:53 +01:00
2015-09-18 21:58:25 +02:00
2015-05-14 13:00:27 +02:00
2016-08-18 00:38:23 +02:00
2016-10-17 17:38:19 +02:00
2018-01-31 12:55:52 +01:00
2016-06-23 13:58:55 +02:00
2019-04-05 22:29:14 +02:00
2021-01-12 19:49:05 +01:00
2021-02-23 13:59:16 +01:00
2016-09-22 03:13:26 -04:00
2015-06-14 10:40:18 +02:00
2016-04-04 22:11:20 -04:00
2015-02-22 15:59:54 -05:00
2017-07-05 14:40:16 +02:00
2015-08-17 21:33:06 -07:00
2016-07-03 10:55:07 +02:00
2016-09-12 19:54:43 +02:00
2016-08-18 00:51:13 +02:00
2016-06-23 13:26:49 +02:00