* HElp with script execution!! @ 2005-07-27 11:11 Visham Ramsurrun 2005-07-27 12:05 ` Christian Theil 2005-07-28 10:53 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Robert de Bath 0 siblings, 2 replies; 8+ messages in thread From: Visham Ramsurrun @ 2005-07-27 11:11 UTC (permalink / raw) To: netfilter-devel Hi to all, I wanted to ask if it is possible to get a signal (i don't know from where, maybe a function in the kernel or from the NIC) just before every packet is sent out the NIC. The signal then causes a script to execute. I basically want to execute a script on a per-packet basis. But I don't know how to go about it. I thought about the QUEUE target but i'm not sure. What things I should be looking at? Thx in advance.. Warm regards, Visham ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: HElp with script execution!! 2005-07-27 11:11 HElp with script execution!! Visham Ramsurrun @ 2005-07-27 12:05 ` Christian Theil 2005-07-28 10:53 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Robert de Bath 1 sibling, 0 replies; 8+ messages in thread From: Christian Theil @ 2005-07-27 12:05 UTC (permalink / raw) To: netfilter-devel You can definitely do this with the QUEUE target. You're going to need (to write) a userspace application that retrieves the packets using libipq. See "man libipq" for an example on how to do this. Regards, Christian Theil Have. On 7/27/05, Visham Ramsurrun <vishamr2000@gmail.com> wrote: > Hi to all, > > I wanted to ask if it is possible to get a signal (i don't know from > where, maybe a function in the kernel or from the NIC) just before > every packet is sent out the NIC. The signal then causes a script to > execute. I basically want to execute a script on a per-packet basis. > But I don't know how to go about it. I thought about the QUEUE target > but i'm not sure. What things I should be looking at? > > Thx in advance.. > > Warm regards, > Visham > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* 2005-07-27 11:11 HElp with script execution!! Visham Ramsurrun 2005-07-27 12:05 ` Christian Theil @ 2005-07-28 10:53 ` Robert de Bath 2005-07-29 10:58 ` Harald Welte 1 sibling, 1 reply; 8+ messages in thread From: Robert de Bath @ 2005-07-28 10:53 UTC (permalink / raw) To: netfilter-devel Hi all, I've been mixing iptables 1.2.8/1.2.11 and 1.3.1/2 tools and unlike I would expect I know that the tables created by 1.3.x tools will segfault any 1.2.x based tool that's later runon the table. It appears that this is because iptables 1.3.x no longer sorts the hooked chains to the begining of the table. The kernel has no problem with this but old versions of iptables do. Is there any reason iptables-1.3 couldn't be changed so it doesn't crash version 1.2.x, I assume by putting the sort order back as it was ? -- Rob. (Robert de Bath <robert$ @ debath.co.uk>) <http://www.debath.co.uk/> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* 2005-07-28 10:53 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Robert de Bath @ 2005-07-29 10:58 ` Harald Welte 2005-07-30 7:12 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] Robert de Bath 2005-08-01 7:19 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Jan Engelhardt 0 siblings, 2 replies; 8+ messages in thread From: Harald Welte @ 2005-07-29 10:58 UTC (permalink / raw) To: Robert de Bath; +Cc: netfilter-devel [-- Attachment #1: Type: text/plain, Size: 1229 bytes --] On Thu, Jul 28, 2005 at 11:53:49AM +0100, Robert de Bath wrote: > Hi all, > I've been mixing iptables 1.2.8/1.2.11 and 1.3.1/2 tools and unlike I would > expect I know that the tables created by 1.3.x tools will segfault any 1.2.x > based tool that's later runon the table. mh, mixing multiple versions of the tools is a bad idea anyway. We have other issues with this as well (one has been added to INCOMPATIBILITIES recently). > Is there any reason iptables-1.3 couldn't be changed so it doesn't crash > version 1.2.x, I assume by putting the sort order back as it was ? If the fix is non-intrusive and doesn't reaquire a lot of additional computational complexity, I would accept such a patch. Otherwise I don't really think it's worth supporting such a setup. Usually you have one version of iptables installed, not multiple. -- - Harald Welte <laforge@netfilter.org> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] 2005-07-29 10:58 ` Harald Welte @ 2005-07-30 7:12 ` Robert de Bath 2005-07-31 6:48 ` Harald Welte 2005-08-01 7:19 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Jan Engelhardt 1 sibling, 1 reply; 8+ messages in thread From: Robert de Bath @ 2005-07-30 7:12 UTC (permalink / raw) To: Harald Welte; +Cc: netfilter-devel [-- Attachment #1: Type: TEXT/PLAIN, Size: 872 bytes --] On Fri, 29 Jul 2005, Harald Welte wrote: > On Thu, Jul 28, 2005 at 11:53:49AM +0100, Robert de Bath wrote: >> Hi all, >> I've been mixing iptables 1.2.8/1.2.11 and 1.3.1/2 tools and unlike I would > other issues with this as well (one has been added to INCOMPATIBILITIES > recently). Yup, spotted that but nfcache is per entry so it doesn't break _this_. > If the fix is non-intrusive and doesn't reaquire a lot of additional > computational complexity, I would accept such a patch. Otherwise I > don't really think it's worth supporting such a setup. Usually you have > one version of iptables installed, not multiple. <grin> The change was a _lot_ easier than I thought, looks like it's a real bug too. [attached] -- Rob. (Robert de Bath <robert$ @ debath.co.uk>) <http://www.debath.co.uk/> [-- Attachment #2: Type: TEXT/PLAIN, Size: 422 bytes --] --- libiptc/libiptc.c.orig 2005-07-19 23:03:49.000000000 +0100 +++ libiptc/libiptc.c 2005-07-30 07:59:06.312238644 +0100 @@ -399,7 +399,7 @@ /* sort only user defined chains */ if (!c->hooknum) { list_for_each_entry(tmp, &h->chains, list) { - if (strcmp(c->name, tmp->name) <= 0) { + if (!tmp->hooknum && strcmp(c->name, tmp->name) <= 0) { list_add(&c->list, tmp->list.prev); return; } ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] 2005-07-30 7:12 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] Robert de Bath @ 2005-07-31 6:48 ` Harald Welte 0 siblings, 0 replies; 8+ messages in thread From: Harald Welte @ 2005-07-31 6:48 UTC (permalink / raw) To: Robert de Bath; +Cc: netfilter-devel [-- Attachment #1: Type: text/plain, Size: 967 bytes --] On Sat, Jul 30, 2005 at 08:12:31AM +0100, Robert de Bath wrote: > >If the fix is non-intrusive and doesn't reaquire a lot of additional > >computational complexity, I would accept such a patch. Otherwise I > >don't really think it's worth supporting such a setup. Usually you have > >one version of iptables installed, not multiple. > > <grin> The change was a _lot_ easier than I thought, looks like it's a > real bug too. [attached] thanks, Committed revision 4207. Unfortunately too late for 1.3.3 :( I don't think it's serious enough to justify an early 1.3.4 release. -- - Harald Welte <laforge@netfilter.org> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* 2005-07-29 10:58 ` Harald Welte 2005-07-30 7:12 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] Robert de Bath @ 2005-08-01 7:19 ` Jan Engelhardt 2005-08-01 20:02 ` Harald Welte 1 sibling, 1 reply; 8+ messages in thread From: Jan Engelhardt @ 2005-08-01 7:19 UTC (permalink / raw) To: Harald Welte; +Cc: Robert de Bath, netfilter-devel >mh, mixing multiple versions of the tools is a bad idea anyway. We have There are .version members in the info struct of both userspace and kernelspace modules - if they are different, why did not iptables catch this? Jan Engelhardt -- ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* 2005-08-01 7:19 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Jan Engelhardt @ 2005-08-01 20:02 ` Harald Welte 0 siblings, 0 replies; 8+ messages in thread From: Harald Welte @ 2005-08-01 20:02 UTC (permalink / raw) To: Jan Engelhardt; +Cc: Robert de Bath, netfilter-devel [-- Attachment #1: Type: text/plain, Size: 768 bytes --] On Mon, Aug 01, 2005 at 09:19:48AM +0200, Jan Engelhardt wrote: > > >mh, mixing multiple versions of the tools is a bad idea anyway. We have > > There are .version members in the info struct of both userspace and > kernelspace modules - if they are different, why did not iptables catch this? sorry, this is for different layout of the 'per match' or 'per target' data structures. -- - Harald Welte <laforge@netfilter.org> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-08-01 20:02 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-07-27 11:11 HElp with script execution!! Visham Ramsurrun 2005-07-27 12:05 ` Christian Theil 2005-07-28 10:53 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Robert de Bath 2005-07-29 10:58 ` Harald Welte 2005-07-30 7:12 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* [PATCH] Robert de Bath 2005-07-31 6:48 ` Harald Welte 2005-08-01 7:19 ` Bug Report: IPtables 1.2.* segfaulted by iptables 1.3.* Jan Engelhardt 2005-08-01 20:02 ` Harald Welte
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.