random and ipt_random.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Background 
I'm trying to set up iptables to drop a percentage of packets and forward the rest.  The random modules seems to be the way to do this. 
 
Problem 
When I try adding a rule I get the following; 
iptables -A INPUT -p icmp --icmp-type echo-request -m random --average 50 -j DROP 
iptables v1.2.11: Couldn't load match `random':/lib/iptables/libipt_random.so: cannot open sharedobject file: No such file or directory 
Versions I've tried this on are; kernel=2.6.15-1 + iptables=1.3.3, kernel=2.6.9-34 + iptables=1.2.11. 
 
Some digging 
According to iptables/extensions/.random-test 
#!/bin/sh 
# True if random is applied. 
[ -f $KERNEL_DIR/include/linux/netfilter_ipv4/ipt_random.h ] && echo random 
The random extentsion is only built in if ipt_random.h is present in the kernel source. 
I can't find any reference to ipt_random.h for the 2.6 kernel. 
 
Anyone any ideas what I could try next? 
 
Thanks,  
Mike 
 
 







[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux