SOCKS Host: registry value SOCKSProxy and 1 moreUserHKCU\Software\Policies\Mozilla\Firefox\Proxy

Policy ID
Proxy_SOCKSProxy
Scope
Computer Configuration, User Configuration
Supported on
Firefox 60 or later, Firefox 60 ESR or later
Source
Mozilla Firefox Policy Templates (version 8.3)
Category
Mozilla › Firefox › Proxy Settings

Registry

SOCKSProxy

REG_SZUserComputer
Enabled value
Depends on the option value
Element
Host including port:
Value type
REG_SZ
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox\Proxy]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"SOCKSProxy"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Policies\Mozilla\Firefox\Proxy" /v "SOCKSProxy" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Proxy' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Proxy' -Name 'SOCKSProxy' -PropertyType String -Value '<enter value>' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox\Proxy]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"SOCKSProxy"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Mozilla\Firefox\Proxy" /v "SOCKSProxy" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Proxy' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Proxy' -Name 'SOCKSProxy' -PropertyType String -Value '<enter value>' -Force | Out-Null

SOCKSVersion

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
-
Options
ItemStored value
SOCKS v44
SOCKS v55
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox\Proxy]

; Options (use only one)
; SOCKS v4
"SOCKSVersion"=dword:00000004
; SOCKS v5
"SOCKSVersion"=dword:00000005
CMD
:: Options (use only one)

:: SOCKS v4
reg add "HKCU\Software\Policies\Mozilla\Firefox\Proxy" /v "SOCKSVersion" /t REG_DWORD /d 4 /f
:: SOCKS v5
reg add "HKCU\Software\Policies\Mozilla\Firefox\Proxy" /v "SOCKSVersion" /t REG_DWORD /d 5 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Proxy' -Force | Out-Null

# Options (use only one)
# SOCKS v4
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Proxy' -Name 'SOCKSVersion' -PropertyType DWord -Value 4 -Force | Out-Null
# SOCKS v5
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Proxy' -Name 'SOCKSVersion' -PropertyType DWord -Value 5 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox\Proxy]

; Options (use only one)
; SOCKS v4
"SOCKSVersion"=dword:00000004
; SOCKS v5
"SOCKSVersion"=dword:00000005
CMD
:: Options (use only one)

:: SOCKS v4
reg add "HKLM\Software\Policies\Mozilla\Firefox\Proxy" /v "SOCKSVersion" /t REG_DWORD /d 4 /f
:: SOCKS v5
reg add "HKLM\Software\Policies\Mozilla\Firefox\Proxy" /v "SOCKSVersion" /t REG_DWORD /d 5 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Proxy' -Force | Out-Null

# Options (use only one)
# SOCKS v4
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Proxy' -Name 'SOCKSVersion' -PropertyType DWord -Value 4 -Force | Out-Null
# SOCKS v5
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Proxy' -Name 'SOCKSVersion' -PropertyType DWord -Value 5 -Force | Out-Null