mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 08:25:54 +03:00
[GH-ISSUE #302] 内网穿透如何强制IPv4 #217
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ablebodied on GitHub (Jul 30, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/302
Expected Behavior
用 ./proxy server --udp -r "udp://0.0.0.0:3389@:3389" -P "127.0.0.1:33080" -C proxy.crt -K proxy.key 这个命令希望监听在ipv4,电脑有多个网卡,而且同时支持ipv6跟ipv4,现在想ipv4连接内网机器
Current Behavior
现在运行上述命令监听的是ipv6,通过netstat 查看是 udp6协议
Possible Solution
自己试了把0.0.0.0 改成服务器的公网地址,但是并没奏效,还是不能转发
Steps to Reproduce
Context (Environment)
@snail007 commented on GitHub (Jul 30, 2019):
udp6包含udp4,你用udp4连接server,代理client自动就会用udp4与目标通讯。
@ablebodied commented on GitHub (Jul 31, 2019):
上面的是IP信息,部分信息隐去了。
服务器端用了两个命令:
./proxy bridge -p ":33080" -C proxy.crt -K proxy.key./proxy server --udp -r ":33890@:3389" -P "127.0.0.1:33080" -C proxy.crt -K proxy.key要连接的PC上运行了一个命令
proxy client -P "210.n.n.n:33080" -C proxy.crt -K proxy.key上面两个电脑可以连上,但是无法通过其他电脑访问到上面PC
服务器运行后显示 2019/07/31 09:57:55 server on [::]:33890
netstat 显示
udp6 0 0 :::33890 :::* 3332/./proxy,但是通过服务器的ipv4地址去连接没响应,连不上,这是哪里的问题呢?
@snail007 commented on GitHub (Jul 31, 2019):
3389是udp服务?我看你映射的是UDP。
@ablebodied commented on GitHub (Jul 31, 2019):
之前看了网上 RDP3389是同时监听UDP与TCP 的, ,被误导了,看了自己电脑上的显示结果
这个UDP貌似没监听,改了TCP可以了,谢谢了