]> git.ipfire.org Git - thirdparty/xtables-addons.git/log
thirdparty/xtables-addons.git
16 years agoMerge branch 'SYSRQ'
Jan Engelhardt [Wed, 10 Dec 2008 15:03:13 +0000 (16:03 +0100)] 
Merge branch 'SYSRQ'

16 years agoxt_SYSRQ: src: prefix variables
Jan Engelhardt [Wed, 10 Dec 2008 15:02:21 +0000 (16:02 +0100)] 
xt_SYSRQ: src: prefix variables

16 years agoxt_SYSRQ: make new code compile for kernel <= 2.6.23
Jan Engelhardt [Wed, 10 Dec 2008 14:45:43 +0000 (15:45 +0100)] 
xt_SYSRQ: make new code compile for kernel <= 2.6.23

16 years agoxt_SYSRQ: improve security
John Haxby [Tue, 2 Dec 2008 17:46:36 +0000 (17:46 +0000)] 
xt_SYSRQ: improve security

I want to be able to use SYSRQ to reboot, crash or partially diagnose
machines that become unresponsive for one reason or another. These
machines, typically, are blades or rack mounted machines that do not
have a PS/2 connection for a keyboard and the old method of wheeling
round a "crash trolley" that has a monitor and a keyboard on it no
longer works: USB keyboards rarely, if ever, work because by the time
the machine is responding only to a ping, udev is incapable of
setting up a new keyboard.

This patch extends the xt_SYSRQ module to avoid both disclosing the
sysrq password and preventing replay. This is done by changing the
request packet from the simple "<key><password>" to a slightly more
complex "<key>,<seqno>,<salt>,<hash>". The hash is the sha1 checksum
of "<key>,<seqno>,<salt>,<password>". A request can be constructed in
a small shell script (see manpage).

Verification of the hash in xt_SYSRQ follows much the same process.
The sequence number, seqno, is initialised to the current time (in
seconds) when the xt_SYSRQ module is loaded and is updated each time
a valid request is received. A request with a sequence number less
than the current sequence number or a wrong hash is silently ignored.
(Using the time for the sequence number assumes (requires) that time
doesn't go backwards on a reboot and that the requester and victim
have reasonably synchronized clocks.)

The random salt is there to prevent pre-computed dictionary attacks
difficult: dictionary attacks are still feasible if you capture a
packet because the hash is computed quickly -- taking perhaps several
milliseconds to compute a more complex hash in xt_SYSRQ when the
machine is unresponsive is probably not the best thing you could do.
However, cracking, say, a random 32 character password would take
some time and is probably beyond what the people in the target
untrustworthy environment are prepared to do or have the resources
for. It almost goes without saying that no two victim machines should
use the same password.

Finally, the module allocates all the resources it need at module
initialisation time on the assumption that if things are going badly
resource allocation is going to be troublesome.

16 years agodoc: add manpages for xt_ECHO and xt_TEE
Jan Engelhardt [Mon, 24 Nov 2008 16:42:32 +0000 (17:42 +0100)] 
doc: add manpages for xt_ECHO and xt_TEE

16 years agoipset: enable building of new modules
Jan Engelhardt [Thu, 20 Nov 2008 22:08:33 +0000 (23:08 +0100)] 
ipset: enable building of new modules

Whoops, modules need to be listed in GNUmakefile.in!
(Needed for out-of-srcdir builds.)

16 years agobuild: use new vars from automake-tranquility-3
Jan Engelhardt [Thu, 20 Nov 2008 20:17:42 +0000 (21:17 +0100)] 
build: use new vars from automake-tranquility-3

16 years agobuild: do not unconditionally install ipset
Jan Engelhardt [Thu, 20 Nov 2008 19:19:55 +0000 (20:19 +0100)] 
build: do not unconditionally install ipset

build_ipset=n was not completely respected and the ipset userspace
parts were still installed. This is now fixed.

16 years agosrc: avoid use of _init
Jan Engelhardt [Thu, 20 Nov 2008 19:00:26 +0000 (20:00 +0100)] 
src: avoid use of _init

Xtables-addons's extensions will always be built as modules, so it is
safe to use __attribute__((constructor)).

16 years agoxt_ECHO: compile fix
Jan Engelhardt [Wed, 19 Nov 2008 16:38:45 +0000 (17:38 +0100)] 
xt_ECHO: compile fix

16 years agoXtables-addons 1.6 v1.6
Jan Engelhardt [Tue, 18 Nov 2008 17:16:34 +0000 (18:16 +0100)] 
Xtables-addons 1.6

16 years agoUpdate for Linux 2.6.28
Jan Engelhardt [Tue, 18 Nov 2008 11:51:25 +0000 (12:51 +0100)] 
Update for Linux 2.6.28

16 years agoipset: upgrade to ipset 2.4.5
Jan Engelhardt [Tue, 18 Nov 2008 11:01:51 +0000 (12:01 +0100)] 
ipset: upgrade to ipset 2.4.5

16 years agosrc: use NFPROTO_ constants
Jan Engelhardt [Tue, 18 Nov 2008 10:57:14 +0000 (11:57 +0100)] 
src: use NFPROTO_ constants

16 years agosrc: add NULL to sentinel struct option
Jan Engelhardt [Tue, 18 Nov 2008 10:29:57 +0000 (11:29 +0100)] 
src: add NULL to sentinel struct option

16 years agoipset: upgrade to ipset 2.4.4
Jan Engelhardt [Thu, 13 Nov 2008 16:46:11 +0000 (17:46 +0100)] 
ipset: upgrade to ipset 2.4.4

16 years agoipset: upgrade to ipset 2.4.3
Jan Engelhardt [Tue, 11 Nov 2008 18:36:33 +0000 (19:36 +0100)] 
ipset: upgrade to ipset 2.4.3

17 years agobuild: use readlink -f
Jan Engelhardt [Fri, 17 Oct 2008 00:49:21 +0000 (20:49 -0400)] 
build: use readlink -f

Coreutils 5.x does not know `readlink -e`; we can also use
`readlink -f` instead which is supported by 5.x.

17 years agoipp2p: parenthesize unaligned-access macros
Jan Engelhardt [Wed, 24 Sep 2008 16:29:21 +0000 (12:29 -0400)] 
ipp2p: parenthesize unaligned-access macros

17 years agoSupport for Linux 2.6.17
Jan Engelhardt [Mon, 22 Sep 2008 17:40:25 +0000 (13:40 -0400)] 
Support for Linux 2.6.17

17 years agoResolve compiler warnings in xt_ECHO
Jan Engelhardt [Fri, 19 Sep 2008 21:10:23 +0000 (17:10 -0400)] 
Resolve compiler warnings in xt_ECHO

Reported-by: Jiri Moravec <jim.lkml@gmail.com>
17 years agosrc: compile fixes for 2.6.18 and 2.6.19
Jan Engelhardt [Mon, 1 Sep 2008 22:40:23 +0000 (18:40 -0400)] 
src: compile fixes for 2.6.18 and 2.6.19

I did not test f30793f591debd2644b60b9449acd334f1f8f757 on all
supported kernel versions and noticed too late.

17 years agoXtables-addons 1.5.7 v1.5.7
Jan Engelhardt [Mon, 1 Sep 2008 19:35:51 +0000 (15:35 -0400)] 
Xtables-addons 1.5.7

17 years agoxt_SYSRQ: add missing aliases
Jan Engelhardt [Mon, 1 Sep 2008 19:33:28 +0000 (15:33 -0400)] 
xt_SYSRQ: add missing aliases

17 years agoxt_portscan: IPv6 support
Jan Engelhardt [Mon, 1 Sep 2008 19:32:15 +0000 (15:32 -0400)] 
xt_portscan: IPv6 support

17 years agosrc: remove redundant return statements
Jan Engelhardt [Mon, 1 Sep 2008 19:31:10 +0000 (15:31 -0400)] 
src: remove redundant return statements

17 years agobuild: remove dependency on netinet/in6.h
Jan Engelhardt [Mon, 1 Sep 2008 19:12:04 +0000 (15:12 -0400)] 
build: remove dependency on netinet/in6.h

17 years agoDHCP address match and mangler
Jan Engelhardt [Mon, 1 Sep 2008 18:26:21 +0000 (14:26 -0400)] 
DHCP address match and mangler

17 years agosrc: move to a pskb-based API
Jan Engelhardt [Tue, 12 Aug 2008 02:07:41 +0000 (22:07 -0400)] 
src: move to a pskb-based API

It occurred that skb reallocation does happen on older kernels, and
those kernels should really be supported, since the patch is really
minimal.

17 years agoxt_condition: ues glue-provided init_net__proc_net
Jan Engelhardt [Mon, 1 Sep 2008 17:02:59 +0000 (13:02 -0400)] 
xt_condition: ues glue-provided init_net__proc_net

17 years agoMerge reworked fuzzy extension
Jan Engelhardt [Mon, 1 Sep 2008 19:27:10 +0000 (15:27 -0400)] 
Merge reworked fuzzy extension

17 years agofuzzy: IPv6 support
Jan Engelhardt [Mon, 1 Sep 2008 19:26:33 +0000 (15:26 -0400)] 
fuzzy: IPv6 support

17 years agofuzzy: misc cleanup
Jan Engelhardt [Sun, 31 Aug 2008 21:27:15 +0000 (17:27 -0400)] 
fuzzy: misc cleanup

17 years agofuzzy: remove unneeded spinlock
Jan Engelhardt [Sun, 31 Aug 2008 20:48:15 +0000 (16:48 -0400)] 
fuzzy: remove unneeded spinlock

17 years agofuzzy: import 20050627 code base
Jan Engelhardt [Sun, 31 Aug 2008 20:44:44 +0000 (16:44 -0400)] 
fuzzy: import 20050627 code base

17 years agoAutomatically run `depmod -a`
Jan Engelhardt [Fri, 29 Aug 2008 11:53:06 +0000 (07:53 -0400)] 
Automatically run `depmod -a`

17 years agoipset: adjust semaphore.h include for kernel >= 2.6.27
James King [Wed, 27 Aug 2008 01:12:33 +0000 (18:12 -0700)] 
ipset: adjust semaphore.h include for kernel >= 2.6.27

As of Linux kernel commit 2351ec533ed0dd56052ab96988d2161d5ecc8ed9,
semaphore.h was moved from asm/ to linux/, which breaks building of
ipset. Add compat glue to ip_set.c to fix building on 2.6.27 an
onwards.

17 years agoxt_SYSRQ: fix compilation for Linux kernel version <= 2.6.19
Jan Engelhardt [Fri, 29 Aug 2008 00:14:29 +0000 (20:14 -0400)] 
xt_SYSRQ: fix compilation for Linux kernel version <= 2.6.19

17 years agoClear hotdrop before use
Jan Engelhardt [Sun, 24 Aug 2008 20:44:07 +0000 (16:44 -0400)] 
Clear hotdrop before use

Must make sure that hotdrop is properly initialized. GCC
unfortunately did not warn.

17 years agolibxt_geoip: reorder option parsing code
Jan Engelhardt [Sun, 24 Aug 2008 16:34:31 +0000 (12:34 -0400)] 
libxt_geoip: reorder option parsing code

17 years agobuild: prepare make tarball for git 1.6.0
Jan Engelhardt [Sat, 16 Aug 2008 19:39:09 +0000 (15:39 -0400)] 
build: prepare make tarball for git 1.6.0

17 years agoXtables-addons 1.5.5 v1.5.5
Jan Engelhardt [Sun, 3 Aug 2008 20:29:33 +0000 (16:29 -0400)] 
Xtables-addons 1.5.5

17 years agocleanup [KM]build layout
Jan Engelhardt [Sun, 3 Aug 2008 16:30:49 +0000 (12:30 -0400)] 
cleanup [KM]build layout

17 years agoSYSRQ target
Jan Engelhardt [Sun, 27 Apr 2008 09:39:24 +0000 (11:39 +0200)] 
SYSRQ target

17 years agoUpdate license texts
Jan Engelhardt [Sat, 2 Aug 2008 16:59:24 +0000 (12:59 -0400)] 
Update license texts

17 years agocompat: properly clamp return value from skb_make_writable()
Jan Engelhardt [Thu, 10 Jul 2008 15:39:34 +0000 (17:39 +0200)] 
compat: properly clamp return value from skb_make_writable()

