shadowsocks / shadowsocks-windows

A C# port of shadowsocks
Other
58.09k stars 16.4k forks source link

Installing Shadowsocks with WireGuard #3461

Open micron1390 opened 5 months ago

micron1390 commented 5 months ago

Describe the bug

Could you help me please how to configure shadowsocks with wireguard in combination for Windows ?

Environment

Steps you have tried

I'm launching

sslocal.exe -c config.json
2024-01-23T01:09:52.318212400+03:00 INFO  shadowsocks local 1.17.1 build 2023-11-26T16:00:45.442787688+00:00
2024-01-23T01:09:52.340352100+03:00 INFO  shadowsocks TCP tunnel listening on 127.0.0.1:1080
2024-01-23T01:09:52.342646700+03:00 INFO  shadowsocks UDP tunnel listening on 127.0.0.1:1080

then WireGuard itself, but there is no connection

Please clarify what I have configured incorrectly?

Thanks in advance.

What did you expect to see?

What did you see instead?

Config and error log in detail (with all sensitive info masked)

Setting up server configuration:

{

"server": "0.0.0.0",
"mode": "tcp_and_udp",
"server_port": 3001,
"password": "dRRpOvUgTTsLaJsQ69wWH/GgZjAcWx/X",
"timeout": 300,
"method": "aes-256-gcm"

}

Client setup:

{
    "server":"X.X.X.X",
    "server_port":3001,
    "password":"dRRpOvUgTTsLaJsQ69wWH/GgZjAcWx/X",
    "mode": "tcp_and_udp",
    "method":"aes-256-gcm",
    "locals": [
        {
        "local_address": "127.0.0.1",
        "local_port": 1080,
        "forward_address": "127.0.0.1",
        "forward_port": 51230,
        "protocol": "tunnel"
        }
    ]
}

WireGuard Client Configuration:

[Interface]
PrivateKey = XXXXXXXXXX
Address = 10.20.0.2/24
DNS = 8.8.8.8
MTU = 1280

[Peer]
PublicKey = XXXXXXXXXX
AllowedIPs = 0.0.0.0/0
Endpoint = 127.0.0.1:1080
PersistentKeepalive = 20
chenshaoju commented 5 months ago

It looks like you are using another version of the Shadowsocks.

are you using shadowsocks-libev or shadowsocks-rust

micron1390 commented 5 months ago

It looks like you are using another version of the Shadowsocks.

are you using shadowsocks-libev or shadowsocks-rust

Thanks for the reply. I'm using shadowsocks-rust on the windows client and shadowsocks-libev ubuntu20 on the server

RustLover2910 commented 3 weeks ago

Did you managed to solve it?