iptables to add same rule

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

 



Hi All,
I am trying to present WUI for iptables with simple functionality such
as add/delete rule. For adding rule, can i avoid adding the same rule
again.
Suppose, if the user tries to block ftp from outside. I will add
iptable rule as below:
iptables -A INPUT -p tcp --dport 21 -j DROP

If the user tries to add the same rule again, can i somehow determine
through iptables , if the rule is already added.

Thanks and Regards,
Pavan
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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