OperatorFoundation / shapeshifter-dispatcher

Shapeshifter Dispatcher converts Pluggable Transports that implement the Go API from the Pluggable Transports 2.1 specification into proxies usable by applications. Several proxy modes are provided, including proxying of both TCP and UDP traffic.
https://OperatorFoundation.org/
MIT License
177 stars 28 forks source link

shadow - client failed socks handshake: message #52

Open Dhruuva opened 1 month ago

Dhruuva commented 1 month ago

Hi ! dpi come to my city .. and I'm trying now to overcome it using your project this my test configuration I have installed openvpn server and client in one machine ( it's working fine ) I try run it now with shapeshifter by this way First generate a new pair of configs : ./shapeshifter-dispatcher -generateConfig -transport Shadow -proxylistenaddr 127.0.0.1:4455 -serverIP 127.0.0.1:443 and got two files ShadowClientConfig.json ( rename sscfg1.json) ShadowClientConfig.json ( rename sscfg1.json) run server shapeshifter: ./shapeshifter-dispatcher -server -state state -target 127.0.0.1:1194 -bindaddr shadow-127.0.0.1:443 -transports shadow -optionsFile sscfg1.json -logLevel DEBUG -enableLogging i see in terminal

SMETHODS DONE

and in dispatcher.log

> [INFO] 2024/09/28 11:44 initializing PT 2.1 socks5 proxy
> [INFO] 2024/09/28 11:44 dispatcher-0.0.7-dev - launched
> [INFO] 2024/09/28 11:44 initializing server transport listeners
> [INFO] 2024/09/28 11:44 shapeshifter-dispatcher - initializing socks5 server transport listeners
> [INFO] 2024/09/28 11:44 shapeshifter-dispatcher - accepting connections

run client shapeshifter: ./shapeshifter-dispatcher -client -state state -transports shadow -proxylistenaddr 127.0.0.1:4455 -optionsFile sccfg1.json -logLevel DEBUG -enableLogging -ipcLogLevel DEBUG -extorport 3333 getting in terminal

SMETHODS DONE

and in dispatcher.log

[INFO] 2024/09/28 11:46 initializing PT 2.1 socks5 proxy
[INFO] 2024/09/28 11:46 dispatcher-0.0.7-dev - launched
[INFO] 2024/09/28 11:46 shapeshifter-dispatcher - initializing client transport listeners
[INFO] 2024/09/28 11:46 shapeshifter-dispatcher - initializing client transport listeners
[INFO] 2024/09/28 11:46 shadow - registered listener: 127.0.0.1:4455
[INFO] 2024/09/28 11:46 shapeshifter-dispatcher - accepting connections

after running openvpn client ( in log): 2024-09-28 12:07:51 TCP/UDP: Preserving recently used remote address: [AF_INET]127.0.0.1:4455 2024-09-28 12:07:51 Socket Buffers: R=[131072->131072] S=[16384->16384] 2024-09-28 12:07:51 Attempting to establish TCP connection with [AF_INET]127.0.0.1:4455 2024-09-28 12:07:51 TCP connection established with [AF_INET]127.0.0.1:4455 2024-09-28 12:07:51 Socket flags: TCP_NODELAY=1 succeeded 2024-09-28 12:07:51 TCPv4_CLIENT link local: (not bound) 2024-09-28 12:07:51 TCPv4_CLIENT link remote: [AF_INET]127.0.0.1:4455 2024-09-28 12:07:51 Connection reset, restarting [0] getting in dispatcher.log

[ERRO] 2024/09/28 11:56 error in NegotiateAuth: message field 'version' was 0x00 (expected 0x05)
[ERRO] 2024/09/28 11:56 shadow - client failed socks handshake: message field 'version' was 0x00 (expected 0x05)

so, Please if you have time give me hint how i can make it work?