17 years agosrc: compile fixes after libiptc dependency throwout
Jan Engelhardt [Wed, 30 Jul 2008 13:19:07 +0000 (09:19 -0400)] 
src: compile fixes after libiptc dependency throwout

17 years agoRemove dependency on CONFIG_NETWORK_SECMARK
Jan Engelhardt [Mon, 7 Jul 2008 19:34:52 +0000 (21:34 +0200)] 
Remove dependency on CONFIG_NETWORK_SECMARK

17 years agoMerge branch 'ipset'
Jan Engelhardt [Mon, 7 Jul 2008 16:00:48 +0000 (18:00 +0200)] 
Merge branch 'ipset'

17 years agoMerge branch 'quota2'
Jan Engelhardt [Mon, 7 Jul 2008 16:00:46 +0000 (18:00 +0200)] 
Merge branch 'quota2'

17 years agoxt_quota2: minor fixes, merge into main config files
Jan Engelhardt [Mon, 7 Jul 2008 15:56:20 +0000 (17:56 +0200)] 
xt_quota2: minor fixes, merge into main config files

17 years agoipset: fixup compile errors with 2.6.18.x and 2.6.20 warnings
Jan Engelhardt [Mon, 7 Jul 2008 09:07:15 +0000 (11:07 +0200)] 
ipset: fixup compile errors with 2.6.18.x and 2.6.20 warnings

17 years agoipset: fixup compile warnings
Jan Engelhardt [Mon, 7 Jul 2008 08:36:35 +0000 (10:36 +0200)] 
ipset: fixup compile warnings

And add a few const here and there.

17 years agoxt_quota2: support packet counting; add manpage
Jan Engelhardt [Sun, 6 Jul 2008 23:19:10 +0000 (01:19 +0200)] 
xt_quota2: support packet counting; add manpage

17 years agobuild: properly recognize external Kbuild/Mbuild files
Jan Engelhardt [Sat, 7 Jun 2008 08:25:40 +0000 (10:25 +0200)] 
build: properly recognize external Kbuild/Mbuild files

17 years agoxt_quota2: allow for multiple rules to share one counter
Jan Engelhardt [Mon, 9 Jun 2008 12:07:33 +0000 (14:07 +0200)] 
xt_quota2: allow for multiple rules to share one counter

17 years agoAdd xt_quota2
Jan Engelhardt [Sat, 7 Jun 2008 11:36:56 +0000 (13:36 +0200)] 
Add xt_quota2

Support for inversion, upcounting, and changing the quota/counter
through sysfs.

17 years agoipp2p: bump version to indicate this is newer than 0.8.2
Jan Engelhardt [Sat, 5 Jul 2008 17:41:23 +0000 (19:41 +0200)] 
ipp2p: bump version to indicate this is newer than 0.8.2

17 years agosrc: update netfilter.h to unifdef'ed variant
Jan Engelhardt [Fri, 4 Jul 2008 17:08:10 +0000 (19:08 +0200)] 
src: update netfilter.h to unifdef'ed variant

From Linux kernel, c8942f1f0a7e2160ebf2e51ba89e50ee5895a1e7.

17 years agoImport ipset-2.3.2a (userspace components)
Jan Engelhardt [Fri, 4 Jul 2008 16:28:47 +0000 (18:28 +0200)] 
Import ipset-2.3.2a (userspace components)

17 years agoImport ipset-2.3.2 (kernel components)
Jan Engelhardt [Wed, 2 Jul 2008 14:35:07 +0000 (16:35 +0200)] 
Import ipset-2.3.2 (kernel components)

17 years agoImport ipset-2.3.1a-20080617
Jan Engelhardt [Mon, 30 Jun 2008 21:45:36 +0000 (23:45 +0200)] 
Import ipset-2.3.1a-20080617

17 years agoUpdate README, .gitignore
Jan Engelhardt [Mon, 30 Jun 2008 21:33:35 +0000 (23:33 +0200)] 
Update README, .gitignore

17 years agoUpdate manpages of CHAOS, IPMARK
Jan Engelhardt [Fri, 27 Jun 2008 20:56:42 +0000 (22:56 +0200)] 
Update manpages of CHAOS, IPMARK

17 years agoXtables-addons 1.5.4.1 v1.5.4.1
Jan Engelhardt [Sat, 26 Apr 2008 10:51:37 +0000 (12:51 +0200)] 
Xtables-addons 1.5.4.1

