-
Notifications
You must be signed in to change notification settings - Fork 18
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
网络连接 #3
Comments
chislash会通过修改路由表实现透明代理(stop时自动恢复)和DNS劫持 修改路由表之后考虑废弃了,下次更新会带来更稳定的透明代理体验 |
感谢回复,刚我又仔细看了看日志和proxy设置. 同时本机的env里有http_proxy=7890 我这环境有点不太对劲,我先再剥离下问题的,再找您帮忙看看。多谢。 |
感谢大佬的整合,用下来感觉很不错,也遇到一些小问题: |
嗯嗯,等我有时间了会大改一次,重新实现一些功能 |
最近一直稳定运行,挺好。 |
我使用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就无法访问网络。
不太理解是哪部分出问题了,是路由规则还是哪出了问题?
The text was updated successfully, but these errors were encountered: