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

Tun Support #3576

Open
APT-ZERO opened this issue Jul 22, 2024 · 16 comments
Open

Tun Support #3576

APT-ZERO opened this issue Jul 22, 2024 · 16 comments
Labels
enhancement New feature or request PR welcome Unplanned idea, but welcome anyone to open PR for implementation

Comments

@APT-ZERO
Copy link

Hello
Desktop clients needs Xray-core to support Tun
Do you have any plan to support it?

@RPRX RPRX added the enhancement New feature or request label Jul 22, 2024
@Fangliding
Copy link
Member

dup

@egg1234

This comment was marked as off-topic.

@PoneyClairDeLune
Copy link
Contributor

Use transproxies. TUN is less performant than transparent proxies anyway, unless you need to also handle packets other than TCP and UDP.

@AlexeySa

This comment was marked as off-topic.

@somebodywashere

This comment was marked as off-topic.

@RPRX
Copy link
Member

RPRX commented Aug 15, 2024

我觉得主要是 Windows 和 macOS 需要 Tun,Linux 上不如透明代理,话说 macOS 上有透明代理吗

@hoodadt

This comment was marked as off-topic.

@heibailiangxiangwang20

This comment was marked as off-topic.

@Fangliding
Copy link
Member

这里似乎已经变成许愿井了 issue区不是干这个的。。。
请不要再在这里发送无用的消息

@Fangliding Fangliding added the PR welcome Unplanned idea, but welcome anyone to open PR for implementation label Sep 7, 2024
@omid-official
Copy link
Contributor

Can we use this dependency?
https://github.com/SagerNet/sing-tun

@mmmray
Copy link
Collaborator

mmmray commented Sep 10, 2024

@omid-official I think GPL is not right to add to xray. There is some GPL code in xray, but it is historical, and the author themselves added it. (otherwise, I am sure adding some dependencies to xray for this feature is fine)

@APT-ZERO

This comment was marked as off-topic.

@omid-official
Copy link
Contributor

Can we use this dependency? https://github.com/SagerNet/sing-tun

Sing-Tun is approved by Xray devs at #1814 and is advised to use because it's not wise to reinvent the wheel

I am a novice regarding licenses and do not know what terms and conditions each of them has, but as mmmray mentioned, the GPL license has stricter rules compared to the MPL license.

@Fangliding
Copy link
Member

Please stop that. We will not use it

@deepsm0ke
Copy link

deepsm0ke commented Dec 6, 2024

I think TUN is really good and practical( not only for Win or MacOS, for all platforms ), and at least for the following reason, it needs to be added:

TUN can cover all network traffic, including traffic from non-browser software, apps, and various protocols. Additionally, you can block WebRTC STUN later to prevent the exposure of the real IPs( Local + Public)!
With TUN, all traffic is routed through the tunnel(vNIC), which reduces the likelihood of requests being identified and blocked.

@EarlVadim
Copy link

A proxy without the TUN mode is not serious. They write correctly that not all traffic goes through the browser.
In addition, at the moment there is no solution for the TUN mode with the XHTTP protocol.
And such a solution will not appear soon. (((
Something needs to be done about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR welcome Unplanned idea, but welcome anyone to open PR for implementation
Projects
None yet
Development

No branches or pull requests