]> git.ipfire.org Git - thirdparty/iptables.git/log
thirdparty/iptables.git
18 years agoFixes compile error of connlimit where NO_SHARED_LIBS=1 is specified
Yasuyuki KOZAKAI [Fri, 13 Jul 2007 15:07:10 +0000 (15:07 +0000)] 
Fixes compile error of connlimit where NO_SHARED_LIBS=1 is specified

18 years agoPATCH: Add connlimit to iptables.
Jan Engelhardt [Mon, 9 Jul 2007 16:50:17 +0000 (16:50 +0000)] 
PATCH: Add connlimit to iptables.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
18 years agolibipt_statistic: add a few missing validity checks
Nicolas Bouliane [Tue, 3 Jul 2007 12:52:55 +0000 (12:52 +0000)] 
libipt_statistic: add a few missing validity checks

Signed-off-by: Nicolas Bouliane
18 years agoRemoves KERNEL_64_USERSPACE_32
Yasuyuki KOZAKAI [Sat, 30 Jun 2007 10:47:57 +0000 (10:47 +0000)] 
Removes KERNEL_64_USERSPACE_32

The recent kernel has compat layer for iptables. It doesn't have
compat layer for libipq and ip6tables, but ip6tables with
KERNEL_64_USERSPACE_32 is still broken. We should fix kernel instead of
fixing them if and when we want use their 32bit binary with 64bit kernel.

18 years agoRemoves some KERNEL_64_USERSPACE_32 because linux 2.6 has compat layer
Yasuyuki KOZAKAI [Thu, 28 Jun 2007 16:41:50 +0000 (16:41 +0000)] 
Removes some KERNEL_64_USERSPACE_32 because linux 2.6 has compat layer

18 years agoFix "iptables getsockopt failed strangely" when querying revisions for non-existant...
Patrick McHardy [Tue, 26 Jun 2007 15:29:45 +0000 (15:29 +0000)] 
Fix "iptables getsockopt failed strangely" when querying revisions for non-existant matches and targets

Reported by Joseph Jezak <josejx@gentoo.org>.

18 years agoAdd Jozsef's TRACE target.
Patrick McHardy [Mon, 25 Jun 2007 14:33:07 +0000 (14:33 +0000)] 
Add Jozsef's TRACE target.

Changed to be built unconditionally by myself since it doesn't need any
headerfiles anyways.

18 years agobump version v1.3.8
Pablo Neira Ayuso [Mon, 25 Jun 2007 12:01:12 +0000 (12:01 +0000)] 
bump version

18 years agoFixes build error of conntrack match because of missing ip_conntrack_tuple.h
Yasuyuki KOZAKAI [Sun, 24 Jun 2007 08:19:25 +0000 (08:19 +0000)] 
Fixes build error of conntrack match because of missing ip_conntrack_tuple.h
in linux 2.6.22. It is not needed because nf_conntrack headers can be used
instead.

18 years agoA white space fix in ip6tables.c
Yasuyuki KOZAKAI [Tue, 12 Jun 2007 01:36:26 +0000 (01:36 +0000)] 
A white space fix in ip6tables.c

18 years ago'-p all' and '-p 0' should be allowed. And actually ip6tables in kernel
Yasuyuki KOZAKAI [Mon, 11 Jun 2007 20:17:34 +0000 (20:17 +0000)] 
'-p all' and '-p 0' should be allowed. And actually ip6tables in kernel
allows '! -p xxx' where xxx is extension header. It matches all valid IPv6
packets.

18 years agolibipt_hashlimit doc update
Jan Engelhardt [Sun, 3 Jun 2007 18:42:10 +0000 (18:42 +0000)] 
libipt_hashlimit doc update

Add srcip,srcport to hashlimit manpage.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
18 years agoAdd --random option to DNAT and REDIRECT targets and fix the manpage mess this option...
Patrick McHardy [Tue, 29 May 2007 11:24:45 +0000 (11:24 +0000)] 
Add --random option to DNAT and REDIRECT targets and fix the manpage mess this option left behind.

