User Tools

Site Tools


networking:misc:wireguard_01

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
networking:misc:wireguard_01 [2025/03/17 16:34] sysadminnetworking:misc:wireguard_01 [2025/03/17 16:37] (current) sysadmin
Line 32: Line 32:
 </code> </code>
  
-HKLM\Software\WireGuard\DangerousScriptExecution+**HKLM\Software\WireGuard\DangerousScriptExecution**
  
-When this key is set to DWORD(1), the tunnel service will execute the commands specified in the PreUp, PostUp, PreDown, and PostDown options of a tunnel configuration. Note that this execution is done as the Local System user, which runs with the highest permissions on the operating system, and is therefore a real target of malware. Therefore, you should enable this option only with the utmost trepidation. Rather than use %i, WireGuard for Windows instead sets the environment variable WIREGUARD_TUNNEL_NAME to the name of the tunnel when executing these scripts.+When this key is set to DWORD(1), the tunnel service will execute the commands specified in the //PreUp, PostUp, PreDown//, and //PostDown// options of a tunnel configuration. Note that this execution is done as the Local System user, which runs with the highest permissions on the operating system, and is therefore a real target of malware. Therefore, you should enable this option only with the utmost trepidation. Rather than use //%i//, WireGuard for Windows instead sets the environment variable **WIREGUARD_TUNNEL_NAME** to the name of the tunnel when executing these scripts.
  
-reg add HKLM\Software\WireGuard /v DangerousScriptExecution /t REG_DWORD /d 1 /f+  reg add HKLM\Software\WireGuard /v DangerousScriptExecution /t REG_DWORD /d 1 /f
  
  
networking/misc/wireguard_01.1742229281.txt.gz · Last modified: 2025/03/17 16:34 by sysadmin