Salut,
[quote=“westernz”]Pourquoi -P ?
Dans le tuto ovh j’ai -A
Et aucune info sur le pourquoi.[/quote]
Man iptables:
[quote] -A, --append chain rule-specification
Append one or more rules to the end of the selected chain. When the source and/or destination names resolve to more than one address, a rule will be added for each possible address combination.
-P, --policy chain target
Set the policy for the chain to the given target. See the section TARGETS for the legal targets. Only built-in (non-user-defined) chains can have policies, and neither built-in nor user-defined chains can be policy targets.[/quote]
SI ce n’est pas clair, Internet regorge de tutos, Wikis, et autres sources qui expliquent très bien iptables.
Il faut prendre la peine de chercher.
C’est une mauvaise idée de poser une question pour chaque option d’un programme que tu ne comprends pas…