Skip to main content

V2rayU

Using sing-box Tun Mode to Implement a Transparent Proxy for V2rayU

Using sing-box Tun Mode to Implement a Transparent Proxy for V2rayU

This post documents the troubleshooting process for a gemini-cli OAuth login failure on macOS. Since V2rayU lacks a native Tun mode, it cannot proxy the gemini-cli’s random port callback. This article introduces a clever solution: using sing-box to enable Tun mode for transparent proxying, intercepting all system traffic, and forwarding it back to V2rayU’s SOCKS port, perfectly solving the proxy challenge for CLI tools.