netfilter project logo

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

patch-o-matic base repository

IPV4OPTSSTRIP ipv4options set

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.



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