]>
git.ipfire.org Git - thirdparty/iptables.git/log
Evgeniy Polyakov [Sat, 11 Jun 2005 17:06:23 +0000 (17:06 +0000)]
OSF: lib_ipt.c changes to support connector notifications (Evgeniy Polyakov <johnpol@2ka.mipt.ru>)
Phil Oester [Sat, 11 Jun 2005 16:27:10 +0000 (16:27 +0000)]
update multiport manpage (Phil Oester <kernel@linuxace.com>)
Tom Eastep [Sat, 11 Jun 2005 16:17:45 +0000 (16:17 +0000)]
Fix CONNMARK save/restore (Tom Eastep <teastep@shorewall.net>, Pawel Sikora <pluto@agmk.net>)
Pablo Neira [Sun, 29 May 2005 19:05:23 +0000 (19:05 +0000)]
Release previously merged options from merge_opts(), reduces memory-usage of iptables-restore dramatically (Pablo Neira)
Rusty Russell [Wed, 25 May 2005 08:10:03 +0000 (08:10 +0000)]
While adding testing for inversion of multiport, noticed that documentation about --ports is *wrong*. Ports do not have to be equal: either dest or src being in list is enough for match.
Harald Welte [Wed, 4 May 2005 07:34:37 +0000 (07:34 +0000)]
include FIN bit in mask of "--syn" bits
Patrick McHardy [Mon, 2 May 2005 20:37:39 +0000 (20:37 +0000)]
Ignore unknown arguments in libipt_ULOG (Patrick McHardy <kaber@trash.net>)
Piotrek Kaczmarek [Sun, 24 Apr 2005 16:19:51 +0000 (16:19 +0000)]
Fix connbytes command line parsing bug (Piotrek Kaczmarek <kaczorek@daleka.net>)
Harald Welte [Fri, 15 Apr 2005 09:39:55 +0000 (09:39 +0000)]
pull out pmtu changes to fix compilation issues
Harald WeltePablo Neira [Fri, 15 Apr 2005 09:35:50 +0000 (09:35 +0000)]
poll goto specific changes out of trunk
Jonas Berlin [Fri, 15 Apr 2005 09:35:24 +0000 (09:35 +0000)]
fix iptables-save/restore of goto (Jonas Berlin)
Harald WeltePablo Neira [Fri, 15 Apr 2005 09:35:50 +0000 (09:35 +0000)]
omeone forgot to update ipt_conntrack.h header in user space. So, update it to use ip_conntrack_old_tuple. (Pablo Neira)
Florian Lohoff [Sun, 10 Apr 2005 20:34:00 +0000 (20:34 +0000)]
add REJECT with icmp-frag-needed (Florian Lohoff)
Phil Oester [Fri, 1 Apr 2005 07:07:00 +0000 (07:07 +0000)]
don't allow newlines in LOG prefix (Phil Oester) (Closes: #312)
Jonas Berlin [Fri, 1 Apr 2005 06:58:38 +0000 (06:58 +0000)]
re-sync ip6tables with iptables (check for init functions) (Jonas Berlin)
Jonas Berlin [Fri, 1 Apr 2005 06:54:23 +0000 (06:54 +0000)]
add lots of man pages (Jonas Berlin)
Jonas Berlin [Fri, 1 Apr 2005 06:38:25 +0000 (06:38 +0000)]
the optflags array contains a '3' for the OPT_LINENUMBERS entry while everywhere else '0' is used (Jonas Berlin)
Michal Pokrywka [Fri, 18 Mar 2005 08:05:10 +0000 (08:05 +0000)]
SET target bugfix by Michal Pokrywka applied
Torsten Lüttgert [Wed, 16 Mar 2005 14:42:31 +0000 (14:42 +0000)]
Fix TCPLAG version (Torsten Lüttgert <t.luettgert@pressestimmen.de>)
Jonas Berlin [Tue, 15 Mar 2005 19:20:14 +0000 (19:20 +0000)]
improve REDIRECT manpage (Jonas Berlin <xkr47@outerspace.dyndns.org>)
Harald Welte [Mon, 7 Mar 2005 14:15:04 +0000 (14:15 +0000)]
bump version to 1.3.1
Pablo Neira [Mon, 7 Mar 2005 14:02:02 +0000 (14:02 +0000)]
This fixes rule deletion in CLUSTERIP in iptables (Pablo Neira)
Olaf Rempel [Fri, 4 Mar 2005 23:08:30 +0000 (23:08 +0000)]
Restore chain order (Olaf Rempel <razzor@kopf-tisch.de>)
Pablo Neira [Mon, 14 Feb 2005 13:13:04 +0000 (13:13 +0000)]
Kill NFC_* stuff in iptables (Pablo Neira <pablo@eurodev.net>)
Fixes build with conntrack event patch for 2.6
Harald Welte [Sun, 13 Feb 2005 18:17:11 +0000 (18:17 +0000)]
Allow "--realm ! foo" and "! --realm foo" (Closes: #297)
Harald Welte [Sun, 13 Feb 2005 09:30:38 +0000 (09:30 +0000)]
fix missing comma at end of line
Martin Josefsson [Sat, 12 Feb 2005 21:40:16 +0000 (21:40 +0000)]
Fix CONNMARK/connmark issues with 64bit kernel and 32bit userspace.
Also fixes a typo in CONNMARK, --mask set the mark, not the mask.
Initial patch by: Pablo Neira <pablo@eurodev.net>
Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Harald Welte [Sat, 12 Feb 2005 21:06:28 +0000 (21:06 +0000)]
time to release 1.3.0 final
Harald Welte [Sat, 12 Feb 2005 21:03:42 +0000 (21:03 +0000)]
remove way outdated files
Harald Welte [Sat, 12 Feb 2005 21:02:26 +0000 (21:02 +0000)]
update notes to reflect subversion usage
Harald Welte [Tue, 8 Feb 2005 15:54:17 +0000 (15:54 +0000)]
try to fix realm save/restore issue (Adresses: #297)
Samuel Jean [Mon, 7 Feb 2005 18:44:31 +0000 (18:44 +0000)]
Fix rule deletion (hinfo pointer initialized by kernel, don't compare it in userspace). (Samuel Jean)
Nikolai Malykh [Mon, 7 Feb 2005 18:38:49 +0000 (18:38 +0000)]
fix parameter handling in libipt_hashlimit with iptables-save (Nikolai Malykh)
Phil Oester [Fri, 4 Feb 2005 07:38:02 +0000 (07:38 +0000)]
Revert the recent addition of memset()'s to TC_COMMIT. One of them is bogus and the other one needs more investigation to why valgrind is complaining.
Noticed and reverted by Phil Oester.
Phil Oester [Wed, 2 Feb 2005 19:20:15 +0000 (19:20 +0000)]
Add support for inversion to multiport revision 1.
Signed-off-by: Phil Oester <kernel@linuxace.com>
Harald Welte [Tue, 1 Feb 2005 16:47:35 +0000 (16:47 +0000)]
we now need to exclude .svn instead of CVS
Harald Welte [Tue, 1 Feb 2005 16:46:26 +0000 (16:46 +0000)]
release rc1
Harald Welte [Tue, 1 Feb 2005 16:45:56 +0000 (16:45 +0000)]
re-implement alphabetic sorting to not confuse users who upgrade to 1.3.0
Harald Welte [Tue, 1 Feb 2005 15:53:07 +0000 (15:53 +0000)]
fix compiler warning about discarding const
Harald Welte [Tue, 1 Feb 2005 15:42:08 +0000 (15:42 +0000)]
add missing comma
Harald Welte [Tue, 1 Feb 2005 15:41:07 +0000 (15:41 +0000)]
fix typo
Harald Welte [Tue, 1 Feb 2005 15:38:20 +0000 (15:38 +0000)]
make structure initializers use C99 standard (Harald Welte)
Martin Josefsson [Tue, 1 Feb 2005 15:22:20 +0000 (15:22 +0000)]
typo
Harald Welte [Tue, 1 Feb 2005 15:14:15 +0000 (15:14 +0000)]
check for colons
Harald Welte [Tue, 1 Feb 2005 15:13:31 +0000 (15:13 +0000)]
be more specific what INPUT means (Matthias Bruestle)
Harald Welte [Tue, 1 Feb 2005 13:36:46 +0000 (13:36 +0000)]
Use C99 initializers
Derrik Pates [Tue, 1 Feb 2005 13:28:14 +0000 (13:28 +0000)]
- Sets the 'iptc_fn' global variable to the pointer to the current functions in all major TC_* functions. This is necessary because in certain cases, an error return from a function that doesn't set 'iptc_fn' will conflict with a function-specific error return from one that does, causing TC_STRERROR() to return the wrong error string. This ensures that the right one will be returned.
- Implements a simple reference counter for the netlink socket global variable 'sockfd'; this is necessary for IPTables::IPv4, where multiple tables (filter, nat, mangle, untracked) may be opened at one time. The way libiptc does it in the official version causes previously-opened tables to break such that attempts to commit changes will fail.
- Adds a couple of memset() invocations in TC_COMMIT, based on past analysis with valgrind. It claimed that allocated structure were not being fully initialized, and adding the memset()s corrected this warning.
(Derrik Pates <demon@devrandom.net>)
Phil Oester [Tue, 1 Feb 2005 12:56:16 +0000 (12:56 +0000)]
John McCann points out via bugzilla that iptables happily accepts this
syntax on DNAT/SNAT:
--to x.x.x.x:y:z
but doesn't actually make use of the second port. Clear up the confusion
by only accepting a dash between the ports.
This closes bugzilla #265.
Signed-off-by: Phil Oester <kernel@linuxace.com>
Nikolai Malykh [Sat, 22 Jan 2005 13:47:31 +0000 (13:47 +0000)]
fix name of 'extra_opts' structure member (Nikolai Malykh)
Martin Josefsson [Wed, 5 Jan 2005 15:21:15 +0000 (15:21 +0000)]
Make it compile on current kernels, the future isn't here yet.
Rusty Russell [Mon, 3 Jan 2005 09:51:58 +0000 (09:51 +0000)]
Testsuite found an issue: multiport accepts -p ! tcp.
Pablo Neira [Mon, 3 Jan 2005 09:37:07 +0000 (09:37 +0000)]
Pablo Neira:
Multiport revision 1 userspace support.
Martin Josefsson [Mon, 3 Jan 2005 07:48:06 +0000 (07:48 +0000)]
Remove leftover debug printf
Martin Josefsson [Mon, 3 Jan 2005 07:46:07 +0000 (07:46 +0000)]
Replace memchr with strlen and fix up one of the statements.
Rusty Russell [Mon, 3 Jan 2005 03:48:40 +0000 (03:48 +0000)]
Extension revision number support (if kernel supports the getsockopts).
Enhance MARK match with second revision.
Committed in anticipation of the kernel patch being applied.
Nicolas Bouliane [Sun, 2 Jan 2005 23:34:48 +0000 (23:34 +0000)]
Prevent user from using --helper multiple times (Nicolas Bouliane <nib@cookinglinux.org>)
John Lange [Sun, 2 Jan 2005 23:33:12 +0000 (23:33 +0000)]
Add --log-uid option (John Lange <john.lange@open-it.ca>)
Rusty Russell [Wed, 29 Dec 2004 11:14:52 +0000 (11:14 +0000)]
Stupid typo that meant we didn't compare target data when doing delete-by-matching-rule (found by nfsim test).
Rusty Russell [Wed, 29 Dec 2004 11:13:12 +0000 (11:13 +0000)]
Fix compile error introduced by C99 conversion.
Pablo Neira [Tue, 28 Dec 2004 13:11:59 +0000 (13:11 +0000)]
Pablo Neira: extensions conversion to C99 structure initialization
(I removed the revision stuff for the moment, but this needs to go in before the code moves too much --RR)
Martin Josefsson [Mon, 27 Dec 2004 19:49:28 +0000 (19:49 +0000)]
Fix setting lib_dir in ip*tables-{save,restore}
Rusty Russell [Wed, 22 Dec 2004 04:26:53 +0000 (04:26 +0000)]
Use string_to_number. Don't check for no optarg: we set has_arg to 1 in option array, so getopt does that for us.
Rusty Russell [Wed, 22 Dec 2004 00:37:10 +0000 (00:37 +0000)]
Don't need ipt_entry_target()/ip6t_entry_target() now kernel uses static inline instead of extern inline (otherwise it doesn't compile without -O).
Don't re-initialize libiptc/libip6t unless modprobe attempt actually succeeds. This makes nfsim run about 20 times faster, as it doesn't have to explore failures in the first iptc_init().
Rusty Russell [Mon, 20 Dec 2004 05:29:52 +0000 (05:29 +0000)]
Implement IPTABLES_LIB_DIR and IP6TABLES_LIB_DIR environment variables, and set them in testsuite if we're running iptables within tree.
Nicolas Bouliane [Mon, 20 Dec 2004 05:11:59 +0000 (05:11 +0000)]
Nicolas Bouliane: I was writing an nfsim .sim for the match tos, when I realized that when we enter --tos twice the second overwrite the first.
Martin Josefsson [Sat, 18 Dec 2004 17:18:49 +0000 (17:18 +0000)]
Implement some optimization for finding rules to replace in TC_REPLACE_ENTRY.
Stolen from TC_DELETE_NUM_ENTRY.
Rusty Russell [Thu, 16 Dec 2004 14:22:23 +0000 (14:22 +0000)]
Make "is_same" test basics and entries only: targets are generic.
Make target testing aware of different kinds of rules.
Change reverse logic: target_different now target_same.
Set type to MODULE in iptcc_map_target.
Add testcase for this.
Rusty Russell [Thu, 16 Dec 2004 13:21:44 +0000 (13:21 +0000)]
Remove GET_TARGET() define: this was for compiling iptables for debugging (ie. without -O) on old kernels where ipt_get_target() was defined "extern inline". These days it's "static inline", and only developers build without -O anyway.
Fix up DUMP_ENTRIES a little, but remove calls: it only dumps the table as loaded, not the changed (cached) table, which is misleading.
Fix TC_DELETE_ENTRY: we need to use iptcc_map_target() before comparing, otherwise "-j DROP" (as an example) doesn't work.
Patrick Schaaf [Tue, 14 Dec 2004 02:58:31 +0000 (02:58 +0000)]
ROUTE --tee target extension (Patrick Schaaf)
Joszef Kadlecsik [Wed, 1 Dec 2004 09:11:33 +0000 (09:11 +0000)]
ipset 2 related updates (JK)
Harald Welte [Thu, 18 Nov 2004 22:59:36 +0000 (22:59 +0000)]
fix some compiler warnings and errors
Harald Welte [Thu, 18 Nov 2004 22:50:01 +0000 (22:50 +0000)]
sync with latest patch-o-matic-ng update (support direction and mode parameters)
Martin Josefsson [Sun, 24 Oct 2004 22:27:31 +0000 (22:27 +0000)]
Search backwards when inserting/deleting in/from the top half of the rules in a chain.
before:
insert 50k rules without any previous rules
real 0m1.314s
user 0m1.184s
sys 0m0.123s
insert 50k with one already existing rule
real 2m38.052s
user 2m37.296s
sys 0m0.353s
insert 50k rules in the middle of 20k already existing rules
real 2m43.831s
user 2m43.005s
sys 0m0.414s
delete rule #70000 10k times with 100k rules
real 1m37.990s
user 1m37.247s
sys 0m0.500s
after:
insert 50k without any previous rules
real 0m1.315s
user 0m1.184s
sys 0m0.125s
insert 50k with one already existing rule
real 0m1.313s
user 0m1.189s
sys 0m0.119s
insert 50k rules in the middle of 20k already existing rules
real 0m8.550s
user 0m8.327s
sys 0m0.197s
delete rule #70000 10k times with 100k rules
real 0m35.566s
user 0m35.062s
sys 0m0.416s
Harald Welte [Fri, 22 Oct 2004 08:14:07 +0000 (08:14 +0000)]
Fix module-autoloading in certain cases (Fixse Debian Bug 219686)
Harald Welte [Wed, 20 Oct 2004 22:02:47 +0000 (22:02 +0000)]
minor syntax fixes
Harald Welte [Wed, 20 Oct 2004 14:49:56 +0000 (14:49 +0000)]
- add hashlimit to makefile
- fix typo in libipt_hashlimit
Harald Welte [Wed, 20 Oct 2004 14:49:13 +0000 (14:49 +0000)]
move ipt_hashlimit to it's correct location
Harald Welte [Wed, 20 Oct 2004 14:06:58 +0000 (14:06 +0000)]
add hashlimit kernel header file
Harald Welte [Wed, 20 Oct 2004 13:28:17 +0000 (13:28 +0000)]
hashlimit port of userspace plugin
Harald Welte [Wed, 6 Oct 2004 12:32:54 +0000 (12:32 +0000)]
add paragraph about raw table
Patrick McHardy [Sun, 3 Oct 2004 20:36:54 +0000 (20:36 +0000)]
Mention owner brokenness in manpage
Phil Oester [Fri, 1 Oct 2004 21:32:39 +0000 (21:32 +0000)]
note owner match brokenness in helptext, closes bugzilla #244 (Phil Oester)
Phil Oester [Sun, 26 Sep 2004 07:44:48 +0000 (07:44 +0000)]
Add comment about time not adhering DST (Phil Oester) (Closes: #75)
Martin Josefsson [Thu, 23 Sep 2004 19:25:06 +0000 (19:25 +0000)]
Replace O(n) with O(1) when TC_INSERT_ENTRY() inserts an entry at the end.
Do the same with TC_DELETE_NUM_ENTRY() when deleting the last rule.
My rule management script does both of these things in certain situations.
Created a file with 50.000 rules which my script converted into
iptables-restore format but inserting each rule with an index instead of
appending like the iptables-save output does. That took a while without this
optimization. Same thing when deleting the 45.000 last rules in that chain,
the script outputs deletes by number starting from the bottom.
Inserting or deleting (by number) in the middle of the chain is still O(n)
where n is the rulenumber where the insert/delete is taking place.
Martin Josefsson [Thu, 23 Sep 2004 18:24:29 +0000 (18:24 +0000)]
Spelling error.
Martin Josefsson [Thu, 23 Sep 2004 18:23:20 +0000 (18:23 +0000)]
Fix returnvalue of TC_BUILTIN()
All jumps to nonexisting chains were believed to be jumps to builtin chains,
that's bad as it made it impossible to add rules with external targets.
Martin Josefsson [Wed, 22 Sep 2004 22:04:07 +0000 (22:04 +0000)]
Make sure to zero all the memory we allocate for the new table.
Makes flushing of chains containing more than a few entries work without
potentially oopsing the kernel.
Martin Josefsson [Wed, 22 Sep 2004 21:37:41 +0000 (21:37 +0000)]
Make TC_DELETE_ENTRY() and TC_DELETE_NUM_ENTRY() actually do something practical
Martin Josefsson [Wed, 22 Sep 2004 21:31:09 +0000 (21:31 +0000)]
Fix two more rulenumber off by 1 errors
Martin Josefsson [Wed, 22 Sep 2004 21:04:07 +0000 (21:04 +0000)]
Insertion of rules with -I was broken.
It checked if a rule existed on the position we were inserting to.
Thus inserting into an empty chain didn't work.
And it didn't care about the fact that the first rule in the chain has index 1
the rulenumer we get starts at 0...
Martin Josefsson [Wed, 22 Sep 2004 21:00:19 +0000 (21:00 +0000)]
Fix rule counting
Martin Josefsson [Wed, 22 Sep 2004 19:39:40 +0000 (19:39 +0000)]
Fix listing of module targets.
Type was only set for standard targets.
Harald: please review.
Simon Lodal [Wed, 22 Sep 2004 01:57:41 +0000 (01:57 +0000)]
realm: fix inversion (Simon Lodal)
Phil Oester [Tue, 21 Sep 2004 10:49:13 +0000 (10:49 +0000)]
Fix half-working ipv6 limit invert check (Phil Oester)
Phil Oester [Tue, 21 Sep 2004 10:46:40 +0000 (10:46 +0000)]
Fix half-working dstlimit invert check (Phil Oester)
Phil Oester [Tue, 21 Sep 2004 10:43:45 +0000 (10:43 +0000)]
limit match does not support invert, warn about it. Closes bugzilla #95 (Phil Oester)
Brad Fisher [Mon, 20 Sep 2004 08:52:19 +0000 (08:52 +0000)]
Add comment match extension (Brad Fisher)
Harald Welte [Sun, 19 Sep 2004 21:00:12 +0000 (21:00 +0000)]
fix segfault from memory allocation: handle->entries is actualy struct ipt_get_entries plus the size
Phil Oester [Sat, 18 Sep 2004 17:45:41 +0000 (17:45 +0000)]
fix psd option parsing (Phil Oester)
Patrick McHardy [Sat, 18 Sep 2004 17:43:36 +0000 (17:43 +0000)]
Print error when '!' is used with multiport. Based on patch by Phil Oester.