Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables random support
@ 2006-07-30 13:52 Daniel Williams
       [not found] ` <427c54c0607301802h40c9f934l679e822899cf5c61@mail.gmail.com>
  2006-08-01 11:06 ` Jan Engelhardt
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Williams @ 2006-07-30 13:52 UTC (permalink / raw)
  To: netfilter


Hi,

I have been trying to get iptables -m random support working to very
little success.

Does anyone have a modern 2.6 kernel with iptables -m random working ?

I tried using the random and nth patches from patch-o-matic-ng-20050918,
with 2.6.17.7 and iptables 1.2.11 and 1.3.5.

The modules are loaded:
root@server2:/usr/src# lsmod | grep ipt
iptable_nat             8196  0
ip_nat                 17580  1 iptable_nat
iptable_filter          3968  0
ipt_random              3200  0
ipt_nth                 3584  0
iptable_mangle          3968  0
ip_tables              14580  3
iptable_nat,iptable_filter,iptable_mangle
x_tables               14724  5
xt_tcpudp,iptable_nat,ipt_random,ipt_nth,ip_tables


When I type a command that uses random or nth I get:
# iptables -A INPUT -m random --average 1 -j ACCEPT
iptables: Invalid argument
# iptables -A INPUT -m nth --every 2 -j ACCEPT
iptables: Invalid argument
with iptables 1.2.11 and with iptables 1.3.5:
# iptables -A INPUT -m nth --every 2 -j ACCEPT
iptables: Unknown error 4294967295
# iptables -A INPUT -m random -j ACCEPT
iptables: Unknown error 4294967295


I realize the 'unknown error' is a known, unrelated bug.

I have some complicated routing requirements that I plan to use random
in combination with mark/fwmark routing.

I am also interested if anyone has this setup and can tell me the
performance of there setup.

Daniel




^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: iptables random support
@ 2006-07-31  1:13 Daniel Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Williams @ 2006-07-31  1:13 UTC (permalink / raw)
  To: Daniel Williams, netfilter



To add to this dmesg reports the following when trying to add a random
or nth match rule:
ip_tables: random match: invalid size 0 != 4
and
ip_tables: nth match: invalid size 0 != 8


Daniel

-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of Daniel
Williams
Sent: Sunday, 30 July 2006 9:53 PM
To: netfilter@lists.netfilter.org
Subject: iptables random support


Hi,

I have been trying to get iptables -m random support working to very
little success.

Does anyone have a modern 2.6 kernel with iptables -m random working ?

I tried using the random and nth patches from patch-o-matic-ng-20050918,
with 2.6.17.7 and iptables 1.2.11 and 1.3.5.

The modules are loaded:
root@server2:/usr/src# lsmod | grep ipt
iptable_nat             8196  0
ip_nat                 17580  1 iptable_nat
iptable_filter          3968  0
ipt_random              3200  0
ipt_nth                 3584  0
iptable_mangle          3968  0
ip_tables              14580  3
iptable_nat,iptable_filter,iptable_mangle
x_tables               14724  5
xt_tcpudp,iptable_nat,ipt_random,ipt_nth,ip_tables


When I type a command that uses random or nth I get:
# iptables -A INPUT -m random --average 1 -j ACCEPT
iptables: Invalid argument
# iptables -A INPUT -m nth --every 2 -j ACCEPT
iptables: Invalid argument
with iptables 1.2.11 and with iptables 1.3.5:
# iptables -A INPUT -m nth --every 2 -j ACCEPT
iptables: Unknown error 4294967295
# iptables -A INPUT -m random -j ACCEPT
iptables: Unknown error 4294967295


I realize the 'unknown error' is a known, unrelated bug.

I have some complicated routing requirements that I plan to use random
in combination with mark/fwmark routing.

I am also interested if anyone has this setup and can tell me the
performance of there setup.

Daniel





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

end of thread, other threads:[~2006-08-02  2:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-30 13:52 iptables random support Daniel Williams
     [not found] ` <427c54c0607301802h40c9f934l679e822899cf5c61@mail.gmail.com>
2006-07-31  1:20   ` Fwd: " Daniel De Graaf
2006-08-01 11:06 ` Jan Engelhardt
2006-08-02  2:39   ` Ming-Ching Tiew
  -- strict thread matches above, loose matches on Subject: below --
2006-07-31  1:13 Daniel Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox