Re: iptables: No chain/target/match by that name (detailed)

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

 



Hi Amresh Kumar!
The PREROUTING and POSTROUTING chains exist only in nat or mangle
tables. So add iptables -t nat or iptables -t mangle

> iptables rule :  iptables  -A PREROUTING -i eth0 -p tcp --dport 80 -m state 
> --state NEW -m nth --counter 0 --every 4 --packet 0  -j DNAT 
> --to-destination 192.168.0.5:80
> 
> iptables -A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m 
> random --average 25 -j DNAT --to-destination 192.168.0.5:80
> 
> 

The above rules would be for the nat table.
HTH
Sorin



[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