mingang.he
mingang.he
Do you mean that the root's environment does not match the non-root's environment, so that it cause the environmental dependency error? You can try `sudo -E graftcp bash`.
@hellobbn Thank you for your example. ~~I thank it can be solved like this:~~ **Do not run** the following script, it will elevate the privileges of the tracked process to...
安装试了下,用 `tproxy` 尝试请求 Google 失败了,连接 Baidu 是成功的。 ``` tproxy curl --verbose https://www.google.com * Rebuilt URL to: https://www.google.com/ * Hostname was NOT found in DNS cache * Trying 172.217.20.100... * connect...
使用 `iptables` 的话也可以参考依云的[使用 cgroups net_cls 来让 docker 走代理](https://blog.lilydjwg.me/2019/3/3/net_cls.214197.html)。
看了下是我本机的 `iptables` 版本太低,还不支持 `cgroup`。
The feature of multiple proxies is not yes supported. I will consider this for the next release. Thx.
执行 graftcp 时可以用 `sudo journalctl -f -u graftcp-local.service` 观察下日志,看看是否有目标地址的IP输出。 有可能是 DNS 解析出问题了。
用 graftcp 启动 curl 时可以加下 `-v` 或 `--trace -` 选项看下执行到哪一步失败了。从上面的 graftcp-local 没有日志输出来看,应该发生在建立 TCP 连接之前。
> --verbose 和 --trace - 都没有任何输出 我用 strace 记录了日志,见附件 > > [strace.txt](https://github.com/hmgle/graftcp/files/8362469/strace.txt) 想确定一下上面的确切执行命令,是 `graftcp curl -v https://github.com` 和 `graftcp curl --trace - https://github.com` 都没有任何输出吗?
@everplus 请问下 curl 的版本是多少,我看下我这边能不能复现。