Open 517030910405 opened 3 years ago
把 cgroup_proxy
改了,现在变成不能连接了
~$ sudo systemctl enable --now cgproxy.service
Created symlink /etc/systemd/system/multi-user.target.wants/cgproxy.service → /usr/lib/systemd/system/cgproxy.service.
~$ wget www.baidu.com
--2021-02-04 00:14:03-- http://www.baidu.com/
Resolving www.baidu.com (www.baidu.com)... failed: Name or service not known.
wget: unable to resolve host address ‘www.baidu.com’
~$ cat /etc/cgproxy/config.json
{
"comment":"For usage, see https://github.com/springzfx/cgproxy",
"port": 10809,
"program_noproxy": ["v2ray", "qv2ray"],
"program_proxy": [],
"cgroup_noproxy": ["/system.slice/v2ray.service"],
"cgroup_proxy": ["/"],
"enable_gateway": true,
"enable_dns": true,
"enable_udp": true,
"enable_tcp": true,
"enable_ipv4": true,
"enable_ipv6": true,
"table": 10007,
"fwmark": 39283
}
~$ sudo systemctl disable --now cgproxy.service
Removed /etc/systemd/system/multi-user.target.wants/cgproxy.service.
~$ wget www.baidu.com
--2021-02-04 00:18:02-- http://www.baidu.com/
Resolving www.baidu.com (www.baidu.com)... 180.101.49.12, 180.101.49.11
Connecting to www.baidu.com (www.baidu.com)|180.101.49.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2381 (2.3K) [text/html]
Saving to: ‘index.html’
index.html 100%[===================>] 2.33K --.-KB/s in 0s
2021-02-04 00:18:02 (18.3 MB/s) - ‘index.html.3’ saved [2381/2381]
改完 cgroup_proxy
就直接变成透明代理全部了,我猜测是 DNS 出了点问题,可以试试看关掉 enable_dns
?
您好!
这里无法运行透明代理,全都是按照教程一步一步操作的。
能帮忙看一下吗?谢谢!
流程
安装指令:
更改配置后运行:
配置(v2ray 的配置是 Qv2ray 生成的):