Skip to content
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

和libvirt也冲突 #32

Open
daiaji opened this issue Jan 9, 2021 · 4 comments
Open

和libvirt也冲突 #32

daiaji opened this issue Jan 9, 2021 · 4 comments

Comments

@daiaji
Copy link

daiaji commented Jan 9, 2021

https://libvirt.org/firewall.html
说是会加IPtables规则……
总之libvirt随便启动一个虚拟机实例cgproxy就完蛋了……
顺便一提我在libvirt里用网桥。
他提了firewalld如果有的情况下,会去用firewalld。(看文档说是这样做不会影响其他程序的DNS)
但看起来cgproxy的DNS请求还是被劫持了……

@xz-dev
Copy link

xz-dev commented May 19, 2021

只要关闭 enable_gateway 网关模式就不会这样了,但是这样虚拟机也不会被代理了(
我的配置文件如下

{
    "comment": "For usage, see https://github.com/springzfx/cgproxy",

    "port": 12345,
    "program_noproxy": [
        "v2ray",
        "qv2ray",
        "/usr/lib/kdeconnectd",
        "/opt/todesk/bin/todesk"
    ],
    "program_proxy": [
        "/"
    ],
    "cgroup_noproxy": [
        "/system.slice/v2ray.service",
        "/system.slice/dnsmasq.service",
        "/system.slice/smartdns.service",
        "/system.slice/cloudflared.service",
        "/system.slice/deluged.service",
        "/system.slice/vsftpd.service",
        "/system.slice/runsunloginclient.service"
    ],
    "cgroup_proxy": [],
    "enable_gateway": false,
    "enable_dns": true,
    "enable_udp": true,
    "enable_tcp": true,
    "enable_ipv4": true,
    "enable_ipv6": true,
    "table": 10007,
    "fwmark": 39283
}

@iosmanthus
Copy link

但是如果想要虚拟机也被代理呢?

@daiaji
Copy link
Author

daiaji commented Jan 7, 2022

但是如果想要虚拟机也被代理呢?

在网关上透明代理吧,反正我已经买了5800x当软路由了。

@CHN-beta
Copy link

CHN-beta commented Feb 5, 2023

我这里libvirt没问题。
如果需要的话,我贴一下我这边的配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants