Coder Social home page Coder Social logo

Comments (12)

kuoruan avatar kuoruan commented on June 26, 2024

看看 /tmp/dnsmasq.d/v2ray 里边有没有这个网址

from luci-app-v2ray.

kuoruan avatar kuoruan commented on June 26, 2024

然后把你的域名手动填入 Extra direct list

from luci-app-v2ray.

vongoethe avatar vongoethe commented on June 26, 2024

/tmp/dnsmasq.d/v2ray 里面有相应的域名。
开启透明代理后,一切正常,我手动填入 extra direct list 的域名也可以正常作用,但是一旦填写 extra proxy list 里面的域名后,就无法访问任何网站了,包括百度等国内网站,而且直接从 luci 界面无法删除填入的 extra proxy list 里面的域名,需要到 /etc/v2ray 路径下删除 proxylist.txt 文件才可以。
透明代理的模式我设置的是 fgwlist.txt 模式

from luci-app-v2ray.

vongoethe avatar vongoethe commented on June 26, 2024

如果不手动删除 /etc/v2ray 里面的 proxylist.txt 文件,即使关闭透明代理,依然无法上网

from luci-app-v2ray.

kuoruan avatar kuoruan commented on June 26, 2024

防火墙规则贴一下,需要信息

但是我发现列表剩最后一行的时候确实删不掉,我先看看这个问题

from luci-app-v2ray.

vongoethe avatar vongoethe commented on June 26, 2024

开启透明代理后,iptables -t nat -nvL 输出如下:
`Chain PREROUTING (policy ACCEPT 3 packets, 542 bytes)
pkts bytes target prot opt in out source destination
6 726 prerouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* !fw3: Custom prerouting rule chain /
4 262 zone_lan_prerouting all -- br-lan * 0.0.0.0/0 0.0.0.0/0 /
!fw3 /
0 0 zone_wan_prerouting all -- eth0.2 * 0.0.0.0/0 0.0.0.0/0 /
!fw3 /
0 0 zone_wan_prerouting all -- pppoe-wan * 0.0.0.0/0 0.0.0.0/0 /
!fw3 /
2 464 zone_guest_prerouting all -- wlan1 * 0.0.0.0/0 0.0.0.0/0 /
!fw3 */
0 0 V2RAY tcp -- * * 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT 1 packets, 78 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 V2RAY tcp -- * * 0.0.0.0/0 0.0.0.0/0

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
8 480 postrouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* !fw3: Custom postrouting rule chain /
0 0 zone_lan_postrouting all -- * br-lan 0.0.0.0/0 0.0.0.0/0 /
!fw3 /
0 0 zone_wan_postrouting all -- * eth0.2 0.0.0.0/0 0.0.0.0/0 /
!fw3 /
6 364 zone_wan_postrouting all -- * pppoe-wan 0.0.0.0/0 0.0.0.0/0 /
!fw3 /
0 0 zone_guest_postrouting all -- * wlan1 0.0.0.0/0 0.0.0.0/0 /
!fw3 */

Chain V2RAY (2 references)
pkts bytes target prot opt in out source destination
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0xff
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 match-set v2ray_dst_direct_v4 dst
0 0 REDIRECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 match-set v2ray_dst_proxy_v4 dst redir ports 1081

Chain postrouting_guest_rule (1 references)
pkts bytes target prot opt in out source destination `

from luci-app-v2ray.

kuoruan avatar kuoruan commented on June 26, 2024

如果你是用的自定义配置文件的话,v2ray_dst_direct_v4 这个 ipset 表里不会自动创建添加你服务器的 IP 地址。需要你手动在 Extra direct list 里边填入

from luci-app-v2ray.

kuoruan avatar kuoruan commented on June 26, 2024

填入 extra proxy list,然后开启透明代理
看看防火墙规则和 /tmp/dnsmasq.d/v2ray 和 ipset 是否正常

from luci-app-v2ray.

kuoruan avatar kuoruan commented on June 26, 2024

有可能是由于你的 dnsmasq 不支持 ipset 导致它没启动起来。
看看 ps -w 看看是否有 dnsmsq 服务

from luci-app-v2ray.

vongoethe avatar vongoethe commented on June 26, 2024

找到问题了,我的 dnsmasq 是 full 版本,这个 ok,ipset list 也正常
你说的对,问题出在 extra direct list 里面,我把 vmess 服务器的 ip 地址写了 direct list 里面,但是我的 vmess 用的是域名,我把服务器的域名也写到 extra direct list 里面,就正常了

from luci-app-v2ray.

kuoruan avatar kuoruan commented on June 26, 2024

我刚才做了个提交,使用自定义配置文件时自动扫描添加配置文件里边的服务端 IP
d531646
马上发布一个新版本,用新版本后就不需要手动添加 direct 服务器域名了

from luci-app-v2ray.

vongoethe avatar vongoethe commented on June 26, 2024

我刚才做了个提交,使用自定义配置文件时自动扫描添加配置文件里边的服务端 IP
d531646
马上发布一个新版本,用新版本后就不需要手动添加 direct 服务器域名了

非常感谢

from luci-app-v2ray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.