ProxyBridge icon indicating copy to clipboard operation
ProxyBridge copied to clipboard

[Bug]: 4.0.0 does not work with Mihomo SOCKS5 inbound

Open arkhovansky opened this issue 2 months ago • 0 comments

Platform

Windows

ProxyBridge Version

4.0.0

OS and Version

Windows 10 22H2

Documentation

Code Review

  • [ ] I have gone through the code page

Describe the Bug

  1. Configured a SOCKS5 inbound on port 7891 in Mihomo (FlClash 0.8.92 or 0.8.98):
listeners:
  - name: test-in
    type: socks  # or mixed
    port: 7891
    listen: 0.0.0.0  # or 127.0.0.1
    udp: true
  1. Tested Curl to verify it works via the inbound (curl.exe --socks5 127.0.0.1:7891 https://example.com).
  2. Configured a corresponding SOCKS5 proxy in ProxyBridge.
  3. "Test Connection" works; the request is visible in FlClash.
  4. Configured a corresponding rule for curl.exe with the TCP protocol.
  5. Tried curl.exe https://example.com. The requests time out. FlClash does not see them. ProxyBridge does log them: curl.exe (PID:14400) -> 8.47.69.0:443 via Proxy SOCKS5://127.0.0.1:7891

Additional Context

The attached file contains a captured network exchange between ProxyBridge and Mihomo. After starting the capture, ProxyBridge was launched and curl.exe https://example.com was run. The Mihomo inbound config was:

listeners:
  - name: test-in
    type: socks
    port: 7891
    listen: 0.0.0.0
    udp: true

WireShark filter: tcp.port == 7891.

ProxyBridge initiates a SOCKS5 session, establishes a UDP association (though the rule is for TCP only), and sends keep-alive messages, but does nothing on Curl requests.


-- Very similar issue, though marked as resolved: #155.

arkhovansky avatar Sep 30 '26 13:09 arkhovansky