]>
git.ipfire.org Git - thirdparty/xtables-addons.git/log
Jan Engelhardt [Tue, 10 Sep 2019 09:12:30 +0000 (11:12 +0200)]
Merge MR-14
Jan Engelhardt [Fri, 6 Sep 2019 08:43:58 +0000 (10:43 +0200)]
Xtables-addons 3.4
Jeremy Sowden [Mon, 12 Aug 2019 11:57:41 +0000 (13:57 +0200)]
xt_pknock, xt_SYSRQ: do not set shash_desc::flags.
shash_desc::flags was removed from the kernel in 5.1.
That assignment was actually superfluous anyway, because crypto.desc
is zero-initialized when crypto is initialized (xt_pknock.c, ll.
110ff.).
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jan Engelhardt [Fri, 6 Sep 2019 08:10:08 +0000 (10:10 +0200)]
treewide: replace skb_make_writable
skb_make_writable was removed in v5.3-rc1~140^2~370^2~1 .
Replace it with skb_ensure_writable that was introduced in
v3.19-rc1~118^2~153^2~2 .
Jan Engelhardt [Fri, 6 Sep 2019 08:02:57 +0000 (10:02 +0200)]
xt_PROTO: style fixes
Jan Engelhardt [Fri, 6 Sep 2019 08:29:08 +0000 (10:29 +0200)]
Merge MR-11
Jeremy Sowden [Sun, 11 Aug 2019 13:09:26 +0000 (14:09 +0100)]
xt_DHCPMAC: replace skb_make_writable with skb_ensure_writable
skb_make_writable was removed from the kernel in
v5.3-rc1~140^2~370^2~1 , and its callers were converted to use
skb_ensure_writable. Updated dhcpmac_tg() accordingly.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
rantal [Wed, 14 Aug 2019 18:40:07 +0000 (18:40 +0000)]
add support for Linux 5.0 for DELUDE and TARPIT
Aron Xu [Mon, 6 May 2019 19:07:53 +0000 (03:07 +0800)]
Add man page items for xt_PROTO
Signed-off-by: Aron Xu <happyaron.xu@gmail.com>
Aron Xu [Sat, 2 Mar 2019 11:47:12 +0000 (19:47 +0800)]
Enable xt_PROTO in build system
Signed-off-by: Aron Xu <happyaron.xu@gmail.com>
Miao Wang [Sat, 2 Mar 2019 11:45:54 +0000 (19:45 +0800)]
Add xt_PROTO extension
Signed-off-by: Aron Xu <happyaron.xu@gmail.com>
Jan Engelhardt [Thu, 7 Mar 2019 09:21:20 +0000 (10:21 +0100)]
Xtables-addons 3.3
Jan Engelhardt [Thu, 7 Mar 2019 09:19:04 +0000 (10:19 +0100)]
build: remove xa-download-more script
This mechanism has not seen any use in recent years (the "sources"
file is still the same) — drop it.
Jan Engelhardt [Thu, 7 Mar 2019 09:18:10 +0000 (10:18 +0100)]
doc: update README and changelog
PGNet Dev [Mon, 4 Mar 2019 20:10:08 +0000 (12:10 -0800)]
xt_SYSRQ: replace do_gettimeofday
Linux kernel commit
v4.20-rc1-18-ge4b92b108c6c removed
do_gettimeofday in favor of ktime_get_real_ts64 introduced in
v3.16-rc5-59-gd6d29896c665 .
Jan Engelhardt [Sat, 17 Nov 2018 11:32:56 +0000 (12:32 +0100)]
Merge MR-10
Nataniel Santos [Thu, 6 Jul 2017 11:03:16 +0000 (08:03 -0300)]
xt_ACCOUNT: make table limit configurable
Add parameter option in module xt_ACCOUNT.ko to accept. Change in the
ACCOUN_MAX_TABLES table without the need to recompile the module.
References: MR-8
Jan Engelhardt [Fri, 7 Sep 2018 13:04:28 +0000 (15:04 +0200)]
Xtables-addons 3.2
Jan Engelhardt [Fri, 7 Sep 2018 12:59:01 +0000 (14:59 +0200)]
geoip: build tool should not rely on directory name
Fix this:
GeoLite2-Country-CSV_20180905$ /usr/lib/xtables-addons/xt_geoip_build
Use of uninitialized value $dir in concatenation (.) or string at
/usr/lib/xtables-addons/xt_geoip_build line 59.
Couldn't open list country names
Do not rely on any directory names (they change). Use the current
directory as the default source directory, similar to the older
xt_geoip_build (well, *.csv was passed as arguments).
Jan Engelhardt [Tue, 14 Aug 2018 12:31:10 +0000 (14:31 +0200)]
Xtables-addons 3.1
Jan Engelhardt [Tue, 14 Aug 2018 12:29:30 +0000 (14:29 +0200)]
build: add support for Linux 4.18
Jan Engelhardt [Tue, 14 Aug 2018 12:23:04 +0000 (14:23 +0200)]
build: add support for Linux 4.17
Jan Engelhardt [Tue, 14 Aug 2018 12:15:18 +0000 (14:15 +0200)]
build: fix 4.16 warning
Jan Engelhardt [Tue, 14 Aug 2018 12:22:17 +0000 (14:22 +0200)]
build: match documented and coded build requirements
Jan Engelhardt [Tue, 14 Aug 2018 12:15:00 +0000 (14:15 +0200)]
doc: add 3.0 headline in changelog
Philip Prindeville [Mon, 30 Apr 2018 00:06:05 +0000 (02:06 +0200)]
geoip: simplify handling table column names
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Philip Prindeville [Mon, 30 Apr 2018 00:06:04 +0000 (02:06 +0200)]
geoip: add database query tool for use with ipsets
Add a tool for retrieiving the IPv4 or IPv6 (or both!) CIDR ranges
for a given country, which can then be injected into an ipset if
one doesn't want to use (or have available) the xt_geoip extension.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Philip Prindeville [Mon, 30 Apr 2018 00:06:04 +0000 (02:06 +0200)]
geoip: update man page for xt_geoip_build
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Philip Prindeville [Mon, 30 Apr 2018 00:06:03 +0000 (02:06 +0200)]
geoip: adapt to GeoLite2 database
Requires Net::CIDR::Lite for manipulating CIDR blocks, aggregation, etc.
since database is stored as subnet/mask pairs and may require compaction
into ranges (which can combine adjacent subnets).
We don't use Net::CIDR because it's a clunkier interface.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Philip Prindeville [Mon, 12 Feb 2018 23:06:46 +0000 (16:06 -0700)]
geoip: store database in network byte order
This allows a single database to be built and distributed as a
package that is accepted by both big- and little-endian hosts.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Jan Engelhardt [Mon, 12 Feb 2018 14:12:27 +0000 (15:12 +0100)]
Xtables-addons 3.0
Jan Engelhardt [Mon, 12 Feb 2018 14:10:47 +0000 (15:10 +0100)]
build: support for Linux 4.16
Jan Engelhardt [Mon, 12 Feb 2018 14:04:37 +0000 (15:04 +0100)]
build: remove support for Linux 4.14
Jan Engelhardt [Mon, 12 Feb 2018 14:03:58 +0000 (15:03 +0100)]
build: remove support for Linux 4.13
Jan Engelhardt [Mon, 12 Feb 2018 14:03:47 +0000 (15:03 +0100)]
build: remove support for Linux 4.12
Jan Engelhardt [Mon, 12 Feb 2018 14:02:42 +0000 (15:02 +0100)]
build: remove support for Linux 4.11
Jan Engelhardt [Mon, 12 Feb 2018 14:01:38 +0000 (15:01 +0100)]
build: remove support for Linux 4.10
Jan Engelhardt [Mon, 12 Feb 2018 13:59:12 +0000 (14:59 +0100)]
build: remove support for Linux 4.9
Jan Engelhardt [Mon, 12 Feb 2018 13:57:21 +0000 (14:57 +0100)]
build: remove support for Linux 4.8
Jan Engelhardt [Mon, 12 Feb 2018 13:56:57 +0000 (14:56 +0100)]
build: remove support for Linux 4.7
Jan Engelhardt [Mon, 12 Feb 2018 13:56:40 +0000 (14:56 +0100)]
build: remove support for Linux 4.6
Jan Engelhardt [Mon, 12 Feb 2018 13:56:24 +0000 (14:56 +0100)]
build: remove support for Linux 4.5
Jan Engelhardt [Mon, 12 Feb 2018 13:56:05 +0000 (14:56 +0100)]
build: remove support for Linux 4.4
Jan Engelhardt [Mon, 12 Feb 2018 13:55:45 +0000 (14:55 +0100)]
build: remove support for Linux 4.3
Jan Engelhardt [Mon, 12 Feb 2018 13:54:26 +0000 (14:54 +0100)]
build: remove support for Linux 4.2
Jan Engelhardt [Mon, 12 Feb 2018 13:53:25 +0000 (14:53 +0100)]
build: remove support for Linux 4.1
Jan Engelhardt [Mon, 12 Feb 2018 13:53:01 +0000 (14:53 +0100)]
build: remove support for Linux 4.0
Jan Engelhardt [Mon, 12 Feb 2018 13:50:33 +0000 (14:50 +0100)]
build: remove support for Linux 3.19
Jan Engelhardt [Mon, 12 Feb 2018 13:49:20 +0000 (14:49 +0100)]
build: remove support for Linux 3.18
Jan Engelhardt [Mon, 12 Feb 2018 13:48:53 +0000 (14:48 +0100)]
build: remove support for Linux 3.17
Jan Engelhardt [Mon, 12 Feb 2018 13:48:34 +0000 (14:48 +0100)]
build: remove support for Linux 3.16
Jan Engelhardt [Mon, 12 Feb 2018 13:47:58 +0000 (14:47 +0100)]
build: remove support for Linux 3.15
Jan Engelhardt [Mon, 12 Feb 2018 13:46:50 +0000 (14:46 +0100)]
build: remove support for Linux 3.14
Jan Engelhardt [Mon, 12 Feb 2018 13:45:55 +0000 (14:45 +0100)]
build: remove support for Linux 3.13
Jan Engelhardt [Mon, 12 Feb 2018 13:45:41 +0000 (14:45 +0100)]
build: remove support for Linux 3.12
Jan Engelhardt [Mon, 12 Feb 2018 13:45:30 +0000 (14:45 +0100)]
build: remove support for Linux 3.11
Jan Engelhardt [Mon, 12 Feb 2018 13:45:14 +0000 (14:45 +0100)]
build: remove support for Linux 3.10
Jan Engelhardt [Mon, 12 Feb 2018 13:43:20 +0000 (14:43 +0100)]
build: remove support for Linux 3.9
Jan Engelhardt [Mon, 12 Feb 2018 13:40:30 +0000 (14:40 +0100)]
build: remove support for Linux 3.8
Jan Engelhardt [Mon, 12 Feb 2018 13:37:55 +0000 (14:37 +0100)]
build: remove support for Linux 3.7
Jan Engelhardt [Mon, 12 Feb 2018 12:58:18 +0000 (13:58 +0100)]
geoip: apply consistent style to xt_geoip_build
Philip Prindeville [Thu, 8 Feb 2018 02:24:12 +0000 (19:24 -0700)]
geoip: selective endianness catalog generation
Jan Engelhardt [Fri, 5 Jan 2018 00:36:12 +0000 (01:36 +0100)]
xt_pknock: don't split function heads
Marcelo Henrique Cerri [Thu, 4 Jan 2018 17:50:50 +0000 (18:50 +0100)]
build: support for Linux 4.15
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Seth Forshee [Thu, 4 Jan 2018 17:50:49 +0000 (18:50 +0100)]
build: (additional) support for Linux 4.14
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Jan Engelhardt [Wed, 22 Nov 2017 17:29:01 +0000 (18:29 +0100)]
Xtables-addons 2.14
Jan Engelhardt [Wed, 22 Nov 2017 17:27:07 +0000 (18:27 +0100)]
DNETMAP: remove NF_CT_ASSERT use
The hooks are already checked by the xtables core (due to struct
xt_target::hooks).
Jan Engelhardt [Sun, 23 Jul 2017 18:01:46 +0000 (20:01 +0200)]
DNETMAP: fix write past end of buffer
Philip Prindeville [Fri, 3 Nov 2017 03:14:00 +0000 (21:14 -0600)]
xt_geoip: fix typo in error message
Make both instances of the same message (about invalid country codes)
be consistent with each other. If you have scripts which capture and
collate error messages, then having consistent strings to match against
is a win.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Jan Engelhardt [Sun, 23 Jul 2017 17:59:28 +0000 (19:59 +0200)]
DELUDE: fix PVSStudio reports
V560 A part of conditional expression is always true: !oth->rst.
Jan Engelhardt [Sun, 23 Jul 2017 17:56:30 +0000 (19:56 +0200)]
ipp2p: fix PVSStudio reports
V666 Consider inspecting fourth argument of the function 'HX_memmem'.
It is possible that the value does not correspond with the length of
a string which was passed with the third argument.
Jan Engelhardt [Sun, 23 Jul 2017 17:55:06 +0000 (19:55 +0200)]
pknock: fix PVSStudio static analyzer reports
V595 The 'peer' pointer was utilized before it was verified against
nullptr.
Jan Engelhardt [Thu, 29 Jun 2017 12:46:37 +0000 (14:46 +0200)]
Xtables-addons 2.13
Grzegorz Kuczyński [Tue, 27 Jun 2017 05:43:26 +0000 (07:43 +0200)]
xt_condition: namespace support #2
Jan Engelhardt [Mon, 26 Jun 2017 20:02:35 +0000 (22:02 +0200)]
xt_geoip: check for allocation overflow
Jan Engelhardt [Thu, 15 Jun 2017 10:18:41 +0000 (12:18 +0200)]
compat_xtables: use more accurate printf format for NIPQUAD
We never expect to emit values greater than 255 here, so use %hhu to
address more sprintf warnings.
Jan Engelhardt [Thu, 15 Jun 2017 10:15:48 +0000 (12:15 +0200)]
xt_DNETMAP: fix a buffer overflow
prefix_str was only 16 bytes, but the largest emitted string could be
"255.255.255.255/32" (19 bytes).
xt_DNETMAP.c: In function "dnetmap_tg_check":
compat_xtables.h:46:22: warning: "%u" directive writing between 1 and 10
bytes into a region of size between 0 and 8 [-Wformat-overflow=]
# define NIPQUAD_FMT "%u.%u.%u.%u"
xt_DNETMAP.c:296:2: note: "sprintf" output between 10 and 27 bytes into
a destination of size 16
sprintf(p->prefix_str, NIPQUAD_FMT "/%u", NIPQUAD(mr->min_addr.ip),
33 - ffs(~(ip_min ^ ip_max)));
Jan Engelhardt [Thu, 15 Jun 2017 10:00:09 +0000 (12:00 +0200)]
xt_LOGMARK: resolve new gcc7 warnings
xt_LOGMARK.c:56:32: warning: increment of a boolean expression [-Wbool-operation]
printk("%s""SEEN_REPLY", prev++ ? "," : "");
xt_LOGMARK.c:58:29: warning: increment of a boolean expression [-Wbool-operation]
printk("%s""ASSURED", prev++ ? "," : "");
xt_LOGMARK.c:60:31: warning: increment of a boolean expression [-Wbool-operation]
printk("%s""CONFIRMED", prev++ ? "," : "");
Ralph Sennhauser [Sun, 14 May 2017 16:16:11 +0000 (18:16 +0200)]
build: support for Linux 4.12
As a result of commit
cc41c84b7e7f ("netfilter: kill the fake untracked
conntrack objects") the helper nf_ct_is_untracked always returns false
and commit
ab8bc7ed864b ("netfilter: remove nf_ct_is_untracked") removes
it all together.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Grzegorz Kuczyński [Fri, 20 Jan 2017 11:28:52 +0000 (12:28 +0100)]
xt_condition: add support for namespaces
Jan Engelhardt [Thu, 13 Apr 2017 09:37:44 +0000 (11:37 +0200)]
xt_psd: resolve compiler warning
xt_psd.c:53:0: warning: "HASH_SIZE" redefined
#define HASH_SIZE (1 << HASH_LOG)
linux-4.10.10/include/linux/hashtable.h:26:0:
note: this is the location of the previous definition
#define HASH_SIZE(name) (ARRAY_SIZE(name))
Jan Engelhardt [Wed, 11 Jan 2017 00:39:53 +0000 (01:39 +0100)]
Xtables-addons 2.12
Jan Engelhardt [Wed, 4 Jan 2017 01:44:43 +0000 (02:44 +0100)]
build: mark Linux 4.10 as supported
Ralph Sennhauser [Mon, 26 Dec 2016 15:14:02 +0000 (16:14 +0100)]
build: support for Linux 4.10
Commit
613dbd95723aee7abd16860745691b6c7bda20dc (netfilter:
x_tables: move hook state into xt_action_param structure) changes the
struct xt_action_param, accommodate for it.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Ralph Sennhauser [Mon, 26 Dec 2016 15:11:43 +0000 (16:11 +0100)]
build: support for Linux 4.9
Commit
f330a7fdbe1611104622faff7e614a246a7d20f0 (netfilter: conntrack:
get rid of conntrack timer) replaces timer_list with an u32, use helper
from commit
c8607e020014cf11a61601a0005270bad81cabdf (netfilter: nft_ct:
fix expiration getter).
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Jan Engelhardt [Fri, 20 May 2016 12:32:05 +0000 (14:32 +0200)]
Xtables-addons 2.11
Jan Engelhardt [Fri, 20 May 2016 08:48:27 +0000 (10:48 +0200)]
xt_ECHO: ensure IP header length is set
Jan Engelhardt [Fri, 20 May 2016 08:48:00 +0000 (10:48 +0200)]
xt_ECHO: handle fragments
Since everything is just echoed back verbatim without modification,
supporting fragments seems easy.
Your Name [Fri, 20 May 2016 08:46:31 +0000 (04:46 -0400)]
xt_pknock: use shash crypto API
The old hash API is dropped as of Linux 4.6.
Only build tested.
Jan Engelhardt [Fri, 22 Apr 2016 20:50:42 +0000 (22:50 +0200)]
xt_pknock: replace nemesis by socat
Use a utility much more widely available.
Jan Engelhardt [Fri, 22 Apr 2016 20:48:56 +0000 (22:48 +0200)]
xt_pknock: import digest generation utility
Jan Engelhardt [Fri, 22 Apr 2016 20:43:17 +0000 (22:43 +0200)]
xt_pknock: remove reference to non-existing documentation
Even in the old pknock-0.5.tar.gz tarball, there is no doc/pknock/
directory.
Jan Engelhardt [Fri, 22 Apr 2016 09:11:57 +0000 (11:11 +0200)]
xt_SYSRQ: use new shash crypto API
The "shash" API is not exactly new (Linux 2.6.27), but the "hash" API
was finally thrown out for Linux 4.6.
Andreas Schultz [Tue, 8 Dec 2015 17:41:33 +0000 (18:41 +0100)]
xt_ACCOUNT: make it namespace aware
xt_ACCOUNTing objects create in one network namespace could be
read from all namespaces. Also object with the same name in
different namespaces would collide.
Signed-off-by: Andreas Schultz <aschultz@tpip.net>
Matthias Schiffer [Sun, 3 Apr 2016 12:01:01 +0000 (14:01 +0200)]
build: fix configure compatiblity with POSIX shells
The kernel version detection code uses some bashisms, which makes the
build fail on Debian systems where /bin/sh links to dash. Replace with
POSIX-conforming commands at the cost of requiring awk.
Jan Engelhardt [Fri, 20 Nov 2015 22:30:33 +0000 (23:30 +0100)]
Xtables-addons 2.10
Jan Engelhardt [Fri, 20 Nov 2015 22:14:50 +0000 (23:14 +0100)]
build: silence compiler warning in xt_quota2
xt_quota2.c:67:6: warning: unused variable "ret" [-Wunused-variable]
Jan Engelhardt [Fri, 20 Nov 2015 20:31:12 +0000 (21:31 +0100)]
build: support for Linux 4.4
Jan Engelhardt [Mon, 9 Nov 2015 21:32:32 +0000 (22:32 +0100)]
xt_ACCOUNT: remove redundant braces
For single-line statements, the {} are not strictly needed.
Jan Engelhardt [Mon, 9 Nov 2015 21:31:23 +0000 (22:31 +0100)]
xt_ACCOUNT: indent reduction
Invert early terminating conditions so the rest of the block can be
de-indented.