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

openwrt上udp2raw出现[INFO](re)sent handshake1 #518

Closed
cyay10 opened this issue Apr 6, 2024 · 2 comments
Closed

openwrt上udp2raw出现[INFO](re)sent handshake1 #518

cyay10 opened this issue Apr 6, 2024 · 2 comments

Comments

@cyay10
Copy link

cyay10 commented Apr 6, 2024

English Only.
我在openwrt服务端运行的是
./udp2raw_amd64 -s -l0.0.0.0:4096 -r127.0.0.1:18888 -k "passwd" --raw-mode faketcp --cipher-mode xor -a --log-level 5

win服务端运行的是
udp2raw_mp.exe -c -l0.0.0.0:3333 -r125.126.202.186:4096 -k "passwd" --raw-mode faketcp --log-level 5

win上已经添加
netsh advfirewall firewall add rule name=udp2raw protocol=TCP dir=in remoteip=125.126.202.xxx remoteport=4096 action=block
netsh advfirewall firewall add rule name=udp2raw protocol=TCP dir=out remoteip=125.126.202.xxx remoteport=4096 action=block

主路由添加端口转发 4096 4096 到192.168.0.3openwrt上

openwrt上防火墙添加了
iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o br-lan -j MASQUERADE
iptables -I OUTPUT -p tcp --sport 4096 -j ACCEPT
iptables -I INPUT -p tcp --dport 4096 -j ACCEPT

出现了下面的错误
客户端
]
[2024-04-06 22:27:19][DEBUG]pcap_loop exited with value -2
[2024-04-06 22:27:19][INFO]breakloop() succeed after 2 attempt(s)
[2024-04-06 22:27:19][DEBUG]pcap_setdirection(pcap_handle,PCAP_D_IN) failed with value -1, Setting direction is not implemented on this platform
[2024-04-06 22:27:19][INFO]state changed from client_idle to client_tcp_handshake
[2024-04-06 22:27:19]INFOsent tcp syn
[2024-04-06 22:27:20][INFO]state changed from client_tcp_handshake to client_handshake1
[2024-04-06 22:27:20]INFOsent handshake1
[2024-04-06 22:27:21]INFOsent handshake1
[2024-04-06 22:27:22]INFOsent handshake1
[2024-04-06 22:27:23]INFOsent handshake1
[2024-04-06 22:27:25]INFOsent handshake1
[2024-04-06 22:27:25][INFO]state back to client_idle from client_handshake1
[2024-04-06 22:27:25][DEBUG]created new udp_fd 548
[2024-04-06 22:27:25][INFO]source_addr is now 192.168.1.108
[2024-04-06 22:27:25][INFO]using port 20341
[2024-04-06 22:27:25][INFO]filter expression is [ip and tcp and src 125.126.202.186 and src port 4096 and dst port 20341]
[2024-04-06 22:27:25][DEBUG]pcap_loop exited with value -2
[2024-04-06 22:27:25][INFO]breakloop() succeed after 2 attempt(s)
[2024-04-06 22:27:25][DEBUG]pcap_setdirection(pcap_handle,PCAP_D_IN) failed with value -1, Setting direction is not implemented on this platform
[2024-04-06 22:27:25][INFO]state changed from client_idle to client_tcp_handshake
[2024-04-06 22:27:25]INFOsent tcp syn
[2024-04-06 22:27:26][INFO]state changed from client_tcp_handshake to client_handshake1
[2024-04-06 22:27:26]INFOsent handshake1
[2024-04-06 22:27:28]INFOsent handshake1
[2024-04-06 22:27:29]INFOsent handshake1

服务端
[2024-04-06 22:26:47][INFO]now listening at 0.0.0.0:4096
[2024-04-06 22:27:19][INFO][101.74.61.64:7090]received syn,sent syn ack back
[2024-04-06 22:27:20][DEBUG]auth_verify failed
[2024-04-06 22:27:20][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:20][DEBUG]auth_verify failed
[2024-04-06 22:27:20][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:21][DEBUG]auth_verify failed
[2024-04-06 22:27:21][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:21][DEBUG]auth_verify failed
[2024-04-06 22:27:21][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:22][DEBUG]auth_verify failed
[2024-04-06 22:27:22][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:22][DEBUG]auth_verify failed
[2024-04-06 22:27:22][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:24][DEBUG]auth_verify failed
[2024-04-06 22:27:24][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:24][DEBUG]auth_verify failed
[2024-04-06 22:27:24][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:25][DEBUG]auth_verify failed
[2024-04-06 22:27:25][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:25][DEBUG]auth_verify failed
[2024-04-06 22:27:25][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:26][INFO][101.74.61.64:7363]received syn,sent syn ack back
[2024-04-06 22:27:27][DEBUG]auth_verify failed
[2024-04-06 22:27:27][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:27][DEBUG]auth_verify failed
[2024-04-06 22:27:27][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:28][DEBUG]auth_verify failed
[2024-04-06 22:27:28][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:28][DEBUG]auth_verify failed
[2024-04-06 22:27:28][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:29][DEBUG]auth_verify failed
[2024-04-06 22:27:29][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:29][DEBUG]auth_verify failed
[2024-04-06 22:27:29][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:30][DEBUG]auth_verify failed
[2024-04-06 22:27:30][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:30][DEBUG]auth_verify failed
[2024-04-06 22:27:30][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:32][DEBUG]auth_verify failed
[2024-04-06 22:27:32][DEBUG]decrypt_fail in recv bare
[2024-04-06 22:27:32][DEBUG]auth_verify failed
[2024-04-06 22:27:32][DEBUG]decrypt_fail in recv bare

QQ截图20240406223159
QQ截图20240406223231
QQ截图20240406223254

@mxmkeep
Copy link

mxmkeep commented Apr 11, 2024

One side has --cipher-mode xor, but the other side does not. Is this the reason?

@cyay10
Copy link
Author

cyay10 commented Apr 11, 2024

One side has --cipher-mode xor, but the other side does not. Is this the reason?

I'll try, but it may not be the problem

@wangyu- wangyu- closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants