Giter Site home page Giter Site logo

Comments (11)

h31105 avatar h31105 commented on May 21, 2024

image

#systemctl start tls-shunt-proxy
#journalctl -u tls-shunt-proxy.service
日志发一下

from deployx.sh.

jindx0713 avatar jindx0713 commented on May 21, 2024

image
image

from deployx.sh.

h31105 avatar h31105 commented on May 21, 2024

image

image

service 启动失败,请使用命令
sudo setcap "cap_net_bind_service=+ep" /usr/local/bin/tls-shunt-proxy
给 tls-shunt-proxy 赋予 CAP_NET_BIND_SERVICE 的 capability ,然后
sudo -u tls-shunt-proxy /usr/local/bin/tls-shunt-proxy -config /etc/tls-shunt-proxy/config.yaml 运行

参考上述步骤,试试看能否正常启动

from deployx.sh.

jindx0713 avatar jindx0713 commented on May 21, 2024

image

from deployx.sh.

h31105 avatar h31105 commented on May 21, 2024

image

第二个解决方法:
将/etc/systemd/system/tls-shunt-proxy.service文件中下面这行删掉
AmbientCapabilities=CAP_NET_BIND_SERVICE

from deployx.sh.

jindx0713 avatar jindx0713 commented on May 21, 2024

第二个解决方法无效,第一个给了权限之后就OK了。

from deployx.sh.

h31105 avatar h31105 commented on May 21, 2024

第二个解决方法无效,第一个给了权限之后就OK了。

image

from deployx.sh.

jindx0713 avatar jindx0713 commented on May 21, 2024

问题是什么原因导致的?脚本的问题,还是系统的问题?
我的vps是重新安装的centos7,只是yum update了一下。

from deployx.sh.

h31105 avatar h31105 commented on May 21, 2024

问题是什么原因导致的?脚本的问题,还是系统的问题?
我的vps是重新安装的centos7,只是yum update了一下。

可能跟系统模版的安全策略有关系,我这里的几台vps,centos 7 ,dedian 10,Ubuntu 18 都没碰到这个问题,但你这个问题,的确有人碰到过(可能小概率?)。

from deployx.sh.

jindx0713 avatar jindx0713 commented on May 21, 2024

脚本能修复一下不?
另外,openclash在软路由上面已经可以支持Trojan-go了。

按照以下格式就可以了

  • name: "trojan-sg"
    type: trojan
    server: host
    port: 443
    password: password
    udp: true
    sni: host

from deployx.sh.

h31105 avatar h31105 commented on May 21, 2024

脚本能修复一下不?

setcap 权限的问题,会在下个版本一并修复

另外,openclash在软路由上面已经可以支持Trojan-go了。

按照以下格式就可以了

  • name: "trojan-sg"
    type: trojan
    server: host
    port: 443
    password: password
    udp: true
    sni: host

没明白你的意思,openclash的话,你可以根据脚本选项9的配置信息,编写config,或者使用订阅链接转换工具,转换成clash格式。(不过,你确定clash完整支持trojan-go的新特性?比如mux、websocket,另外trojan-go服务端是兼容trojan-gfw客户端的,不能使用新特性而已)

from deployx.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.