Книга: Iptables Tutorial 1.2.2

Packet type match

Packet type match

The packet type match is used to match packets based on their type. I.e., are they destined to a specific person, to everyone or to a specific group of machines or users. These three groups are generally called unicast, broadcast and multicast, as discussed in the TCP/IP repetition chapter. The match is loaded by using -m pkttype.

Table 10-25. Packet type match options

Match --pkt-type
Kernel 2.3, 2.4, 2.5 and 2.6
Example iptables -A OUTPUT -m pkttype --pkt-type unicast
Explanation The --pkt-type match is used to tell the packet type match which packet type to match. It can either take unicast , broadcast or multicast as an argument, as in the example. It can also be inverted by using a ! like this: -m pkttype --pkt-type ! broadcast, which will match all other packet types.

Оглавление книги


Генерация: 0.529. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз