Little-known iptable features

Translation of the original in Catalan. Read it in: CatalàCastellano

In the Linux Journal I've found quite an interesting article about things that iptables do and that few people know about, in this article I give you a small summary of what Chris Lowth explains in his article. In case someone doesn't have enough with my summary the original link: The Hidden Treasures of IPTables ( article from Linux Journal April 2004 ).

POM: Patch-o-Matic, one of the great enigmas when we enter the Netfilter/iptables website. Well it's nothing more than a guide on how to implement 'patches' in the kernel in order to give more functionality to Netfilter compromising its integrity as little as possible. Inside the POM 'patches' we can find countless features some not maintained and others poorly supported, but among all this code we can find very interesting software.

Bits of String: this 'patch' allows filtering according to the content of the packets' payload, you can search for a string inside the payload and according to that apply a filtering rule to it.

mport: in principle iptables when they apply a filtering rule do so at most on one port or on a range of adjacent ports, but we can't specify a list of ports separated by commas on which to apply the filtering rule; this is precisely the usefulness of mport, to be able to use this feature so useful and easy to understand when re-reading the rules.

time-based rules: the name says it all, we can use rules that only take effect during a time range. Very useful for limiting access of services to the internet in offices and other similar places.

Tar pits and Randomizing: these are the last two features commented on in the article, basically useful when defending against external attacks and playing 'war-games' but really not very functional for mortals.