shadowsocks / shadowsocks-windows

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

无法访问网络,不清楚是什么问题,希望能帮忙看一下 #3404

Open iclgg opened 1 year ago

iclgg commented 1 year ago

无法上网

环境

操作步骤

服务器:vultr,centos7 64,通过docker安装shadowrock服务:docker pull imhang/shadowsocks-docker,运行命令:docker run -d --restart=always -e “SS_PORT=443” -e “SS_PASSWORD=vkuajing.net” -e “SS_METHOD=salsa20” -e “SS_TIMEOUT=600” -p 443:443 -p 443:443/udp --name ssserver imhang/shadowsocks-docker 电脑:win10,从github下载windows压缩包,解压运行exe,配置服务器地址、端口、密码等,使用全局模式启动

期望的结果

能正常访问google

实际结果

全局模式下所有网络均无法访问,This site can’t be reached。

配置文件和日志文件(请隐去敏感信息)

{ "version": "4.4.1.0", "configs": [ { "server": "隐藏ip", "server_port": 443, "password": "teddysun.com", "method": "chacha20-ietf-poly1305", "timeout": 3, "warnLegacyUrl": false } ], "onlineConfigSource": [], "strategy": null, "index": 0, "global": true, "enabled": false, "shareOverLan": false, "firstRun": false, "localPort": 1080, "portableMode": true, "showPluginOutput": false, "pacUrl": "", "useOnlinePac": false, "secureLocalPac": true, "regeneratePacOnUpdate": true, "autoCheckUpdate": false, "checkPreRelease": false, "skippedUpdateVersion": "", "isVerboseLogging": true, "isIPv6Enabled": false, "generateLegacyUrl": false, "geositeUrl": "", "geositeSha256sumUrl": "", "geositeDirectGroups": [ "private", "cn", "geolocation-!cn@cn" ], "geositeProxiedGroups": [ "geolocation-!cn" ], "geositePreferDirect": false, "userAgent": "ShadowsocksWindows/$version", "logViewer": { "topMost": false, "wrapText": false, "toolbarShown": false, "Font": "Consolas, 8pt", "BackgroundColor": "Black", "TextColor": "White" }, "proxy": { "useProxy": false, "proxyType": 0, "proxyServer": "", "proxyPort": 0, "proxyTimeout": 3, "useAuth": false, "authUser": "", "authPwd": "" }, "hotkey": { "SwitchSystemProxy": "", "SwitchSystemProxyMode": "", "SwitchAllowLan": "", "ShowLogs": "", "ServerMoveUp": "", "ServerMoveDown": "", "RegHotkeysAtStartup": false }, "WebProxy": null }

2023-05-02 15:01:21.7456|INFO|Shadowsocks.Controller.ShadowsocksController|WPF Localization Extension|Current culture: zh-CN
2023-05-02 15:01:21.7456|DEBUG|Shadowsocks.Controller.PACServer|Set PAC URL:http://127.0.0.1:1080/pac?hash=Gv9PPnIMmP84I6uWhS_nNA2&secret=uJvTi0al4CQiZSErNufErF1IV2j-olY6x8Fd2CHZfy81
2023-05-02 15:01:21.8766|INFO|Shadowsocks.Controller.Listener|Shadowsocks started (4.4.1.0)
2023-05-02 15:01:21.8766|DEBUG|Shadowsocks.Controller.Listener|
=========================
Registered Encryptor Info
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
plain=>PlainEncryptor
none=>PlainEncryptor
=========================

2023-05-02 15:01:22.0095|INFO|Shadowsocks.Controller.ShadowsocksController|WPF Localization Extension|Current culture: zh-CN
2023-05-02 15:01:22.0095|DEBUG|Shadowsocks.Controller.PACServer|Set PAC URL:http://127.0.0.1:1080/pac?hash=Gv9PPnIMmP84I6uWhS_nNA2&secret=uJvTi0al4CQiZSErNufErF1IV2j-olY6x8Fd2CHZfy81
2023-05-02 15:01:22.1475|INFO|Shadowsocks.Controller.Listener|Shadowsocks started (4.4.1.0)
2023-05-02 15:01:22.1475|DEBUG|Shadowsocks.Controller.Listener|
=========================
Registered Encryptor Info
aes-128-gcm=>AEADOpenSSLEncryptor
aes-192-gcm=>AEADOpenSSLEncryptor
aes-256-gcm=>AEADOpenSSLEncryptor
chacha20-ietf-poly1305=>AEADOpenSSLEncryptor
xchacha20-ietf-poly1305=>AEADSodiumEncryptor
plain=>PlainEncryptor
none=>PlainEncryptor
=========================

