Re: [???]IPTABLES -A INPUT -p all *********
> Bonjours
>
> voilà j'aurais aimer savoir si vous connaisseriez une commande qui
> permetterais
> au lieu de taper:
> /*
> iptables -A INPUT -p tcp --dport ssh --sport ssh -j ACCEPT
> iptables -A INPUT -p udp --dport ssh --sport ssh -j ACCEPT
> */
>
> pour que `iptables -L` affiche:
> /*
> target prot opt source destination
> ACCEPT "all" -- anywhere anywhere
> */
>
> all à la place de tcp et udp de façon à ouvrir le port avec tout les
> protocoles sur le port.
Il suffit de lire le manpage...
-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 proto
cols or a different one. A protocol name from /etc/proto
cols 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.
iptables -A INPUT -p all --dport ssh --sport ssh -j ACCEPT
> merci :p
>
>
> --
> Pensez à lire la FAQ de la liste avant de poser une question :
> http://wiki.debian.net/?DebianFrench
>
> Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"
>
> To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
--
--
Dominique Arpin_______________________[ Espace
administrateur réseau Courbe ]
A+,Linux+,Server+ http://www.espacecourbe.com/
téléphone 514.933.9861
télécopieur 514.933.9546
Reply to: