There are seemingly infinite possibilities when it comes to configuring WireGuard as a “VPN Server”. Specifically, allowing a remote peer to access the intranet on the “server” end can be accomplished in a variety of ways. In this discussion we’ll assume that the WireGuard Server is running on Ubuntu Server 22.04. Continue reading
Tag Archives: Networking
Change Network Profile via Powershell
To easily change the security profile of a network connection, use Powershell:
# List network connections to find the Interface Alias Get-NetConnectionProfile # Set the profile to Private for a specific network (Other options are Public and Domain) Set-NetConnectionProfile -InterfaceAlias "Network_Alias" -NetworkCategory Private
Display Wi-Fi Keys in Windows Command Line or PowerShell
To retrieve a saved Wi-Fi key from the command line:
; List Profiles netsh wlan show profiles ; Get key for profile netsh wlan show profiles <SID Name> key=clear
References:
Connecting to a Windows 2000 Share from Windows 7
Open the “Local Security Policy” manager (can be found in the Start Menu search.
Navigate to Local Policies, Security Options. Then find the “Network security: LAN Manager authentication level” entry and set it to “Send LM &NTLM – use NTLMv2 session security if negotiated.”.
Alternatively, this policy can be set via the command line:
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LmCompatibilityLevel /t REG_DWORD /d 00000001 /f
This shouldn’t adversely affect connection to Windows 7+ shares.
Source: http://www.dslreports.com/faq/16438
Update:
The setting above causes problems when attempting to connect to a remote desktop through a remote desktop gateway server (running Windows Server 2012 R2). It must be set to the default “Send NTLMv2 Only”.
This policy can be set via the command line:
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LmCompatibilityLevel /t REG_DWORD /d 00000003 /f