simple-obfs
simple-obfs copied to clipboard
Nginx+Simple-obfs在某些特定情况下会报错。
问题描述
我通过如下配置,设置服务器。
直连8001端口时一切正常。
连接80端口(服务器上会通过Nginx反代到8001端口)时,可以访问网页,但Shadowsocks-Win的控制台会经常报[E] decryption error,同时Dropbox同步不了文件,并且使用git clone https://*通过代理服务器拉取代码也拉不了,提示fatal: unable to access 'https://*': gnutls_handshake() failed: The TLS connection was non-properly terminated.
看提交记录(#74 ),Simple-obfs应该是支持了这种工作模式的。这是bug吗?还是我配置错了?
配置
SS:
/usr/bin/ss-server -d 8.8.8.8 -s 0.0.0.0 -p 8001 -k my_password -m chacha20-ietf-poly1305 -t 600 -u --plugin /usr/bin/obfs-server --plugin-opts "obfs=http;failover=www.bing.com"; -f /tmp/ss-share-8001.pid
Nginx:
server {
listen 80;
server_name ss.my_server.com;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
版本
Simple-obfs:v0.0.5 Nginx:nginx/1.12.1 (Ubuntu) Shadowsokcs-Win:4.0.8
Maybe you should add reverse_proxy to the plugin-opts option.