hello,
i have been using iptables for quite sometime , Now my problem is , if by
make i add multiple type of same rule in iptables it accepts N number of
entries . So can any body tell me how to aviod that or can i check the same
rule exists before Appending it into the table.
Eg : iptables -A INPUT -d 192.168.0.2/32 -i eth1 -j DROP
i have add the above rules 10 times 20 times but the system never says the
above rule exist . Can anybody tell me how can i check or aviod .
My issue is not the performance point !! Actually i am running some scripts
with add rules when user login and which delete some rules when they log
out . But some times this scripts mal performs and the entries doesn't get
deleted OR added . and the user again logs in it add one more rule to the
same iptables. I want to stop this , if the same rule exists the iptables
should give some error or should add the same rule again .
Please help me .
thanks in advance .
amit