Skip to contentSkip to conversation

iptables to add same rule

DISCUSSION Miguel Ghobangieno 1 participant 1 message May 19, 2009

lore
Share & tools
lore
#0 lore raw

Just forget it, no one is going to help you. No one helps ANYONE on this fucking list.

Quoted 27 lines · Sudarshan Soma

From: Sudarshan Soma <[email protected]>
Subject: iptables to add same rule
To: [email protected]
Date: Tuesday, May 19, 2009, 6:29 AM
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html