wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
7.16k stars 1.16k forks source link

Running in a non rooted environment #504

Open akiirax opened 8 months ago

akiirax commented 8 months ago

Hello,

Is there a way to if building udp2raw as a library/so to use it without need for root? Or the need to do any kernel/os level modifications? Ex. Running within an app on Android/iOS?

akiirax commented 8 months ago

Just to clarify, I meant running completely in the non-privileged user space.

akiirax commented 8 months ago

@wangyu- if you can give me possible development markers to proceed with? if possible.

wangyu- commented 8 months ago

There is no way at the moment.

If you are a developer want to develop it by yourself, the best chance is to make use of ios/android's VPN api for faking packets. However I don't guarantee it works, nor can I provide more details.

akiirax commented 8 months ago

I can move forward implementing this however wanna make sure I won't need any kernel-level change or root permission. 🙄

wangyu- commented 8 months ago

If you are a developer want to develop it by yourself, the best chance is to make use of ios/android's VPN api for faking packets.

All I can tell you is: with this method, there is a chance to implement without any kernel-level change or root permission.

I can not give you a guarantee.

I can move forward implementing this however wanna make sure I won't need any kernel-level change or root permission.

If you can move forward implementing, then you should also be able to investigate and make conclusions by yourself.