WG2WS Converter v1.0.0
Initial release of WG2WS Converter - A PowerShell script for configuring WireSock with leak-proof partial tunneling using WireGuard configs.
Features:
- Converts WireGuard configuration files for use with WireSock partial tunneling
- Implements client-side measures to prevent DNS and traffic leaks
- Supports custom IP ranges and domain routing through the VPN
- Converts URLs to IP addresses (as WireSock doesn't accept URLs directly)
- Adds PostUp and PostDown scripts for DNS management and routing control
- Drops IPv6 through the tunnel
- Handles FQDN resolution and IPv4 differentiation
- Provides clear warnings for potential configuration issues
Usage:
- Download WG2WSConverter.ps1
- Run in PowerShell:
powershell.exe -File .\WG2WSConverter.ps1
or from command line:
powershell -File .\WG2WSConverter.ps1
Notes:
- IPv6 is not supported and will be skipped if entered
- "Allow apps" and "Disallow" options are not included in this version
- Assumes server-side configuration is already secure
- URLs are converted to IP addresses. As websites may change IPs over time, you may need to rerun the script periodically to update these
- WireSock client installation and VPN connection still require admin rights
Requirements:
- Windows operating system
- PowerShell 5.1 or later
- Existing WireGuard configuration file
- WireSock client installed (for actual VPN use, not for conversion)
This release is licensed under GNU General Public License v2.0.
We welcome feedback and contributions to improve the script!