Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教Kcptun配置 #8

Open
RrrrrCcccc opened this issue Sep 19, 2018 · 3 comments
Open

请教Kcptun配置 #8

RrrrrCcccc opened this issue Sep 19, 2018 · 3 comments

Comments

@RrrrrCcccc
Copy link

你好,SS使用正常,非常感谢,想尝试一下Kcptun,遇到问题,想请教。
/config/shadowsocks/conf/kcptun.json.disable 的内容修改成以下:

{
    "localaddr": ":1081",
    "remoteaddr": "VPS:KCPTUN端口",
    "key": "密码",
    "crypt": "none",
    "mode": "fast",
    "conn": 1,
    "autoexpire": 300,
    "mtu": 1350,
    "sndwnd": 512,
    "rcvwnd": 128,
    "datashard": 10,
    "parityshard": 3,
    "dscp": 0,
    "nocomp": false,
    "acknodelay": false,
    "nodelay": 0,
    "interval": 20,
    "resend": 2,
    "nc": 1,
    "sockbuf": 4194304,
    "keepalive": 10,
    "snmplog": "/var/log/kcptun_snmp_log.csv",
    "snmpperiod": 0
}

然后重命名为kcptun.json/etc/init.d/shadowsocks restart
/etc/init.d/shadowsocks status 报错

[FAIL] ss-redir is not running ... failed!
[ ok ] ss-local is running.
[FAIL] redsocks is not running ... failed!

是不是因为kcptun的配置有问题?能不能指导下?

FYI,kcptun服务器端是用脚本装的,[v20]Kcptun 服务端一键安装脚本
生成的配置如下

{
"localaddr": ":VPS上的SS监听端口",
"remoteaddr": "VPS:KCPTUN端口",
"key": "密码",
"crypt": "none",
"mode": "fast",
"mtu": 1350,
"sndwnd": 128,
"rcvwnd": 512,
"datashard": 10,
"parityshard": 3,
"dscp": 0,
"nocomp": false,
"quiet": true
}
@allenkey666
Copy link
Owner

"localaddr"换1082,ss config文件里 serveradd改成127.0.0.1:1082。重启就好了。

@RrrrrCcccc
Copy link
Author

非常感谢。

另外多问一句,在SS+GFwlist已经在运行的情况下,还有必要开Redsocks吗?
如果开Redsocks的话,/config/redsocks/redsocks.conf.disable 直接改名就可以?

local_ip = 0.0.0.0;
local_port = 1081;

ip = 127.0.0.1;
port = 1080;

哪个还需要调整吗?
谢谢

@allenkey666
Copy link
Owner

redsocks的作用是把流量重定向到本地的socks服务器,redsocks和ss-redir只能使用一个。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants