Warning: Undefined array key "modif" in /home/u160302479/domains/tutos.eu/public_html/include/head.php on line 8

Warning: Undefined array key "debug" in /home/u160302479/domains/tutos.eu/public_html/include/head.php on line 87
TUTOS.EU : Ajouter une règle dans le firewall de Windows en Powershell
TUTOS.EU

Warning: Undefined array key "youtube" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 29

Warning: Undefined array key "modif" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 34

Warning: Undefined array key "test" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 36

Warning: Undefined variable $DejaAffiche in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 84

Ajouter une règle dans le firewall de Windows en Powershell

Authoriser un port dans le firewall de Windows avec une commande powershell


Warning: Undefined variable $sqlrequest in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 190

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

appuyez sur les touches
ctrl + r
et entrez la commande
cmd


Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Entrez la commande suivante :


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
powershell
Lien vers le fichier : cliquez ici Copier le code

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Toujours en préparatifs, entrez ensuite les commandes suivantes :


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
set-executionpolicy remotesigned
Import-Module NetSecurity
Lien vers le fichier : cliquez ici Copier le code

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Maintenant entrez la commande suivante où xxxx est le numéro du port à authoriser


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
New-NetFirewallRule -DisplayName "Nom flux" -Direction Inbound –Protocol TCP –LocalPort xxxx
Lien vers le fichier : cliquez ici Copier le code

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Exemple


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
New-NetFirewallRule -DisplayName "Nom flux" -Direction Inbound –Protocol TCP –LocalPort 10050
Lien vers le fichier : cliquez ici Copier le code

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Résultat


Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

N'oubliez pas que par défaut le firewall bloque les flux et que par défaut les règles que vous ajoutez son pour autoriser un flux.


Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Autres exemples :
Pour tout autoriser en entrée (le firewall est actif et laisse tout passer)


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
New-NetFirewallRule -DisplayName "Tout authoriser en entree" -Direction Inbound
Lien vers le fichier : cliquez ici Copier le code

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Pour tout authoriser en entrée uniquement pour le protocole TCP


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
New-NetFirewallRule -DisplayName "Tout authoriser en entree en TCP" -Direction Inbound –Protocol TCP –LocalPort 1-65535
Lien vers le fichier : cliquez ici Copier le code

Warning: Undefined array key "NbrSessions" in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 354

Pour tout authoriser en entrée pour le protocole TCP mais seulement pour une machine spécifique


Warning: Undefined variable $afficheravectextarea in /home/u160302479/domains/tutos.eu/public_html/include/functions.php on line 528
New-NetFirewallRule -DisplayName "Tout authoriser en entree en TCP pour une machine specifique" -Direction Inbound –Protocol TCP –LocalPort 1-65535 -RemoteAddress 192.168.1.1
Lien vers le fichier : cliquez ici Copier le code

Pages Web

Site WebDescription
Ryanmangansitblog.comSite qui donne des exemples de création de règles FW
Technet.microsoft.comAide de la commande New-NetFirewallRule

2