tun2socks Config Generator
Paste your proxy string (IP:PORT:USER:PASS) and download a ready-to-run tun2socks .bat file for Windows — no manual editing needed.
tun2socks .bat Generator
Format: IP:PORT:USER:PASS or IP:PORT (no auth)
You need tun2socks.exe in the same folder. Download it from the official GitHub releases page. Run the .bat as Administrator.
Paste your proxy string on the left and click Generate.
Generated .bat content
Host
Port
Username
Password
Copied!
Summary
Paste your proxy string (IP:PORT:USER:PASS) and download a ready-to-run tun2socks .bat file for Windows — no manual editing needed.
How it works
- Paste your proxy string in IP:PORT:USER:PASS format (or just IP:PORT if the proxy has no authentication).
- The tool parses the four fields, validates the host and port, and builds the .bat content with the correct tun2socks flags.
- The constant flags --dns-addresses=8.8.8.8,8.8.4.4 and --product-mode=no are included automatically.
- Click "Copy" to copy the batch script to your clipboard, or "Download .bat" to save tun2socks.bat directly.
- Place the file in the same folder as tun2socks.exe and run it as Administrator to start tunneling all traffic through your proxy.
Use cases
- Routing all Windows PC traffic through a SOCKS5 or HTTP proxy when an app has no built-in proxy settings.
- Setting up a transparent proxy on Windows for testing, privacy, or bypassing network restrictions.
- Generating a reproducible launch script so you can switch proxies without editing .bat files by hand.
- Converting a proxy list entry (IP:PORT:USER:PASS) into a working tun2socks startup file in seconds.
- Automating proxy rotation by regenerating the .bat for each new session.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu