V2RayNG is probably one of the easier client to use, it requires sideloading.
On the main interface, click the + icon, and Import from QRcode
On your 3x-UI inbounds, click the + icon on your newly created endpoint to expand it, the click the QR Code icon. Use your camera to scan it.
If you skipped the external proxy step in 3X-UI
- click the triple circle icon next to your imported endpoint then Edit
- the address is probably your private IP, change it to your domain and change the port to 443
- add
ws hostas your domain - scroll down to TLS, select
tlsfrom the dropdown - set the
SNIas your domain
Click the hamburger menu to expand it and select Routing settings
By default, there are already many rules populated and these are in Chinese. Click the edit icon, then the recycle bin icon to delete all of these. There are many ways you can configure routing and it gets deeps, I'll show you a Tailscale like experience.
- Set default routing to direct, so it does not go through VPN
- click the plus icon, add a remark
- leave everything the same and for port, enter 0-65535, set
outboundTagto direct
- Proxy LAN traffic
ip: enter your LAN subnet range, e.g.192.168.0.1/24outboundTag: proxy
- Unlike L3 VPN, since V2Ray is a proxy, the split tunneling can be based on domains
- under
domain, you can enter list of domains, or evengeosite:category-ddns, this will proxy all dynamic DNS websites, for other categories here Rules on the bottom of the screen will be evaluated last, so your proxy rules must be above the final direct rule to overwrite it.
- under
- Optional: I like to have a rule that proxy everything that's on top of all direct all, but have it disable, and only enable it when a site is blocked, this is similar to Tailscale Exit Node
- same as direct, but set
outboundTagto proxy
- same as direct, but set
When completed, simply click the start icon and it should work.
Normally, every website traffic do not go through the VPN, so the speed should be fast, only traffic with destination to your LAN subnet goes through it encrypted, just like how Tailscale/Wireguard default configuration works. If you toggle the all proxy, everything will go through VPN, similar to turning on Tailscale Exit Node. The flexibility of V2Ray goes beyond split tunneling because you can add any domain or domain list to routing rules to tailor the public WiFi experience.










