You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally posted one issue which is marked completed and I have also already solved that issue with the collaborator's help (Thanks). But I still have some small questions.
I use V2Ray 5.9.0, and I keep using v4 config with ExecStart=/usr/bin/v2ray run -config /etc/v2ray/config.json -format json in /usr/lib/systemd/system/v2ray.service because I have some problems with v5 and v4 has more resources about config than v5.
When I use "AsIs", with config (Here I only post part of the config file. If you need the full one, please tell me, thanks.)
then "www.test-ipv6.com" won't go through the proxy and if I modified above to "outboundTag": "proxy", then "www.test-ipv6.com" will go through the proxy. IMHO it means that the above routing rule takes effect.
$ sudo vim /var/log/v2ray/error.log
...
2023/11/12 14:27:51 [Info] [3996237950] proxy/http: request to Method [CONNECT] Host [ipv4.lookup.test-ipv6.com:443] with URL [//ipv4.lookup.test-ipv6.com:443]
2023/11/12 14:27:51 [Info] [3996237950] app/dispatcher: sniffed domain: ipv4.lookup.test-ipv6.com for tcp:ipv4.lookup.test-ipv6.com:443
2023/11/12 14:27:51 [Warning] [3996237950] app/dispatcher: default route for tcp:ipv4.lookup.test-ipv6.com:443
2023/11/12 14:27:51 [Info] [3996237950] proxy/freedom: opening connection to tcp:ipv4.lookup.test-ipv6.com:443
2023/11/12 14:27:51 [Info] [3996237950] transport/internet/tcp: dialing TCP to tcp:ipv4.lookup.test-ipv6.com:443
...
However with the "domainStrategy": "IPIfNonMatch" modification, the above routing match fails
$ sudo vim /var/log/v2ray/error.log
...
2023/11/12 14:23:01 [Info] [2650564958] proxy/http: request to Method [CONNECT] Host [ipv4.lookup.test-ipv6.com:443] with URL [//ipv4.lookup.test-ipv6.com:443]
2023/11/12 14:23:01 [Info] [2650564958] app/dispatcher: sniffed domain: ipv4.lookup.test-ipv6.com for tcp:ipv4.lookup.test-ipv6.com:443
2023/11/12 14:23:01 [Debug] app/dns: domain ipv4.lookup.test-ipv6.com will use DNS in order: [UDP:[2001:4860:4860::8888]:53 UDP:114.114.114.114:53 UDP:8.8.8.8:53 localhost] [TypeA TypeAAAA]
2023/11/12 14:23:01 [Debug] app/dns: UDP:[2001:4860:4860::8888]:53 querying DNS for: ipv4.lookup.test-ipv6.com.
...
2023/11/12 14:23:01 [Info] app/dns: UDP:[2001:4860:4860::8888]:53 got answer: ipv4.lookup.test-ipv6.com. TypeAAAA -> [] 219.354846ms
2023/11/12 14:23:01 [Debug] app/dns: UDP:[2001:4860:4860::8888]:53 updating IP records for domain:ipv4.lookup.test-ipv6.com.
2023/11/12 14:23:01 [Info] app/dns: UDP:[2001:4860:4860::8888]:53 got answer: ipv4.lookup.test-ipv6.com. TypeA -> [216.218.223.250 176.58.89.223] 219.378313ms
2023/11/12 14:23:01 [Debug] app/dns: UDP:[2001:4860:4860::8888]:53 updating IP records for domain:ipv4.lookup.test-ipv6.com.
2023/11/12 14:23:01 [Info] [2650564958] app/dispatcher: taking detour [proxy] for [tcp:ipv4.lookup.test-ipv6.com:443]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I originally posted one issue which is marked completed and I have also already solved that issue with the collaborator's help (Thanks). But I still have some small questions.
I use
V2Ray 5.9.0
, and I keep using v4 config withExecStart=/usr/bin/v2ray run -config /etc/v2ray/config.json -format json
in/usr/lib/systemd/system/v2ray.service
because I have some problems with v5 and v4 has more resources about config than v5.When I use "AsIs", with config (Here I only post part of the config file. If you need the full one, please tell me, thanks.)
then "www.test-ipv6.com" won't go through the proxy and if I modified above to
"outboundTag": "proxy",
then "www.test-ipv6.com" will go through the proxy. IMHO it means that the above routing rule takes effect.However with the
"domainStrategy": "IPIfNonMatch"
modification, the above routing match failsWith the v2fly v4 routing doc
I think the
IPIfNonMatch
will keep the "domain" related rule, but it seems not, could someone help with this problem?Beta Was this translation helpful? Give feedback.
All reactions