netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xtables-addons ACCOUNT
@ 2010-10-18 15:12 Maarten Vanraes
  2010-10-18 16:18 ` Bob Miller
  0 siblings, 1 reply; 17+ messages in thread
From: Maarten Vanraes @ 2010-10-18 15:12 UTC (permalink / raw)
  To: netfilter

Hello,

I can't get it working myself:
 * kernel: 2.6.26-2-amd64 (debian lenny)
 * iptables: 1.4.8
 * xtables-addons: 1.26


- man pages tell us to use CIDR notation; however syslog shows in the error 
messages "network/netmask" notation (255.255.255.0)
- removing the rule with iptables -D removes the rule, but it seems not the 
account table.
- iptaccount -h doesn't remove it either
- modprobe -r xt_ACCOUNT doesn't either
- i always get 0 rules or something
- adding the rule after it's been deleted doesn't work, i get error messages 
about wrong parameters
- adding a diff addr with same name succeeds, but gives error messages in 
syslog


Do i do something wrong; or is there a bug in here?

Kind Regards,

Maarten Vanraes

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: xtables-addons ACCOUNT
@ 2010-10-25  7:35 Maarten Vanraes
  0 siblings, 0 replies; 17+ messages in thread
From: Maarten Vanraes @ 2010-10-25  7:35 UTC (permalink / raw)
  To: netfilter; +Cc: Jan Engelhardt, Bob Miller

Op woensdag 20 oktober 2010 19:36:14 schreef Jan Engelhardt:
> On Wednesday 2010-10-20 15:03, Maarten Vanraes wrote:
> >Op woensdag 20 oktober 2010 11:16:29 schreef Jan Engelhardt:
> >> On Wednesday 2010-10-20 10:25, Maarten Vanraes wrote:
> >> >> > ACCOUNT: Table publicnet found, but IP/netmask mismatch. IP/netmask
> >> >> > found: 194.0.234.0/255.255.255.0
> >> >> > ACCOUNT: Table insert problem. Aborting
> >> >
> >> >this error message is due to a previous publicnet rule, and it can't
> >> >seem to find the matching network. even though it is the same one. (i
> >> >suspect it is due to network being 194.0.234.0/24 and the matcher is
> >> >checking 194.0.234.0/255.255.255.0 ). also i suspect there is a
> >> >another bug when removing the rule that the matcher can't find the
> >> >correct one (also due to different netmask notations?) and thus not
> >> >everything is removed which means that i can't reinsert that one.
> >> 
> >> Do you have a minimal testcase available?
> >
> >machine is rebooted, no iptables yet, no modules loaded.
> >
> >[]# iptables -t mangle -I POSTROUTING -j ACCOUNT --addr 0.0.0.0/0 --tname
> >self iptables: Invalid argument. Run `dmesg' for more information.
> 
> I fail to reproduce this in 64-bit and 32-compat environments.
> Since ACCOUNT.ko and x_tables.ko do output appropriate messages
> to dmesg along with returning EINVAL... I don't see much
> possibilities.
> 
> One could be that you are using an overly old xtables-addons (< 1.27)
> compat_xtables.ko with an overly new kernel (>= v2.6.35) -
> combined with having ignored the compile warnings/errors (when
> building from source, as DKMS unfortunately does).

hmm, i'm using xtables-addons 1.26 (i thought this was the latest?) i built 
this one from source.

my kernel is 2.6.26 (so it's not overly new)

since i compiled xtables-addons myself, i didn't see any compiler warnings

and i'm on x86_64.

mvg,

Maarten

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-10-29  7:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 15:12 xtables-addons ACCOUNT Maarten Vanraes
2010-10-18 16:18 ` Bob Miller
2010-10-18 16:32   ` Bob Miller
2010-10-19  8:09     ` Maarten Vanraes
2010-10-19  9:38       ` Jan Engelhardt
2010-10-19 10:00         ` Maarten Vanraes
2010-10-19 16:45       ` Bob Miller
2010-10-20  8:25         ` Maarten Vanraes
2010-10-20  9:16           ` Jan Engelhardt
2010-10-20 13:03             ` Maarten Vanraes
2010-10-20 17:36               ` Jan Engelhardt
2010-10-21 11:31                 ` Maarten Vanraes
2010-10-27 20:28                   ` Jan Engelhardt
2010-10-28  7:32                     ` Maarten Vanraes
2010-10-28 22:20                       ` Jan Engelhardt
2010-10-29  7:31                         ` Maarten Vanraes
  -- strict thread matches above, loose matches on Subject: below --
2010-10-25  7:35 Maarten Vanraes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).