random match on linux-2.6
Javier Valencia
jvalencia at log01.org
Sat Apr 16 22:55:10 CEST 2005
I've seen that it's not available on 2.6, but it's just the same in both
kernels, copied contents of ...random/linux to ...random/linux-2.6, and
worked fine. I don't know if you already know that.
enigma ~ # uname -a
Linux enigma 2.6.11-gentoo-r4 #2 Tue Mar 29 23:30:54 WEST 2005 i686
Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
enigma ~ # iptables -A INPUT -p icmp -m random --average 30 -j DROP
enigma ~ # iptables --list -v -n
Chain INPUT (policy ACCEPT 190K packets, 77M bytes)
pkts bytes target prot opt in out source
destination
0 0 DROP icmp -- * * 0.0.0.0/0
0.0.0.0/0 random 30%
More information about the netfilter-devel
mailing list