]>
git.ipfire.org Git - thirdparty/xtables-addons.git/log
Jeremy Sowden [Sun, 25 Oct 2020 13:15:48 +0000 (14:15 +0100)]
pknock: pknlusr: remove dest_addr and rename src_addr
We only need to specify the address at our end, and given that we are
receiving messages, not sending them, calling it `src_addr` is
misleading.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jeremy Sowden [Sun, 25 Oct 2020 13:15:47 +0000 (14:15 +0100)]
pknock: pknlusr: ensure man-page is included by `make dist`
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jeremy Sowden [Thu, 22 Oct 2020 17:30:05 +0000 (19:30 +0200)]
pknlusr: add man page
Since pknlusr is now being installed, let's give it a man page.
Jeremy Sowden [Thu, 22 Oct 2020 17:30:03 +0000 (19:30 +0200)]
pknlusr: fix formatting of a line
Jan Engelhardt [Sun, 6 Sep 2020 14:35:13 +0000 (16:35 +0200)]
Xtables-addons 3.11
Jeremy Sowden [Mon, 31 Aug 2020 12:59:48 +0000 (14:59 +0200)]
build: bump supported kernel version to 5.9
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jeremy Sowden [Mon, 31 Aug 2020 12:59:47 +0000 (14:59 +0200)]
xt_ACCOUNT: update prototype of nf_sockopt_ops::set callback
In 5.9, the `void __user` parameter has been replaced by a `sockptr`.
Update `ipt_acc_set_ctl` appropriately.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Helmut Grohne [Mon, 31 Aug 2020 10:36:35 +0000 (12:36 +0200)]
build: do not hard-code pkg-config
Use $PKG_CONFIG in configure.ac in order to allow it to be overridden.
Fixes cross-compilation.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jeremy Sowden [Sat, 29 Aug 2020 20:41:27 +0000 (22:41 +0200)]
build: clean some extra build artifacts.
Makefile.mans creates .manpages.lst, but does not remove it. Add
it to the `clean` target.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jan Engelhardt [Sun, 30 Aug 2020 11:36:10 +0000 (13:36 +0200)]
build: do build & install userspace programs for xt_ACCOUNT and xt_pknock
Jan Engelhardt [Tue, 28 Jul 2020 07:56:10 +0000 (09:56 +0200)]
Xtables-addons 3.10
Jeremy Sowden [Tue, 21 Jul 2020 13:03:45 +0000 (14:03 +0100)]
doc: fix quoted string in libxt_DNETMAP manpage
In roff, lines beginning with a single quote are control lines. In the
libxt_DNETMAP man-page there is a single-quoted string at the beginning
of a line, which troff tries and fails to interpret as a macro:
troff: <standard input>:49: warning: macro 'S'' not defined
This means that the line is not output.
Replace the single quotes with the appropriate escape-sequences.
Fixes: v2.3~9 ("doc: spelling and grammar corrections to DNETMAP")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Philip Prindeville [Mon, 25 May 2020 20:05:42 +0000 (14:05 -0600)]
geoip: add quiet flag to xt_geoip_build
Conceivably someone might want to run a refresh of the geoip database
from within a script, particularly an unattended script such as a cron
job. Do not generate output in that case.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Jan Engelhardt [Tue, 12 May 2020 20:49:37 +0000 (22:49 +0200)]
geoip: add -s option to xt_geoip_build
Jan Engelhardt [Tue, 12 May 2020 20:43:58 +0000 (22:43 +0200)]
geoip: replace xt_geoip_build's -S option by new option -i
The Maxmind DB came with potentially multiple files, but DBIP is
currently just one. Drop the -S argument and instead introduce -i.
Jan Engelhardt [Tue, 12 May 2020 20:38:32 +0000 (22:38 +0200)]
geoip: set +x again on xt_geoip_build
Jan Engelhardt [Fri, 1 May 2020 21:07:16 +0000 (23:07 +0200)]
build: do install xt_geoip_fetch.1
Philip Prindeville [Thu, 30 Apr 2020 22:15:46 +0000 (00:15 +0200)]
geoip: install and document xt_geoip_fetch
Add a man page for xt_geoip_fetch.1 and include it as part of
the installed scripts.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Jan Engelhardt [Tue, 21 Apr 2020 10:01:52 +0000 (12:01 +0200)]
geoip: pipe wget right into gzip
Skip over creating temporary files.
Philip Prindeville [Sun, 19 Apr 2020 23:17:14 +0000 (01:17 +0200)]
geoip: simplify unpacking start/end tuples from database
Use unpack() to separate start/end instead of substr().
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Philip Prindeville [Mon, 20 Apr 2020 00:11:47 +0000 (02:11 +0200)]
geoip: update download script for DBIP database
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Jan Engelhardt [Tue, 25 Feb 2020 06:35:08 +0000 (07:35 +0100)]
Xtables-addons 3.9
Jan Engelhardt [Tue, 25 Feb 2020 06:30:01 +0000 (07:30 +0100)]
build: avoid configure warning for Linux 4.15
Commit
4603d3e0f477dcb795a69196071cda66211819c0 and others
erroneously changed the acceptance range from >=4.15 to >=4.17.
Return to previous state.
Jan Engelhardt [Tue, 25 Feb 2020 06:28:23 +0000 (07:28 +0100)]
Support for Linux 5.6 procfs API
Jan Engelhardt [Mon, 3 Feb 2020 11:02:34 +0000 (12:02 +0100)]
Xtables-addons 3.8
Arjen de Korte [Tue, 7 Jan 2020 21:27:51 +0000 (21:27 +0000)]
geoip: adjust builder script for DBIP service
Maxmind databases are no longer libre.
Jan Engelhardt [Sun, 1 Dec 2019 10:30:53 +0000 (11:30 +0100)]
Xtables-addons 3.7
Jeremy Sowden [Sat, 30 Nov 2019 17:58:45 +0000 (18:58 +0100)]
xt_geoip: fix in6_addr little-endian byte swapping
The Perl script that builds the GeoIP DBs uses inet_pton(3) to convert
the addresses to network byte order. This converts
"1234:5678::90ab:cdef"
to:
0x12 0x34 0x56 0x78 .. 0xcd 0xef, interpreted by an LE machine
accessing this in uint32_t-sized chunks as
8765:4321::fedc:ba09
The kernel module compares the addresses in packets with the ranges from
the DB in host byte order using binary search. It uses 32-bit swaps
when converting the addresses.
libxt_geoip, however, which the module uses to load the ranges from the
DB and convert them from NBO to HBO, uses 16-bit swaps to do so, and
this means that:
1234:5678::90ab:cdef
becomes:
4321:8765::ba09:fedc
Obviously, this is inconsistent with the kernel module and DB build
script and breaks the binary search.
Fixes: b91dbd03c717 ("geoip: store database in network byte order")
Reported-by: "Thomas B. Clark" <kernel@clark.bz>
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jeremy Sowden [Sat, 30 Nov 2019 17:58:43 +0000 (18:58 +0100)]
build: update max. supported kernel version
The maximum supported version is reported as 5.3. Bump to 5.4.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Jan Engelhardt [Wed, 20 Nov 2019 21:50:04 +0000 (22:50 +0100)]
Xtables-addons 3.6
Paolo Pisati [Wed, 13 Nov 2019 16:30:17 +0000 (16:30 +0000)]
build: add support for Linux 5.4
Jan Engelhardt [Tue, 10 Sep 2019 09:14:13 +0000 (11:14 +0200)]
Xtables-addons 3.5
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