17 years agoFix compilation error for 2.6.18-stable
Jan Engelhardt [Fri, 25 Apr 2008 18:46:23 +0000 (20:46 +0200)] 
Fix compilation error for 2.6.18-stable

The prototype of ip_route_me_harder changed in 2.6.18.5, so I think
Xtables-addons should account for it. This renders compilation on
anything below it impossible. (2.6.17 is not supported in general.)

17 years agoUpdate .gitignore
Jan Engelhardt [Wed, 16 Apr 2008 19:35:02 +0000 (21:35 +0200)] 
Update .gitignore

17 years agoconfigure.ac: AC_SUBST must be separate
Jan Engelhardt [Tue, 15 Apr 2008 07:15:44 +0000 (09:15 +0200)] 
configure.ac: AC_SUBST must be separate

17 years agocondition: use PF_UNSPEC in vtable
Jan Engelhardt [Sat, 12 Apr 2008 03:56:44 +0000 (05:56 +0200)] 
condition: use PF_UNSPEC in vtable

17 years agoXtables-addons 1.5.4 v1.5.4
Jan Engelhardt [Wed, 9 Apr 2008 19:18:05 +0000 (21:18 +0200)] 
Xtables-addons 1.5.4

17 years agomanpages: generate manpages
Jan Engelhardt [Wed, 9 Apr 2008 18:41:08 +0000 (20:41 +0200)] 
manpages: generate manpages

17 years agomanpages: remove diff markers from CHAOS,TARIPT
Jan Engelhardt [Wed, 9 Apr 2008 18:34:57 +0000 (20:34 +0200)] 
manpages: remove diff markers from CHAOS,TARIPT

17 years agocompat: resolve missing tcp_hdr and udp_hdr for xt_ipp2p
Jan Engelhardt [Wed, 9 Apr 2008 18:16:33 +0000 (20:16 +0200)] 
compat: resolve missing tcp_hdr and udp_hdr for xt_ipp2p

17 years agoTEE: make skb writable before attempting checksum update
Jan Engelhardt [Wed, 9 Apr 2008 18:06:17 +0000 (20:06 +0200)] 
TEE: make skb writable before attempting checksum update

This also adds the compat function xtnu_skb_make_writable().

17 years agocondition: resolve typesize compiler warning
Jan Engelhardt [Wed, 9 Apr 2008 17:52:29 +0000 (19:52 +0200)] 
condition: resolve typesize compiler warning

Fix warning: field precision should have type "int", but argument 2
has type "long unsigned int".

17 years agoMerge reworked "IPMARK" target
Jan Engelhardt [Wed, 9 Apr 2008 17:44:54 +0000 (19:44 +0200)] 
Merge reworked "IPMARK" target

17 years agoIPMARK: redo ipmark_tg_parse()
Jan Engelhardt [Wed, 9 Apr 2008 12:39:44 +0000 (14:39 +0200)] 
IPMARK: redo ipmark_tg_parse()

- check for illegal inversion on flags
- use param_act() and strtonum() instead of open-coded checks

17 years agoIPMARK: style cleanup
Jan Engelhardt [Wed, 9 Apr 2008 12:04:23 +0000 (14:04 +0200)] 
IPMARK: style cleanup

17 years agoIPMARK: IPv6 support
Jan Engelhardt [Tue, 8 Apr 2008 18:00:40 +0000 (20:00 +0200)] 
IPMARK: IPv6 support

17 years agoIPMARK: print --addr flag the usual way
Jan Engelhardt [Wed, 9 Apr 2008 12:44:53 +0000 (14:44 +0200)] 
IPMARK: print --addr flag the usual way

17 years agoIPMARK: omit printing unset mask
Jan Engelhardt [Wed, 9 Apr 2008 12:44:24 +0000 (14:44 +0200)] 
IPMARK: omit printing unset mask

17 years agoIPMARK: remove incorrect --and/--or check
Jan Engelhardt [Wed, 9 Apr 2008 17:21:20 +0000 (19:21 +0200)] 
IPMARK: remove incorrect --and/--or check

It is perfectly valid for no --and-mask and also no --or-mask to
appear, in which case the IP(v4) address is taken as mark without
modification.