2023-05-02 15:01:32.5730|DEBUG|Shadowsocks.Controller.TCPHandler|connect to www.google.com:443
2023-05-02 15:01:32.8745|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:40.7645|DEBUG|Shadowsocks.Controller.TCPHandler|connect to ssl.gstatic.com:443
2023-05-02 15:01:41.0105|DEBUG|Shadowsocks.Controller.TCPHandler|connect to ssl.gstatic.com:443
2023-05-02 15:01:41.1013|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:41.3355|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:45.0137|DEBUG|Shadowsocks.Controller.TCPHandler|connect to optimizationguide-pa.googleapis.com:443
2023-05-02 15:01:45.2741|DEBUG|Shadowsocks.Controller.TCPHandler|connect to optimizationguide-pa.googleapis.com:443
2023-05-02 15:01:45.3033|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:45.3196|DEBUG|Shadowsocks.Controller.TCPHandler|connect to www.google.com:443
2023-05-02 15:01:45.8237|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:45.8237|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:49.9143|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons.gcp.gvt2.com:443
2023-05-02 15:01:50.1754|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons.gcp.gvt2.com:443
2023-05-02 15:01:50.2214|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons.gcp.gvt2.com:443
2023-05-02 15:01:50.2214|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:50.6255|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:50.6255|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:01:58.5202|DEBUG|Shadowsocks.Controller.TCPHandler|connect to checkappexec.microsoft.com:443
2023-05-02 15:01:58.9451|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:02.5715|DEBUG|Shadowsocks.Controller.TCPHandler|connect to www.gstatic.com:80
2023-05-02 15:02:02.8512|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:02.8921|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons2.gvt2.com:443
2023-05-02 15:02:03.0612|DEBUG|Shadowsocks.Controller.TCPHandler|connect to ssl.gstatic.com:443
2023-05-02 15:02:03.1522|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons2.gvt2.com:443
2023-05-02 15:02:03.1742|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:03.1992|DEBUG|Shadowsocks.Controller.TCPHandler|connect to steamstore-a.akamaihd.net:443
2023-05-02 15:02:03.3304|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:03.4540|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:03.4540|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:04.2356|DEBUG|Shadowsocks.Controller.TCPHandler|connect to clients4.google.com:443
2023-05-02 15:02:04.4957|DEBUG|Shadowsocks.Controller.TCPHandler|connect to clients4.google.com:443
2023-05-02 15:02:04.4957|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:04.7718|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:05.7535|DEBUG|Shadowsocks.Controller.TCPHandler|connect to play.google.com:443
2023-05-02 15:02:06.0112|DEBUG|Shadowsocks.Controller.TCPHandler|connect to play.google.com:443
2023-05-02 15:02:06.0355|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:06.2720|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:09.7541|DEBUG|Shadowsocks.Controller.TCPHandler|connect to mail.google.com:443
2023-05-02 15:02:10.0133|DEBUG|Shadowsocks.Controller.TCPHandler|connect to mail.google.com:443
2023-05-02 15:02:10.0441|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:10.5121|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:12.6376|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons.gvt2.com:443
2023-05-02 15:02:12.8976|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons.gvt2.com:443
2023-05-02 15:02:12.9421|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons2.gvt2.com:443
2023-05-02 15:02:12.9421|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:13.3379|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:13.3379|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:19.0497|DEBUG|Shadowsocks.Controller.TCPHandler|connect to play.google.com:443
2023-05-02 15:02:19.3953|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:20.7945|DEBUG|Shadowsocks.Controller.TCPHandler|connect to beacons.gvt2.com:443
2023-05-02 15:02:21.3370|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:21.7522|DEBUG|Shadowsocks.Controller.TCPHandler|connect to ssl.gstatic.com:443
2023-05-02 15:02:22.0159|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:24.0575|DEBUG|Shadowsocks.Controller.TCPHandler|connect to play.google.com:443
2023-05-02 15:02:24.0575|DEBUG|Shadowsocks.Controller.TCPHandler|connect to play.google.com:443
2023-05-02 15:02:24.5415|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
2023-05-02 15:02:24.5415|DEBUG|Shadowsocks.Controller.TCPHandler|Socket connected to ss server: 隐藏ip:443
chenshaoju commented 1 year ago

请尝试使用第三方TCP测试服务,如 https://check-host.net/check-tcp 测试你的服务器IP和端口是否能通。

iclgg commented 1 year ago

docker run -d --restart=always -e “SS_PORT=443” -e “SS_PASSWORD=vkuajing.net” -e “SS_METHOD=salsa20” -e “SS_TIMEOUT=600” -p 443:443 -p 443:443/udp --name ssserver imhang/shadowsocks-docker

image 测了tcp和udp,443端口都可以连接,但是还是不能联网,看日志里面是只有出站没有入站 image

iclgg commented 1 year ago

我看了一下docker日志,failed to handshake with xx:xx:xx:xx : authentication error

chenshaoju commented 1 year ago

有两种可能加密、认证、密码方式不对。

或者已经被干扰了。

iclgg commented 1 year ago

有两种可能加密、认证、密码方式不对。

或者已经被干扰了。 多谢,我自己再看看吧