netfilter project logo

netfilter/iptables - Patch-o-Matic Listing - base

patch-o-matic base repository

IPV4OPTSSTRIP ipv4options set u32

IPV4OPTSSTRIP - IPV4 header option stripping target for mangle table

Author: Fabrice MARIE <fabrice@netfilter.org>
Status: Works For Me.

This option adds CONFIG_IP_NF_TARGET_IPV4OPTSSTRIP, which supplies a target
module that will allow you to strip all the IP options from a packet.

The target doesn't take any option, and therefore is extremly easy to use :

# iptables -t mangle -A PREROUTING -j IPV4OPTSSTRIP
# iptables -t mangle --list -n
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
IPV4OPTSSTRIP  all  --  0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


ipv4options - iptables ipv4options match

Author: Fabrice MARIE <fabrice@netfilter.org>
Status: experimental

This option adds an iptables 'ipv4options' match, which allows you to
match on IPv4 header options like source routing, record route, timestamp and
router-alert.

Suppported options are:
--ssrr
  To match packets with the flag strict source routing.
--lsrr
  To match packets with the flag loose source routing.
--no-srr
  To match packets with no flag for source routing.
[!] --rr
  To match packets with the RR flag.
[!] --ts
  To match packets with the TS flag.
[!] --ra
  To match packets with the router-alert option.
[!] --any-opt
  To match a packet with at least one IP option, or no IP option
  at all if ! is chosen.

Example:
  $ iptables -A input -m ipv4options --rr -j DROP
  will drop packets with the record-route flag.

  $ iptables -A input -m ipv4options --ts -j DROP
  will drop packets with the timestamp flag.


set - iptables ``set'' match

Author: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Status: Beta

This adds CONFIG_IP_NF_SET, which provides a match which lets you use
IP sets; the match depends on whether a checked source or destination 
address/network address/port has its bit set in/added to the given set.
It also provides a SET target, which can be used to add or remove the 
addresses/ports of a packet to/from a set. The currently supported types 
of the sets are: ipmap, macipmap, portmap, iphash, nethash, ipporthash
and iptree. 

It is possible to chain sets together by binding.

The userspace program ipset(8) is required to define and setup IP sets.


u32 - iptables``u32'' match

Author: Don Cohen <don@isis.cs3-inc.com>
Status: Tested locally, seems to work.

U32 allows you to extract quantities of up to 4 bytes from a packet,
AND them with specified masks, shift them by specified amounts and
test whether the results are in any of a set of specified ranges.
The specification of what to extract is general enough to skip over
headers with lengths stored in the packet, as in IP or TCP header
lengths.
Details and examples are in the kernel module source.



Copyright © 1999-2007 The netfilter webmaster . Harald Welte and Pablo Neira Ayuso