v2rayN Setup Guide¶
Goal: configure v2rayN so that blocked and foreign sites go through proxy, while domestic sites connect directly. Fast, secure, no DNS leaks.
What you'll get after setup¶
| Traffic destination | Route | Why |
|---|---|---|
| Direct (your real IP) | Max speed, sites don't think you're abroad | |
| Via proxy | Bypass censorship | |
| Via proxy | Privacy, ISP tracking protection | |
| Blocked | Cleaner, faster internet |
What we'll configure¶
- Routing — rules for directing traffic
- Xray DNS — secure DNS servers for the Xray core
- sing-box DNS — same for the sing-box core (if using TUN mode)
- Verification — making sure everything works and no leaks
Requirements¶
What you need before starting
- Installed v2rayN (latest version recommended)
- A working proxy server (already added and connected in v2rayN)
- 15 minutes of your time
Don't know which core you're using — Xray or sing-box?
Open v2rayN → bottom left corner → it shows the current core. Xray is the default core. sing-box is used in TUN mode.
Don't worry — we'll configure both.
Guide navigation¶
| Section | Description | Time |
|---|---|---|
| Quick Start | Minimal setup in 5 minutes | ~5 min |
| Routing | Detailed routing rules explanation | ~10 min |
| DNS | Secure DNS configuration | ~5 min |
| Verification | Testing that everything works | ~3 min |
| FAQ | Common questions and issues | as needed |
Tip
If you just need it to work — start with Quick Start. Minimum explanations, maximum action.
If you want to understand what and why — follow the guide in order starting with Routing.