chisbread / chislash Goto Github PK
View Code? Open in Web Editor NEW🐳 proxycenter in container 家用代理中心, 集成clash/yacd/subconverter
🐳 proxycenter in container 家用代理中心, 集成clash/yacd/subconverter
clash是不是不支持老款cpu, j1900,4025这些,
查了下,v3 是指avx2这些指令集。
我使用chislash时有些网络访问的不熟悉的问题,向您请教下:
测试步骤如下:
在一台ubuntu16.04上,测试 命令行wget及 chrome浏览器可正常打开www.baidu.com,
chislash 启动:
docker run --name chislash
--network="host"
--privileged
--rm -it
-e SUBSCR_URLS=xxxx
-v $HOME/.config/chislash:/etc/clash
-v /dev:/dev
-v /lib/modules:/lib/modules
-e REMOTE_CONV_RULE=""
chisbread/chislash:latest
docker 运行后 宿主机的wget www.baidu.com正常访问。
运行chrome
但是,chrome打不开www.baidu.com, 不知道为什么会这样... 是否需要特殊设置呢?
启动另一个docker container
docker run -it --rm --name chislash_test --entrypoint=/bin/bash --privileged -v /dev:/dev -v /lib/modules:/lib/modules --net=host chisbread/chislash -c "wget www.baidu.com"
Resolving www.baidu.com (www.baidu.com)... 39.156.66.18, 39.156.66.14
Connecting to www.baidu.com (www.baidu.com)|39.156.66.18|:80...
也得不到网页数据.
docker stop chislash
chislash_test, chrome网络都正常。
在另一台机器上出现过 docker 如果启动的时候不是--net=host , container就无法访问网络。
不太理解是哪部分出问题了,是路由规则还是哪出了问题?
服务启动失败后进入容器内执行的日志
sh-5.0# ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
sh-5.0# supervisord
/usr/lib/python3/dist-packages/supervisor/options.py:470: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
self.warnings.warn(
2023-01-09 01:43:27,009 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-01-09 01:43:27,010 INFO Included extra file "/etc/supervisord.d/clash.conf" during parsing
2023-01-09 01:43:27,010 INFO Included extra file "/etc/supervisord.d/exporter.conf" during parsing
2023-01-09 01:43:27,010 INFO Included extra file "/etc/supervisord.d/subconverter.conf" during parsing
2023-01-09 01:43:27,012 INFO supervisord started with pid 1725
2023-01-09 01:43:28,014 INFO spawned: 'exporter' with pid 1727
2023-01-09 01:43:28,016 INFO spawned: 'subconverter' with pid 1728
2023-01-09 01:43:28,017 INFO spawned: 'clash' with pid 1729
[chislash log] 启动规则文件服务...
[chislash log] 启动订阅转换服务...
[chislash log] 转换服务: http://172.16.1.132:25500/sub
[chislash log] 规则服务: http://172.16.1.132:8091/ACL4SSR/Clash/config/
[chislash log] 转换规则: http://172.16.1.132:8091/ACL4SSR/Clash/config/ACL4SSR_Online_Full.ini
[chislash log] 订阅已过期 重新订阅中...
[chislash log] Caught SIGTERM signal!
[chislash log] Tell the clash session to shut down.
2023-01-09 01:43:28,053 INFO exited: clash (exit status 0; not expected)
[chislash err] 订阅转换服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:28,057 INFO exited: subconverter (exit status 1; not expected)
[chislash err] 规则文件服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:28,058 INFO exited: exporter (exit status 1; not expected)
2023-01-09 01:43:29,061 INFO spawned: 'exporter' with pid 1857
2023-01-09 01:43:29,064 INFO spawned: 'subconverter' with pid 1858
2023-01-09 01:43:29,067 INFO spawned: 'clash' with pid 1859
[chislash log] 启动规则文件服务...
[chislash log] 启动订阅转换服务...
[chislash log] 转换服务: http://172.16.1.132:25500/sub
[chislash log] 规则服务: http://172.16.1.132:8091/ACL4SSR/Clash/config/
[chislash log] 转换规则: http://172.16.1.132:8091/ACL4SSR/Clash/config/ACL4SSR_Online_Full.ini
[chislash log] 订阅已过期 重新订阅中...
[chislash log] Caught SIGTERM signal!
[chislash log] Tell the clash session to shut down.
2023-01-09 01:43:29,104 INFO exited: clash (exit status 0; not expected)
[chislash err] 订阅转换服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:29,104 INFO exited: subconverter (exit status 1; not expected)
[chislash err] 规则文件服务未能启动, 请检查端口是否被占用
2023-01-09 01:43:29,109 INFO exited: exporter (exit status 1; not expected)
^C2023-01-09 01:43:31,113 INFO spawned: 'exporter' with pid 1998
2023-01-09 01:43:31,117 INFO spawned: 'subconverter' with pid 1999
2023-01-09 01:43:31,120 INFO spawned: 'clash' with pid 2003
2023-01-09 01:43:31,121 WARN received SIGINT indicating exit request
2023-01-09 01:43:31,121 INFO waiting for exporter, subconverter, clash to die
已知的信息
1.有时候可以成功不过90%都是失败
2.确认过没有端口占用
3.按照顺序单独执行subconverter_service exporter_service clash_service是可以启动成功的
4.容器尝试过挂载/etc/supervisord.d修改subconverter和exporter对应配置的startsecs=1和startretries=0
5.在mac上和桌面windows可以正常部署启动成功,truenas上不行
环境信息
CPU:Intel(R) Xeon(R) Gold 6210U CPU @ 2.50GHz
Memory:128GiB
TrueNASVersion:TrueNAS-SCALE-22.12.0
DockerVersion:Docker version 20.10.18, build b40c2f6
如题 http代理没法加密 不安全
多个订阅 已经用了 | 但是无法启动
项目似乎不支持这两种协议的代理,希望可以支持一下
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.