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

有多开机制么? #31

Open
rexdf opened this issue Feb 13, 2018 · 8 comments
Open

有多开机制么? #31

rexdf opened this issue Feb 13, 2018 · 8 comments

Comments

@rexdf
Copy link

rexdf commented Feb 13, 2018

比如同时运行三四个kcptun客户端

@kuoruan
Copy link
Owner

kuoruan commented Feb 14, 2018

暂时没做,主要是 kcptun 比较耗 cpu,而一般路由器的 CPU 并不强

@rexdf
Copy link
Author

rexdf commented Feb 14, 2018

因为udp2raw只支持linux的缘故,开了个开机启动的128MB的x64的openwrt虚拟机来用。virtualbox把硬盘改成只读,异常关机也无所谓了。看了下资源占用,远远不及chrome新开一个标签的1%,所以决定全部移进去。不过用openwrt的启动脚本也可行就是。

@sqliuchang
Copy link

sqliuchang commented Jan 20, 2020

同求多开功能,最近发现kcptun用来避免被墙很好用,可以把mtproxy shadowsocks都套一层防止小鸡ip被墙
而且软路由性能挺富裕的,实测1037U 25Mbps的下行速度cpu占用只有8%

@sqliuchang
Copy link

fatedier/frp#1622
感觉多开的需求又进一步了...

@sqliuchang
Copy link

目前的解决方法是 自己改一个init脚本出来。。。
毕竟改luci太复杂了,好多代码看不懂

@keeno1982
Copy link

求多开,对于不稳定的小鸡,多开几台方便切换

@Ding-Kyoma
Copy link

同求多开,在开机脚本手动添加kcptun会被kill,不知道什么原因…… (openwrt)

@Ding-Kyoma
Copy link

目前自己写了个超简单的init来代替多开

#!/bin/sh /etc/rc.common
#/init.d/kcptun2330
START=99
start()
{
    /usr/bin/kcptun-client -c /etc/kcptun2330.json > /dev/null 2>&1 &
    echo "kcptun is startd"
}
stop()
{
    killall kcptun-client
    echo "kcptun is stopd"
}
restart()
{
	killall kcptun-client &&
	sleep 500 &&
	/usr/bin/kcptun-client -c /etc/kcptun2330.json > /dev/null 2>&1 &
	echo "kcptun is restartd"
}

有人知道在原版的init文件上需要修改哪些地方才能正确运行?

同时非常希望luci可以支持多开!

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

5 participants