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

Socks5/UDP 协议请求服务器端口 #1119

Closed
Xqing-hup opened this issue Jan 18, 2024 · 2 comments
Closed

Socks5/UDP 协议请求服务器端口 #1119

Xqing-hup opened this issue Jan 18, 2024 · 2 comments
Labels
bug Something isn't working Stale

Comments

@Xqing-hup
Copy link

Describe the bug

netch 在udp请求阶段端口的错误

In [1]: a = b'\x00\x00\x00\x01m\xa9@\xef\x92\x8b\xe5\x80x\xcd\x1f\xa6f\xda\n
...: \xaee\x00\x87\xe6n\xb7\x98\x9a\x1b\xe2\xd1X\xbc4?/\xfcl\x1es1\x96\x9
...: 6\xf9\xc9R[\xca\x0b\xab\x05\xbf\xe8\x0fAp\x8d8\x0c-'

To Reproduce

  1. 在本地127.0.0.1 搭建socks5 端口同时支持tcp/udp协议
  2. 创建自定义udp端口
  3. 启动程序模式点击nat测试,最终OnUDP然而实际上并没有成功

Log

application.log

Environment

Windows 11
Python 11
netch1.9.7

Additional information

image
image

RSV FRAG ATYP DST.ADDR DST.PORT DATA
2 1 1 Variable 2 Variable
UDP 请求头中的字段分别为:

RSV 保留, 固定为 X'0000'
FRAG 当前的分段号
ATYP 随后的地址类型
IPv4 地址: X'01'
域名: X'03'
IPv6 地址: X'04'
DST.ADDR 目标地址
DST.PORT 目标端口, 网络字节序
DATA 用户数据

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the Stale label Feb 18, 2024
Copy link

github-actions bot commented Mar 3, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Development

No branches or pull requests

1 participant