Jan Engelhardt
ad86e1f27a
netfilter: xt_connlimit: pick right dstaddr in NAT scenario
...
xt_connlimit normally records the "original" tuples in a hashlist
(such as "1.2.3.4 -> 5.6.7.8"), and looks in this list for iph->daddr
when counting.
When the user however uses DNAT in PREROUTING, looking for
iph->daddr -- which is now 192.168.9.10 -- will not match. Thus in
daddr mode, we need to record the reverse direction tuple
("192.168.9.10 -> 1.2.3.4") instead. In the reverse tuple, the dst
addr is on the src side, which is convenient, as count_them still uses
&conn->tuple.src.u3.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
2011-01-26 13:01:39 +01:00
..
2011-01-19 23:20:04 -08:00
2010-10-25 13:09:44 -07:00
2010-11-28 10:47:19 -08:00
2010-04-11 14:53:53 -07:00
2011-01-07 16:58:04 -08:00
2011-01-12 00:34:49 -08:00
2011-01-16 03:25:19 +01:00
2011-01-04 14:25:28 -05:00
2011-01-13 12:05:12 +01:00
2011-01-19 23:20:04 -08:00
2011-01-15 20:56:42 -08:00
2011-01-13 10:25:24 -08:00
2011-01-19 23:31:10 -08:00
2011-01-06 11:16:54 -08:00
2011-01-13 10:05:56 -08:00
2011-01-19 23:20:04 -08:00
2010-11-22 08:16:10 -08:00
2010-12-24 15:59:06 +01:00
2010-12-17 12:27:22 -08:00
2011-01-12 19:00:40 -08:00
2010-12-08 10:07:24 -08:00
2011-01-20 15:49:52 +01:00
2011-01-20 21:00:38 +01:00
2010-10-21 15:44:13 +02:00
2010-12-26 22:37:05 -08:00
2011-01-05 12:47:25 +01:00
2010-09-23 14:33:39 -07:00
2010-12-08 13:47:38 -08:00
2010-11-22 08:16:14 -08:00
2010-12-08 10:07:24 -08:00
2011-01-13 15:46:45 -05:00
2011-01-26 13:01:39 +01:00
2010-12-19 21:59:35 -08:00
2011-01-09 16:25:03 -08:00
2010-04-20 16:37:13 -07:00
2011-01-19 23:20:04 -08:00
2011-01-10 13:33:17 -08:00
2011-01-19 23:20:04 -08:00
2010-11-15 13:24:06 -05:00
2010-09-27 01:03:03 -07:00
2011-01-14 09:25:11 -08:00
2011-01-20 00:06:15 -08:00
2010-12-17 12:27:22 -08:00
2011-01-14 13:17:26 -08:00
2011-01-01 14:56:18 -08:00
2011-01-19 23:31:11 -08:00
2011-01-19 23:20:04 -08:00
2010-05-20 21:04:44 -07:00
2011-01-04 14:43:01 -05:00
2010-12-08 13:47:38 -08:00
2011-01-11 14:03:09 -08:00
2010-10-28 11:47:52 -07:00
2011-01-13 10:05:56 -08:00
2010-12-16 13:44:24 -08:00
2010-10-15 15:53:27 +02:00
2011-01-12 20:03:43 -05:00
2010-05-17 23:23:14 -07:00