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

After the ` Clash` tun mode is enabled, udp2raw cannot be connected even if the specified NIC is enabled #500

Closed eromoe closed 6 months ago

eromoe commented 9 months ago

在开启clash tun模式后,即使指定网卡开启udp2raw 也无法连接。 必须关闭clash tun模式,然后启动udp2raw 然后再启动 clash tun 模式

logs:

[2023-12-04 13:47:31][INFO]const_id:e19bff3d
[2023-12-04 13:47:31][INFO]--dev has been manually set, using device:[\Device\NPF_{F985FB1C-0EF6-4D9D-AB00-5D560AAA44B7}]
[2023-12-04 13:47:31][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:33][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:35][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:36][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:38][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:39][INFO]new packet from 127.0.0.1:49269,conv_id=2e9ff3e0
[2023-12-04 13:47:39][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:41][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:43][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:44][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:46][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:47][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:49][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:51][INFO]waiting for a use-able packet to be captured
[2023-12-04 13:47:52][INFO]waiting for a use-able packet to be captured
wangyu- commented 9 months ago

the tun you created hijacked udp2raw's traffic.

you need to figure out how to add exceptions by youself.

eromoe commented 9 months ago

I don't have much network knowledge, hard to firgure out.... Do you have any clue or guide ?

wangyu- commented 9 months ago

I don't have an article closely related to Clash.

there is an article talked about how to let openvpn not hijack udpspeeder's traffic, when trying to use openvpn+udpspeeder together.

https://github.com/wangyu-/UDPspeeder/wiki/UDPspeeder-openvpn-config-guide

su-kaka commented 6 months ago

使用tun网卡好像都是这样 不知道咋解决

eromoe commented 6 months ago

开机启动写了个脚本,先启动udp2raw 等10秒再启动 clash。