17 years agoIPMARK: misc cleanups
Jan Engelhardt [Tue, 8 Apr 2008 17:52:31 +0000 (19:52 +0200)] 
IPMARK: misc cleanups

- order #include lists
- const annotations, removal of casts
- add ipt_IPMARK alias
- make symbol names distinct

17 years agoIPMARK: rebuild parameter structure (fixed-size types)
Jan Engelhardt [Tue, 8 Apr 2008 17:23:07 +0000 (19:23 +0200)] 
IPMARK: rebuild parameter structure (fixed-size types)

Rebuild the parameter structure to have fixed-size members only.

17 years agoIPMARK: import 20080304 code base
Jan Engelhardt [Wed, 2 Apr 2008 06:50:10 +0000 (08:50 +0200)] 
IPMARK: import 20080304 code base

With truly minimal changes to make it compile.

17 years agoMerge reworked "ipp2p" match
Jan Engelhardt [Tue, 8 Apr 2008 18:34:19 +0000 (20:34 +0200)] 
Merge reworked "ipp2p" match

17 years agoipp2p: add missing MODULE_ALIAS(ipt_ipp2p)
Jan Engelhardt [Mon, 31 Mar 2008 22:27:58 +0000 (00:27 +0200)] 
ipp2p: add missing MODULE_ALIAS(ipt_ipp2p)

17 years agoipp2p: use c99 initializers in getopt structure
Jan Engelhardt [Thu, 27 Mar 2008 08:53:41 +0000 (09:53 +0100)] 
ipp2p: use c99 initializers in getopt structure

17 years agoipp2p: use param_act() for parameter validation
Jan Engelhardt [Thu, 27 Mar 2008 08:20:40 +0000 (09:20 +0100)] 
ipp2p: use param_act() for parameter validation

17 years agoipp2p: use OR in flag settings in libxt_ipp2p
Jan Engelhardt [Thu, 27 Mar 2008 07:21:49 +0000 (08:21 +0100)] 
ipp2p: use OR in flag settings in libxt_ipp2p

17 years agoipp2p: enable experimental data stream analyzers
Jan Engelhardt [Thu, 27 Mar 2008 07:15:59 +0000 (08:15 +0100)] 
ipp2p: enable experimental data stream analyzers

(get rid of "function unused" warnings)

17 years agoipp2p: internally simplify selecting protocol searches
Jan Engelhardt [Wed, 26 Mar 2008 06:53:10 +0000 (07:53 +0100)] 
ipp2p: internally simplify selecting protocol searches

17 years agoipp2p: guard against potential unaligned access
Jan Engelhardt [Wed, 26 Mar 2008 06:15:03 +0000 (07:15 +0100)] 
ipp2p: guard against potential unaligned access

get_u16() and get_u32() may get passed unaligned pointers;
let's play it safe.

17 years agoipp2p: use auxiliary skb functions
Jan Engelhardt [Wed, 26 Mar 2008 06:13:16 +0000 (07:13 +0100)] 
ipp2p: use auxiliary skb functions

17 years agoipp2p: static and const annotations, type usage
Jan Engelhardt [Wed, 26 Mar 2008 05:55:15 +0000 (06:55 +0100)] 
ipp2p: static and const annotations, type usage

17 years agoipp2p: fix match function signature
Jan Engelhardt [Wed, 26 Mar 2008 06:21:55 +0000 (07:21 +0100)] 
ipp2p: fix match function signature

17 years agoipp2p: adhere to codingstyle
Jan Engelhardt [Wed, 26 Mar 2008 05:53:08 +0000 (06:53 +0100)] 
ipp2p: adhere to codingstyle

17 years agoipp2p: remove compat and obsolete code
Jan Engelhardt [Wed, 26 Mar 2008 04:56:43 +0000 (05:56 +0100)] 
ipp2p: remove compat and obsolete code

17 years agoipp2p: import 20080304 code base
Jan Engelhardt [Wed, 26 Mar 2008 04:44:50 +0000 (05:44 +0100)] 
ipp2p: import 20080304 code base

17 years agoMerge reworked "condition" match
Jan Engelhardt [Tue, 8 Apr 2008 18:33:26 +0000 (20:33 +0200)] 
Merge reworked "condition" match