Ouvrir dans l'explorateur

Explicitly allowed network ports

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur et utilisateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Brave Software › Brave Configuration utilisateur › Stratégies › Modèles d'administration › Brave Software › Brave EN : Computer Configuration › Policies › Administrative Templates › Brave Software › BraveEN : User Configuration › Policies › Administrative Templates › Brave Software › Brave
Pris en charge sur
Microsoft Windows 7 or later
Fichier ADMX
brave.admx
Nom interne
brave/ExplicitlyAllowedNetworkPorts

Explication

There is a list of restricted ports built into Brave. Connections to these ports will fail. This setting permits bypassing that list. The value is a comma-separated list of zero or more ports that outgoing connections will be permitted on.

Ports are restricted to prevent Brave being used as a vector to exploit various network vulnerabilities. Setting this policy may expose your network to attacks. This policy is intended as a temporary workaround for errors with code "ERR_UNSAFE_PORT" while migrating a service running on a blocked port to a standard port (ie. port 80 or 443).

Malicious websites can easily detect that this policy is set, and for what ports, and use that information to target attacks.

Each port here is labelled with a date that it can be unblocked until. After that date the port will be restricted regardless of this setting.

Leaving the value empty or unset means that all restricted ports will be blocked. If there is a mixture of valid and invalid values, the valid ones will be applied.

This policy overrides the "--explicitly-allowed-ports" command-line option.

Example value:

10080

Registre

HKEY_LOCAL_MACHINE\Software\Policies\BraveSoftware\Brave
HKEY_CURRENT_USER\Software\Policies\BraveSoftware\Brave
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Ordinateur (HKLM)

Activer

# Activer : brave/ExplicitlyAllowedNetworkPorts
$k = 'HKLM:\Software\Policies\BraveSoftware\Brave\ExplicitlyAllowedNetworkPorts'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Explicitly allowed network ports
# Liste non additive : les valeurs existantes de la clé sont d'abord effacées
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<valeur1>', '<valeur2>')  # Remplacez les valeurs par les vôtres
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }

Désactiver

# Désactiver : brave/ExplicitlyAllowedNetworkPorts
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : brave/ExplicitlyAllowedNetworkPorts
$k = 'HKLM:\Software\Policies\BraveSoftware\Brave\ExplicitlyAllowedNetworkPorts'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Explicitly allowed network portsExplicitlyAllowedNetworkPortsDescListe (tableau)listSoftware\Policies\BraveSoftware\Brave\ExplicitlyAllowedNetworkPortsValeurs nommées « » + n°REG_SZ (valeurs sous la clé)

Application

Brave (Brave Software) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.