cfal / shoes

A multi-protocol proxy server written in Rust (HTTP, HTTPS, SOCKS5, Vmess, Vless, Shadowsocks, Trojan, Snell)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can be used as a server, not as a client, why?

Xixi0218 opened this issue · comments

commented

I use shoes as the server, and then use shoes as the client, but I can't connect

commented

vmess

commented

Please help me

commented

shoes is a server, although it can connect to other proxies for you. for example, you can set it up as a socks server, but use it to connect to a vmess server.

i've added another example here: https://github.com/cfal/shoes/blob/master/examples/socks_through_wss_vmess.yaml

commented

shoes is a server, although it can connect to other proxies for you. for example, you can set it up as a socks server, but use it to connect to a vmess server.

i've added another example here: https://github.com/cfal/shoes/blob/master/examples/socks_through_wss_vmess.yaml

I use socks as the client and vmess as the proxy, and the link to v2ray will fail

commented

can you paste your configs?

commented

can you paste your configs?

  • address: 127.0.0.1:1080
    protocol:
    type: socks
    rules:

    allow connections to all ips

    • mask: 0.0.0.0/0
      action: allow
      client_proxy:
      • address: 127.0.0.1:2000
        protocol:
        type: vmess
        cipher: any
        user_id: b831381d-6324-4d53-ad4f-8cda48b30811
commented

can you paste your vmess config?

commented

can you paste your vmess config?

If you solve it, please tell me, I can pay you some USDT

commented

you have tls=1, so, you need to connect over TLS to the server:

- address: 127.0.0.1:1080
  protocol:
    type: socks
  rules:
    # allow connections to all ips
    mask: 0.0.0.0/0
    action: allow
    client_proxy:
      address: 127.0.0.1:2000
      protocol:
        type: tls
        verify: false
        protocol:
          type: vmess
          cipher: any
          user_id: b831381d-6324-4d53-ad4f-8cda48b30811
commented

always failed

127.0.0.1:49190 finished with error: Custom { kind: UnexpectedEof, error: "failed to setup client stream to mon.snssdk.com:443: tls handshake eof" }
commented

it's hard for me to debug the problem without seeing the v2ray server config. can you paste it?

commented

it's hard for me to debug the problem without seeing the v2ray server config. can you paste it?

{
  "log": {
    "loglevel": "debug"
  },
  "inbounds": [
    {
      "port": 2000,
      "listen": "127.0.0.1",
      "tag": "socks-inbound",
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "b831381d-6324-4d53-ad4f-8cda48b30811"
          }
        ]
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    }
  ]
}
commented

it's hard for me to debug the problem without seeing the v2ray server config. can you paste it?

You can run v2ray locally, use shoes to link, I found that it will time out

commented

i had forgotten about this - but you're correct, this won't work with v2ray's vmess server until #2 is resolved.

i've pushed a small update, so if you like, you can run a compatible shoes vmess server for now:

# Simple vmess server, supporting TCP and UDP-over-TCP.
- address: 127.0.0.1:2000
  transport: tcp
  protocol:
    type: vmess
    cipher: aes-128-gcm
    user_id: b831381d-6324-4d53-ad4f-8cda48b30811
  rules:
    - mask: 0.0.0.0/0
      action: allow
      # Direct connection, don't forward requests through another proxy.
      client_proxy: direct
commented

i had forgotten about this - but you're correct, this won't work with v2ray's vmess server until #2 is resolved.

i've pushed a small update, so if you like, you can run a compatible shoes vmess server for now:

About when can I use shoes as a client

commented

this should now work.