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

affected/package: 在客户端使用xdmcp协议,无法远程 #340

Open
xiao-zl opened this issue Oct 15, 2024 · 0 comments
Open

affected/package: 在客户端使用xdmcp协议,无法远程 #340

xiao-zl opened this issue Oct 15, 2024 · 0 comments

Comments

@xiao-zl
Copy link

xiao-zl commented Oct 15, 2024

使用的anylink版本 ?

./anylink tool -v
v0.12.2

使用操作系统的类型和版本?

CentOS Linux release 7.9.2009 (Core)

使用linux 内核版本?

uname -a
3.10.0-1160.90.1.el7.x86_64

具体遇到的问题,可上传截图

在客户端使用xdmcp协议,无法显示图形,其他协议都正常
服务器网卡和ip

ens192 192.168.1.5/24
ens224 192.168.10.103/24
ens256 192.168.4.132/24
tun0 192.168.90.1

添加网卡转发

iptables -t nat -A POSTROUTING -s 192.168.90.0/24 -d 192.168.10.0/24 -o ens224 -j MASQUERADE

服务器route

default via 192.168.1.1 dev ens192 proto static metric 100 
default via 192.168.10.1 dev ens224 proto static metric 101 
default via 192.168.4.254 dev ens256 proto static metric 102 
192.168.1.0/24 dev ens192 proto kernel scope link src 192.168.1.5 metric 100 
192.168.4.0/24 dev ens256 proto kernel scope link src 192.168.4.132 metric 102 
192.168.10.0/24 dev ens224 proto kernel scope link src 192.168.10.103 metric 101 
192.168.90.100 dev tun0 proto kernel scope link src 192.168.90.1 

服务器网卡抓包

sudo tcpdump -i ens224 udp port 177
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ens224, link-type EN10MB (Ethernet), capture size 262144 bytes
20:31:04.017326 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 7
20:31:04.037450 IP 192.168.10.126.xdmcp > 192.168.10.103.41472: UDP, length 48
20:31:04.150227 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 114
20:31:04.150668 IP 192.168.10.126.xdmcp > 192.168.10.103.41472: UDP, length 52
20:31:04.155600 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:06.156498 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:10.154507 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:18.155881 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:34.155458 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:32:06.155147 IP 192.168.10.103.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:32:19.164247 IP 192.168.10.126.xdmcp > 192.168.10.103.41472: UDP, length 84

本地客户端抓包

sudo tcpdump -i sslcon udp port 177
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on sslcon, link-type RAW (Raw IP), snapshot length 262144 bytes
20:31:04.043812 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 7
20:31:04.070223 IP 192.168.10.126.xdmcp > arch.41472: UDP, length 48
20:31:04.178114 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 114
20:31:04.182922 IP 192.168.10.126.xdmcp > arch.41472: UDP, length 52
20:31:04.183079 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:06.183688 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:10.183123 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:18.183894 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:31:34.184655 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:32:06.184933 IP arch.41472 > 192.168.10.126.xdmcp: UDP, length 29
20:32:19.198757 IP 192.168.10.126.xdmcp > arch.41472: UDP, length 84

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

1 participant