rustdesk / rustdesk-server

RustDesk Server Program
https://rustdesk.com/server
GNU Affero General Public License v3.0
6.7k stars 1.44k forks source link

ipv6 access hosted on cloudflare #206

Open cengzhijie3 opened 1 year ago

cengzhijie3 commented 1 year ago

我已经把我的ipv6域名都解析到cloudflare上,并且有ping但是却仍然用不了

截圖 2023-02-24 下午9 43 09 截圖 2023-02-24 下午9 43 26
paspo commented 1 year ago

The only english word in this issue is "cloudflare".

When you open a bug report, there's a note that says: Please write in english only. If you provide some images in different languages, you're required to write a translation in english.

cengzhijie3 commented 1 year ago

i do not understand because i can ping my DNS domain name but the rusdesk always show me that the connect is invalid

cengzhijie3 commented 1 year ago

i do not understand because i can ping my DNS domain name but the rusdesk always show me that the connect is invalid

cengzhijie3 commented 1 year ago

The only english word in this issue is "cloudflare".

When you open a bug report, there's a note that says: Please write in english only. If you provide some images in different languages, you're required to write a translation in english.

The only english word in this issue is "cloudflare".

When you open a bug report, there's a note that says: Please write in english only. If you provide some images in different languages, you're required to write a translation in english.

if i choose use my ipv6 IP to build the rustdesk document onmy ipv6 vps, the rust-desk client would straightly illustrate the noname

paspo commented 1 year ago

lokou13.lokou.eu.org resolves to:

lokou13.lokou.eu.org has address 188.114.96.7
lokou13.lokou.eu.org has address 188.114.97.7
lokou13.lokou.eu.org has IPv6 address 2a06:98c1:3121::7
lokou13.lokou.eu.org has IPv6 address 2a06:98c1:3120::7

all these IPs are cloudflare's machines.

this happens because your real server is proxied by cloudflare, so the exposed hosts are cloudflare's machines and your real server is hidden behind a tunnel.

You should first verify that the connection is working with the REAL address of the server, when you can confirm that, you can then work on the tunnelling.

cengzhijie3 commented 1 year ago

lokou13.lokou.eu.org決議:

lokou13.lokou.eu.org has address 188.114.96.7
lokou13.lokou.eu.org has address 188.114.97.7
lokou13.lokou.eu.org has IPv6 address 2a06:98c1:3121::7
lokou13.lokou.eu.org has IPv6 address 2a06:98c1:3120::7

所有這些 IP 都是 cloudflare 的機器。

發生這種情況是因為您的真實服務器由 cloudflare 代理,因此暴露的主機是 cloudflare 的機器,而您的真實服務器隱藏在隧道後面。

您應該首先驗證連接是否正在使用服務器的真實地址,當您可以確認時,您就可以處理隧道了。

but i cancel the cdn cloudflare and use the true IP address, but rustdesk also could not reject my DNS

截圖 2023-02-25 上午11 07 19 截圖 2023-02-25 上午11 08 33
lixaotec commented 1 year ago

I cannot use IPv6 neither.. using version 1.1.9

It says "Failed to solve" when i try to add my ipv6 or AAAA domain, to the rustdesk client

Interesting there no failed to solve message in the code.

Can you confirm that ipv6 are working with it?

lixaotec commented 1 year ago

also tried to add a local hosts to translate the IP

add with brackets [ipv6...]

specifiyng with ports.. none seem to work

rustdesk commented 1 year ago

nightly build

cengzhijie3 commented 1 year ago

it also cannot be used if i downloaded the nightly build version, it also gives me the id does not exist if I try connecting with my android version id, but if I connected with my own MacBook, it could approve to connect.

cengzhijie3 commented 1 year ago

The first time I could connect, but when I change another vps and change the id service, it disagrees. Finally, It just shows that id does not exist. Does it record many id numbers in my rustdesk so it could not identify?

cengzhijie3 commented 1 year ago

I can access my macbook with the ip of my vps in android, but my macbook cannot access my android rustdesk WechatIMG22 WechatIMG23

截圖 2023-03-26 下午12 24 57 截圖 2023-03-26 下午12 24 50
AHA1GE commented 1 year ago

did you try doing all these without selfhosted server? if that would work, dig into your selfhosted server's log might help.

lixaotec commented 1 year ago

tried with my self hosted server, and it wont work.

With rustdesk server it works fine (therefore i wish not to go through)

The case is any ipv6 self hosting is working, neither cloudflare dns.

AHA1GE commented 1 year ago

The case is any ipv6 self hosting is working, neither cloudflare dns.

Tbh your translator is kinda broken, I gues you mean "any ipv6 self hosting is NOT working"? I would recommend you post with English and your native language so others can use translator.

I would say first try set only an A record, point to your server, if that work, try dual stack, if that also work, try AAAA only. All DNS records should have the "proxied" set to OFF.

If you are expecting cloudflare to proxy your traffic, I suggest looking for "zero trust tunnels" instead.

Also don't forget to check with the dev team for rustdesk's ipv6 compatibility.