18 years agoUse posix conform directory existance check (Roy Marples <uberlord@gentoo.org>)
Roy Marples [Thu, 10 May 2007 15:02:09 +0000 (15:02 +0000)] 
Use posix conform directory existance check (Roy Marples <uberlord@gentoo.org>)

Makefile uses [ -a /dir ] which is invalid on non bash shells

Bugzilla #569

18 years agoFix missing newlines in iptables-save/restore output (Pavol Rusnak <prusnak@suse...
Pavel Rusnak [Thu, 10 May 2007 15:00:39 +0000 (15:00 +0000)] 
Fix missing newlines in iptables-save/restore output (Pavol Rusnak <prusnak@suse.cz>)

Bugzilla #568

18 years agoupdate quota manpage for SMP (Phil Oester)
Phil Oester [Wed, 2 May 2007 13:22:07 +0000 (13:22 +0000)] 
update quota manpage for SMP (Phil Oester)

The quota match works fine on SMP, so update the manpage to reflect
this.  Closes bugzilla #564.

18 years agoIn fixing bug #446 [1], the output for unspecified proto was changed from "all" to...
Phil Oester [Mon, 30 Apr 2007 00:01:39 +0000 (00:01 +0000)] 
In fixing bug #446 [1], the output for unspecified proto was changed from "all" to "0".  This reverts to the original behaviour, and closes bugzilla #543. (Phil Oester)

18 years agoFix iptables-save with --random option
Patrick McHardy [Wed, 18 Apr 2007 14:00:11 +0000 (14:00 +0000)] 
Fix iptables-save with --random option

18 years agoRemove unnecessary IP_NAT_RANGE_PROTO_RANDOM ifdefs.
Patrick McHardy [Wed, 18 Apr 2007 12:56:05 +0000 (12:56 +0000)] 
Remove unnecessary IP_NAT_RANGE_PROTO_RANDOM ifdefs.

18 years agoRemove libnsl from LDLIBS
Patrick McHardy [Wed, 18 Apr 2007 12:41:09 +0000 (12:41 +0000)] 
Remove libnsl from LDLIBS

Bugzilla 557

18 years agofix problem with iptables-restore and quotes (close bugzilla id 505)
Pablo Neira Ayuso [Wed, 18 Apr 2007 10:27:02 +0000 (10:27 +0000)] 
fix problem with iptables-restore and quotes (close bugzilla id 505)

18 years agoUse nf_conntrack headers instead of ip_conntrack ones and add sanitized versions.
Patrick McHardy [Wed, 18 Apr 2007 07:00:36 +0000 (07:00 +0000)] 
Use nf_conntrack headers instead of ip_conntrack ones and add sanitized versions.

18 years agoRemove unnecessary ip_conntrack/ip_nat includes
Patrick McHardy [Wed, 18 Apr 2007 06:29:14 +0000 (06:29 +0000)] 
Remove unnecessary ip_conntrack/ip_nat includes

18 years agorevert some slipped through patches
Pablo Neira AyusoMaurice van der Pot [Mon, 16 Apr 2007 17:15:22 +0000 (17:15 +0000)] 
revert some slipped through patches

18 years agoprepare conntrack and conntrackd merge: rename conntrack to conntrack-tools
Pablo Neira Ayuso [Mon, 16 Apr 2007 17:09:39 +0000 (17:09 +0000)] 
prepare conntrack and conntrackd merge: rename conntrack to conntrack-tools

18 years agoFix iptables --modprobe parameter (Maurice van der Pot <griffon26@kfk4ever.com>)
Pablo Neira AyusoMaurice van der Pot [Mon, 16 Apr 2007 17:15:22 +0000 (17:15 +0000)] 
Fix iptables --modprobe parameter (Maurice van der Pot <griffon26@kfk4ever.com>)

Supply modprobe parameter to iptables_insmod function.

Bugzilla #556

18 years agoip6tables-restore should output error of modprobe if failed to load
Yasuyuki KOZAKAI [Tue, 20 Mar 2007 16:50:21 +0000 (16:50 +0000)] 
ip6tables-restore should output error of modprobe if failed to load
ip6tables.ko after failed to initialize handle.

18 years agoFixes typos in the argument of ip[6]tables_insmod: quit -> quiet
Yasuyuki KOZAKAI [Tue, 20 Mar 2007 15:51:41 +0000 (15:51 +0000)] 
Fixes typos in the argument of ip[6]tables_insmod: quit -> quiet

18 years agoSupress error message from modprobe on checking revision.
Yasuyuki KOZAKAI [Tue, 13 Mar 2007 08:17:59 +0000 (08:17 +0000)] 
Supress error message from modprobe on checking revision.

18 years agoFix cut and paste error breaking use of groups != 0
Patrick McHardy [Tue, 6 Mar 2007 02:00:32 +0000 (02:00 +0000)] 
Fix cut and paste error breaking use of groups != 0

18 years agoiptables: add random option to SNAT (Eric Leblond)
Eric Leblond [Sat, 24 Feb 2007 15:11:33 +0000 (15:11 +0000)] 
iptables: add random option to SNAT (Eric Leblond)

18 years agoReverted r6754. libipt_icmp has the option 'any', so it's unnecessary
Yasuyuki KOZAKAI [Mon, 19 Feb 2007 05:01:39 +0000 (05:01 +0000)] 
Reverted r6754. libipt_icmp has the option 'any', so it's unnecessary
to check no option of ICMP type.

18 years agoUpdate coreteam members in manpages
Yasuyuki KOZAKAI [Thu, 15 Feb 2007 06:41:58 +0000 (06:41 +0000)] 
Update coreteam members in manpages

18 years agoFix missing space in error message (Bugzilla 544)
Patrick McHardy [Wed, 14 Feb 2007 13:59:12 +0000 (13:59 +0000)] 
Fix missing space in error message (Bugzilla 544)

18 years agoRemove and readd with executable bit set. SVN doesn't seem to have a proper way of...
Patrick McHardy [Tue, 13 Feb 2007 16:54:32 +0000 (16:54 +0000)] 
Remove and readd with executable bit set. SVN doesn't seem to have a proper way of doing this.

18 years agoFixes man page for tcp, udp, icmp{,6}. They are not loaded when only '-p' is
Yasuyuki KOZAKAI [Tue, 13 Feb 2007 16:49:15 +0000 (16:49 +0000)] 
Fixes man page for tcp, udp, icmp{,6}. They are not loaded when only '-p' is
specified, but loaded when extra options are specified, too.

18 years agoForgot to add TCPMSS target to PF6_EXT_SLIB
Patrick McHardy [Tue, 13 Feb 2007 12:28:51 +0000 (12:28 +0000)] 
Forgot to add TCPMSS target to PF6_EXT_SLIB

18 years agoError if no ICMP type is specified even though user intended
Yasuyuki KOZAKAI [Tue, 13 Feb 2007 04:06:45 +0000 (04:06 +0000)] 
Error if no ICMP type is specified even though user intended
to use icmp match.

18 years agoAdd ip6tables mh extension (Masahide NAKAMURA <nakam@linux-ipv6.org>)
Masahide NAKAMURA [Fri, 9 Feb 2007 11:24:14 +0000 (11:24 +0000)] 
Add ip6tables mh extension (Masahide NAKAMURA <nakam@linux-ipv6.org>)

Kernel part will go in 2.6.21

18 years agoUpdate coreteam members in manpages.
Patrick McHardy [Sun, 28 Jan 2007 01:24:55 +0000 (01:24 +0000)] 
Update coreteam members in manpages.

18 years agoBugzilla #535
Patrick McHardy [Fri, 26 Jan 2007 18:51:20 +0000 (18:51 +0000)] 
Bugzilla #535

In the tcpmss section of the iptables manpage, there is an extraneous trailing
quote for the --mss option.

18 years agoBugzilla #534:
Patrick McHardy [Fri, 26 Jan 2007 18:46:59 +0000 (18:46 +0000)] 
Bugzilla #534:

Please remove --mss from libipt_tcp.man.  The tcp match doesn't handle that
option, while the tcpmss match does.

18 years agoAdd ip6tables TCPMSS extension (Arnaud Ebalard <arno@natisbad.org>)
Arnaud Ebalard [Tue, 16 Jan 2007 14:19:20 +0000 (14:19 +0000)] 
Add ip6tables TCPMSS extension (Arnaud Ebalard <arno@natisbad.org>)

Kernel part will go in 2.6.21.

18 years agoAdd UDPLITE multiport support
Patrick McHardy [Thu, 11 Jan 2007 09:08:22 +0000 (09:08 +0000)] 
Add UDPLITE multiport support

18 years agoFix missing space in ruleset listing
Patrick McHardy [Thu, 11 Jan 2007 08:23:17 +0000 (08:23 +0000)] 
Fix missing space in ruleset listing

18 years agoRemove extensions for unmaintained/obsolete patchlets
Patrick McHardy [Wed, 10 Jan 2007 14:53:55 +0000 (14:53 +0000)] 
Remove extensions for unmaintained/obsolete patchlets

18 years agoFix greedy debug grep
Patrick McHardy [Wed, 10 Jan 2007 13:56:05 +0000 (13:56 +0000)] 
Fix greedy debug grep

From Bugzilla #527:

if you have a kernel with say a '-g' in it, then KERNEL_DIR will include the
'-g' in it, CFLAGS will include the '-g' in it, and then the grep will think you
have -g in your CFLAGS

for example, if you use the grsec or gentoo patchset:
$ uname -r
2.6.19.1-grsec
$ uname -r
2.6.19-gentoo-r2

then your CFLAGS will look like:
-O2 -Wall -Wunused -I"/lib/modules/2.6.19.1-grsec/build"/include -Iinclude/
-DIPTABLES_VERSION=\"1.3.7\"

and the greedy check grep will incorrectly flag this:
egrep -e '-g|-pg|IPTC_DEBUG'

18 years agofix typo in manpage (thomas@aktaia.intevation.org)
thomas [Sun, 7 Jan 2007 19:14:54 +0000 (19:14 +0000)] 
fix typo in manpage (thomas@aktaia.intevation.org)

18 years agoMove extensions for pom patches to individual patchlets.
Patrick McHardy [Tue, 12 Dec 2006 10:34:45 +0000 (10:34 +0000)] 
Move extensions for pom patches to individual patchlets.

18 years agofix compile/install error for iptables-xml with DO_MULTI=1 (Lutz Jaenicke)
Lutz Jaenicke [Sat, 9 Dec 2006 13:06:04 +0000 (13:06 +0000)] 
fix compile/install error for iptables-xml with DO_MULTI=1 (Lutz Jaenicke)

18 years agoBump version to 1.3.7 v1.3.7
Patrick McHardy [Mon, 4 Dec 2006 14:11:42 +0000 (14:11 +0000)] 
Bump version to 1.3.7

18 years agoAdd target extensions for new NFLOG target
Patrick McHardy [Sun, 3 Dec 2006 18:56:50 +0000 (18:56 +0000)] 
Add target extensions for new NFLOG target

18 years agoFix iptables-save not printing -s !0/0 and -d !0/0 as well as ip6tables
Patrick McHardy [Sat, 2 Dec 2006 17:17:33 +0000 (17:17 +0000)] 
Fix iptables-save not printing -s !0/0 and -d !0/0 as well as ip6tables
unnecessarily printing the address. Base on patch by Daniel De Graaf.

18 years agoFix /etc/network usage (Pablo Neira)
Pablo Neira Ayuso [Wed, 29 Nov 2006 13:32:32 +0000 (13:32 +0000)] 
Fix /etc/network usage (Pablo Neira)

http://bugs.debian.org/398082

iptables 1.3.5 and 1.3.6 appear to read /etc/networks, but the
information is lost somewhere with 1.3.6.

 # cat /etc/networks
 foonet 10.0.0.0

 # strace -s 255 -o /tmp/foo iptables -v -A INPUT -s foonet/8 -j
ACCEPT #1.3.5 [1]
 ACCEPT  all opt -- in * out *  10.0.0.0/8  -> 0.0.0.0/0

 # strace -s 255 -o /tmp/bar iptables -v -A INPUT -s foonet/8 -j
ACCEPT #1.3.6 [2]
 iptables v1.3.6: host/network `foonet.0.0.0' not found
 Try `iptables -h' or 'iptables --help' for more information.

1. http://people.debian.org/~ljlane/stuff/strace-iptables-1.3.5.txt
2. http://people.debian.org/~ljlane/stuff/strace-iptables-1.3.6.txt

18 years agoFix -E (rename) in iptables/ip6tables
Krzysztof Piotr Oledzki [Tue, 14 Nov 2006 07:50:54 +0000 (07:50 +0000)] 
Fix -E (rename) in iptables/ip6tables

Remove ununsed CHECK entry in commands_v_options.

It makes -E (rename) working again - generic_opt_check
expects options for RENAME not for CHECK at that table index.

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: Patrick McHardy <kaber@trash.net>
18 years agoUse /lib/modules/$(uname -r)/build instead of /usr/src/linux as KERNEL_DIR default
Patrick McHardy [Tue, 14 Nov 2006 06:39:24 +0000 (06:39 +0000)] 
Use /lib/modules/$(uname -r)/build instead of /usr/src/linux as KERNEL_DIR default

18 years agoAdd ip6tables support for hashlimit match
Patrick McHardy [Mon, 13 Nov 2006 20:31:42 +0000 (20:31 +0000)] 
Add ip6tables support for hashlimit match

18 years agoAdd iptables-xml tool (Amin Azez <azez@ufomechanic.net>)
Amin Azez [Mon, 13 Nov 2006 20:23:36 +0000 (20:23 +0000)] 
Add iptables-xml tool (Amin Azez <azez@ufomechanic.net>)

18 years agoAdd ip6tables support for sctp match
Patrick McHardy [Mon, 13 Nov 2006 19:38:44 +0000 (19:38 +0000)] 
Add ip6tables support for sctp match

18 years agoload ip_[6]tables.ko just before checking revision support in kernel.
Yasuyuki KOZAKAI [Mon, 13 Nov 2006 05:09:16 +0000 (05:09 +0000)] 
load ip_[6]tables.ko just before checking revision support in kernel.

18 years agochanges IP6T_SO_GET_REVISION_{MATCH,TARGET} to 68,69
Yasuyuki KOZAKAI [Mon, 13 Nov 2006 04:03:26 +0000 (04:03 +0000)] 
changes IP6T_SO_GET_REVISION_{MATCH,TARGET} to 68,69
66 and 67 is conflicted with IPv6 Advanced API in kernel <= 2.6.18.

18 years ago- Add revision support to ip6tables.
Rémi Denis-Courmont [Fri, 20 Oct 2006 12:24:34 +0000 (12:24 +0000)] 
- Add revision support to ip6tables.
- Add support port range match to libip6t_multiport
(R?mi Denis-Courmont <rdenis@simphalempin.com>)

18 years agoFix spelling error
Patrick McHardy [Wed, 11 Oct 2006 07:37:26 +0000 (07:37 +0000)] 
Fix spelling error

18 years agoiptables segfaults when given "" to --log-prefix (Mike Frysinger <vapier@gentoo.org>)
Mike Frysinger [Tue, 10 Oct 2006 06:18:40 +0000 (06:18 +0000)] 
iptables segfaults when given "" to --log-prefix (Mike Frysinger <vapier@gentoo.org>)

Bugzilla #516

18 years agoAdd endian annotation types to fix compilation for kernels > 2.6.18
Patrick McHardy [Mon, 9 Oct 2006 18:00:11 +0000 (18:00 +0000)] 
Add endian annotation types to fix compilation for kernels > 2.6.18

18 years agoVersion number was not bumped in Makefile in svn v1.3.6
Joszef Kadlecsik [Mon, 9 Oct 2006 12:09:42 +0000 (12:09 +0000)] 
Version number was not bumped in Makefile in svn

18 years agoUse correct types at error reporting (patch sent by H. Nakano)
Joszef Kadlecsik [Fri, 6 Oct 2006 08:30:20 +0000 (08:30 +0000)] 
Use correct types at error reporting (patch sent by H. Nakano)

18 years agoUse negative-list for "weird character in interface" warning instead of warning for...
Patrick McHardy [Wed, 20 Sep 2006 08:32:25 +0000 (08:32 +0000)] 
Use negative-list for "weird character in interface" warning instead of warning for basically every non-alphanumeric character.

18 years agoNamed realm (Simon Lodal <simon@parknet.dk>)
Simon Lodal [Sat, 2 Sep 2006 12:37:48 +0000 (12:37 +0000)] 
Named realm (Simon Lodal <simon@parknet.dk>)

Optionally read realm values from /etc/iproute2/rt_realms

18 years agoAdd statistic match extension
Patrick McHardy [Thu, 31 Aug 2006 14:01:35 +0000 (14:01 +0000)] 
Add statistic match extension

18 years agoiptables: fix ipt_MARK documentation (Eric Leblond)
Eric Leblond [Tue, 29 Aug 2006 09:45:21 +0000 (09:45 +0000)] 
iptables: fix ipt_MARK documentation (Eric Leblond)

This patch documents --or-mask and --and-mask options of the MARK
target. Description is directly taken from the source code.

18 years agoiptables -Z clears the per-rule counters, but not the chain policy counters (Andy...
Andy Gay [Tue, 22 Aug 2006 02:56:41 +0000 (02:56 +0000)] 
iptables -Z clears the per-rule counters, but not the chain policy counters (Andy Gay <andy@andynet.net>)

https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=502

18 years agoupdate quota match for xtables + fix -D bug (Phil Oester <kernel@linuxace.com>)
Phil Oester [Tue, 8 Aug 2006 09:59:59 +0000 (09:59 +0000)] 
update quota match for xtables + fix -D bug (Phil Oester <kernel@linuxace.com>)

19 years agoRevert "proto_to_name duplication" patch, as noticed by Yasuyuki it can cause
Patrick McHardyJesper Brouer [Tue, 25 Jul 2006 01:50:48 +0000 (01:50 +0000)] 
Revert "proto_to_name duplication" patch, as noticed by Yasuyuki it can cause
invalid arguments to get accepted.

19 years agoproto_to_name duplication (Phil Oester <kernel@linuxace.com>)
Phil Oester [Sat, 22 Jul 2006 14:10:53 +0000 (14:10 +0000)] 
proto_to_name duplication (Phil Oester <kernel@linuxace.com>)

Update multiport match to use the iptables version of proto_to_name
instead of reinventing the wheel.

19 years agoBUG: libiptc chain references bug (Jesper Brouer <hawk@diku.dk>)
Patrick McHardyJesper Brouer [Tue, 25 Jul 2006 01:50:48 +0000 (01:50 +0000)] 
BUG: libiptc chain references bug (Jesper Brouer <hawk@diku.dk>)

Correcting a chain references increment bug in libiptc.

The bug lies in function iptc_delete_entry() / TC_DELETE_ENTRY.  The
problem is the construction of "r" the rule entry, that is used for
comparison. The problem is that the function iptcc_map_target()
increase the target chains references count.

19 years agoreduce parse_*_port duplication (Phil Oester <kernel@linuxace.com>)
Phil Oester [Thu, 20 Jul 2006 17:01:54 +0000 (17:01 +0000)] 
reduce parse_*_port duplication (Phil Oester <kernel@linuxace.com>)

The below patch (dependent upon my 'reduce service_to_port duplication' patch)
centralizes the parse_*_port functions into parse_port.

19 years agoreduce service_to_port duplication (Phil Oester <kernel@linuxace.com>)
Phil Oester [Thu, 20 Jul 2006 17:00:19 +0000 (17:00 +0000)] 
reduce service_to_port duplication (Phil Oester <kernel@linuxace.com>)

The service_to_port function is used in a number of places, and could
benefit from some centralization instead of being duplicated everywhere.

19 years agoUse gcc to build shared objects (Phil Oester <kernel@linuxace.com>)
Phil Oester [Thu, 20 Jul 2006 16:59:04 +0000 (16:59 +0000)] 
Use gcc to build shared objects (Phil Oester <kernel@linuxace.com>)

As suggested by Dmitry Levin and included in Fedora Core releases,
use gcc instead of ld to link shared objects.  Fedora rpm notes
refer to this fixing a plugin problem, but does not offer specifics.
But in any event, 'gcc -dumpspecs' does show gcc will pass a number
of parameters which in theory it thinks are better.

Compile tested both with and without NO_SHARED_LIBS.

Closes bug #454.

19 years agoiptables: handle cidr notation more sanely (Phil Oester <kernel@linuxace.com>)
Phil Oester [Mon, 10 Jul 2006 04:52:56 +0000 (04:52 +0000)] 
iptables: handle cidr notation more sanely (Phil Oester <kernel@linuxace.com>)

At present, a command such as

iptables -A foo -s 10.10/16

will interpret 10.10/16 as 10.0.0.10/16, and after applying the mask end
up with 10.0.0.0/16, which likely isn't what the user intended.  Yet
some people do expect 10.10 (without the cidr notation) to end up as
10.0.0.10.

The below patch should satisfy all parties.  It zero pads the missing
octets only in the cidr case, leaving the IP untouched otherwise.

This resolves bug #422

19 years agoplease kill santa-claus (Pierre-Yves Ritschard <pierre-yves@spootnik.org>)
Pierre-Yves Ritschard [Wed, 5 Jul 2006 15:58:45 +0000 (15:58 +0000)] 
please kill santa-claus (Pierre-Yves Ritschard <pierre-yves@spootnik.org>)

Remove "hoho" message :)

19 years agolibiptc symbols clash (Phil Oester <kernel@linuxace.com>)
Phil Oester [Wed, 5 Jul 2006 09:31:45 +0000 (09:31 +0000)] 
libiptc symbols clash (Phil Oester <kernel@linuxace.com>)

As reported by Dmitry Levin, the TC_NUM_RULES and TC_GET_RULE exports
clash.  His patch below, resolving bug #456

19 years ago- force user to specify --icmpv6-type if icmpv6 match is required to load
Yasuyuki KOZAKAI [Tue, 4 Jul 2006 10:23:26 +0000 (10:23 +0000)] 
- force user to specify --icmpv6-type if icmpv6 match is required to load
- Don't allow multiple --icmp-type/icmpv6-type

(Closes: #461)

19 years agoip6tables multiport does not support x:y (Phil Oester <kernel@linuxace.com>)
Phil Oester [Mon, 3 Jul 2006 18:35:24 +0000 (18:35 +0000)] 
ip6tables multiport does not support x:y (Phil Oester <kernel@linuxace.com>)

Update the manpage for ip6tables multiport match to reflect
reality -- it does not (yet) support x:y syntax.  I looked at
adding it, but adding revision support to ip6tables seems a
waste at this point, since once xtables support is added to
iptables, this problem will resolve itself.

Closes bug #451.

19 years agoiptables trivial compile warning cleanup (Phil Oester <kernel@linuxace.com>)
Phil Oester [Mon, 3 Jul 2006 18:20:59 +0000 (18:20 +0000)] 
iptables trivial compile warning cleanup (Phil Oester <kernel@linuxace.com>)

Cleanup a few compile warnings in latest snapshot:

extensions/libipt_dscp_helper.c:69: warning: 'dscp_to_name' defined but not used
extensions/libipt_sctp.c: In function 'print_chunks':
extensions/libipt_sctp.c:465: warning: value computed is not used
extensions/libipt_sctp.c:477: warning: value computed is not used

Resolves bug #457.

19 years agosize_t changed to socklen_t in getsockopt call
Joszef Kadlecsik [Fri, 23 Jun 2006 10:01:08 +0000 (10:01 +0000)] 
size_t changed to socklen_t in getsockopt call

19 years agoset match negation bug fixed
Joszef Kadlecsik [Fri, 23 Jun 2006 09:55:12 +0000 (09:55 +0000)] 
set match negation bug fixed

19 years agoREDIRECT does not accept IP (Phil Oester <kernel@linuxace.com>)
Phil Oester [Tue, 20 Jun 2006 13:45:38 +0000 (13:45 +0000)] 
REDIRECT does not accept IP (Phil Oester <kernel@linuxace.com>)

As pointed out by Nicolas Mailhot in bugzilla #483, REDIRECT
does not accept an IP address and when supplied with one,
provides unexpected results.  Patch below fixes this.

19 years agoAdd new exit value to indicate concurrency issues (Jesper Dangaard Brouer <hawk@comx...
Jesper Dangaard Brouer [Mon, 19 Jun 2006 16:53:03 +0000 (16:53 +0000)] 
Add new exit value to indicate concurrency issues (Jesper Dangaard Brouer <hawk@comx.dk>)

19 years agotrivial connlimit manpage fix (Phil Oester <kernel@linuxace.com>)
Phil Oester [Mon, 29 May 2006 22:59:13 +0000 (22:59 +0000)] 
trivial connlimit manpage fix (Phil Oester <kernel@linuxace.com>)

19 years agoUse lowercase letters for match name (Simon Lodal <simonl@parknet.dk>)
Simon Lodal [Wed, 24 May 2006 16:25:09 +0000 (16:25 +0000)] 
Use lowercase letters for match name (Simon Lodal <simonl@parknet.dk>)

19 years agoAdd information about :<port> syntax (Evan Miller <evanm@frap.net>)
Evan Miller [Wed, 24 May 2006 16:21:57 +0000 (16:21 +0000)] 
Add information about :<port> syntax (Evan Miller <evanm@frap.net>)

19 years agosecmark: Add libip6t_CONNSECMARK
James Morris [Wed, 24 May 2006 16:15:27 +0000 (16:15 +0000)] 
secmark: Add libip6t_CONNSECMARK

This patch adds the shared library module for the CONNSECMARK target
(IPv6).

Signed-off-by: James Morris <jmorris@namei.org>
19 years agoD'oh .. I'm not too smart, forgot to add the new files in the previous patches :)
Patrick McHardy [Wed, 24 May 2006 16:15:03 +0000 (16:15 +0000)] 
D'oh .. I'm not too smart, forgot to add the new files in the previous patches :)

19 years agosecmark: Add libipt_CONNSECMARK
James Morris [Wed, 24 May 2006 16:12:55 +0000 (16:12 +0000)] 
secmark: Add libipt_CONNSECMARK

This patch adds the shared library module for the CONNSECMARK target
(IPv4).

Signed-off-by: James Morris <jmorris@namei.org>
19 years agosecmark: Add libip6t_SECMARK
James Morris [Wed, 24 May 2006 16:12:40 +0000 (16:12 +0000)] 
secmark: Add libip6t_SECMARK

This patch adds the shared library module for the SECMARK target (IPv6).

Signed-off-by: James Morris <jmorris@namei.org>
19 years agosecmark: Add libipt_SECMARK
James Morris [Wed, 24 May 2006 16:12:24 +0000 (16:12 +0000)] 
secmark: Add libipt_SECMARK

This patch adds the shared library module for the SECMARK target (IPv4).

Signed-off-by: James Morris <jmorris@namei.org>
19 years agosecmark: Add libselinux support
James Morris [Wed, 24 May 2006 16:11:58 +0000 (16:11 +0000)] 
secmark: Add libselinux support

This patch adds the infrastructure for linking iptables against
libselinux, for use with the SECMARK target.  This is enabled
by setting DO_SELINUX=1 in the build environment.

Signed-off-by: James Morris <jmorris@namei.org>
19 years agoAdd DCCP/SCTP support to multiport. Patch for kernel will go in 2.6.18.
Patrick McHardy [Fri, 28 Apr 2006 08:10:08 +0000 (08:10 +0000)] 
Add DCCP/SCTP support to multiport. Patch for kernel will go in 2.6.18.

19 years agoReplace annoying "Something wrong... deleting dependencies" message by something...
Patrick McHardy [Fri, 28 Apr 2006 08:09:07 +0000 (08:09 +0000)] 
Replace annoying "Something wrong... deleting dependencies" message by something more useful.