Re: Check for rule existence

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

 



On Mon, Jun 14, 2010 at 11:16 AM, Mistick Levi <gmistick@xxxxxxxxx> wrote:
> Hi,
> Does anyone know of a good way to check for a rule existence?
> So far I'm doing it with grep, and text manipulation...

Just a quick note that you might want to look at iptables-save instead
of vanilla iptables if you aren't already.  The former command gives
the rules in a sort of canonical form that is used for restoring
rulesets.  You'll have fewer spacing issues and such. Hopefully others
will have more to add. =)

--Mike
--
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