Iptables et protocole utilise

mayel -  
 mayel -
Salut,

je voudrais definir un filtre avec iptables pour marquer les paquets qui utilisent un certain protocole. Je n'ai pas trouve la liste de protocoles qui peuvent suivre l'option -p d'iptables ...
Tous les protocoles standardises sont ils reconnus par iptables. Je serais interesse par savoir par exemple si c'est le cas pour le protocole RSVP.

Merci pour votre aide.
A voir également:

2 réponses

c-moi Messages postés 82 Statut Membre 10
 
Bonjour,

vu dans le man iptables :
The following parameters make up a rule specification (as used in the add, delete, insert, replace and append commands).

       -p, --protocol [!] protocol
              The protocol of the rule or of the packet to check.  The specified protocol can be one of tcp, udp, icmp, or all, or  it  can  be  a  numeric value,  representing  one of these protocols or a different one.  A protocol name from /etc/protocols is also allowed.  A "!" argument before the protocol inverts the test.  The number zero is equivalent to all.  Protocol all will match with all protocols and  is  taken  as  default when this option is omitted.


Maintenant, regardons :

$ grep -i rsvp /etc/protocols
rsvp  46      RSVP    # Resource ReSerVation Protocol


Réponse : oui, iptables peut

c-moi, iptables peut TOUT ! :D
1
mayel
 
Merci bcp. C'est bien ce qu'il me semblait que ca devait etre possible.
Merci pour ton aide en tout cas.
0