udp2raw icon indicating copy to clipboard operation
udp2raw copied to clipboard

Windows version don't support pppoe connection

Open k79e opened this issue 4 years ago • 5 comments

English Only (except for bug reporting). It only connections to the wrong port randomly

k79e avatar Apr 25 '21 12:04 k79e

The windows version is based on libpcap. According to my prior test, libpcap doesn't support pppoe on windows.

It only connections to the wrong port randomly

What do you mean by connecting to the wrong port, can you provide the conf and log to help understand what you said.

wangyu- avatar Apr 25 '21 13:04 wangyu-

Well I set the --dev to netcard and by using process explorer I find that program don't connecting to the target port but some random port on server.

k79e avatar Apr 25 '21 14:04 k79e

The log on client is only

....--dev has been manually set.... [2021-04-25 22:24:06][INFO]waiting for a use-able packet to be captured [2021-04-25 22:24:07][INFO]waiting for a use-able packet to be captured [2021-04-25 22:24:09][INFO]waiting for a use-able packet to be captured [2021-04-25 22:24:11][INFO]waiting for a use-able packet to be captured

It repeat infinitely

2021-04-25_222451 2021-04-25_222446 2021-04-25_222443

client udp2raw -c -l xxxx -r xxxxx --cipher-mode none --hb-len 1 --dev \Device\NPF_xxxxx server udp2raw -s -l 0.0.0.0:xxx -r xxxx --raw-mode faketcp --cipher-mode none --mtu-warn 1480 --hb-len 1 -a

client version git version:b8e9095135 build date:Jan 11 2021 05:59:18

k79e avatar Apr 25 '21 14:04 k79e

If I don't set --dev it will say

[2021-04-25 22:32:03][FATAL]no matched device found foxr ip: xxx

k79e avatar Apr 25 '21 14:04 k79e

This (random port) is as expected, before making fakeTCP connect with pcap, udp2raw windows client will send a regular packet to random port to detect the link level header. 

The infinite loop is because pcap doesn't support pppoe on windows. It's hard to be fixed because it's a limitation of pcap.

wangyu- avatar Apr 25 '21 14:04 wangyu-