\
##### [email protected]
####### --------------------------------
##O#O## OS: AlmaLinux 9.4 (Seafoam Ocelot) aarch64
####### Host: KVM Virtual Machine virt-4.2
########### Kernel: 5.14.0-427.33.1.el9_4.aarch64
############# Uptime: 8 days, 2 hours, 57 mins
############### Packages: 811 (rpm), 4 (snap)
################ Shell: bash 5.1.8
################# Resolution: 1024x768
##################### Terminal: /dev/pts/0
##################### CPU: (2)
################# GPU: 00:01.0 Red Hat, Inc. Virtio 1.0 GPU
Memory: 7541MiB / 11613MiB
\
############ ########## #### ####### ######## SoC: Unknown
############### ######### ######################## Technology: Unknown
#### #### #### ##### ######## ##### Microarchitecture: Neoverse N1
#### #### #### #### ###### #### Max Frequency: ~2.970 GHz
#### #### #### #### #### #### Cores: 2 cores
#### ##### #### #### #### #### Features: NEON,SHA1,SHA2,AES,CRC32
############### #### #### #### #### Peak Performance: 95.04 GFLOP/s
######## #### #### #### #### ####
host rustdesk.tiozaodolinux.com
rustdesk.tiozaodolinux.com is an alias for oracle-04.tiozaodolinux.com.
oracle-04.tiozaodolinux.com has address 164.152.199.42
mkdir /root/docker/rustdesk-server/
cd /root/docker/rustdesk-server/
cat << '_EOF' > docker-compose.yml
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest
environment:
- ALWAYS_USE_RELAY=Y
command: hbbs
volumes:
- ./data:/root
network_mode: "host"
depends_on:
- hbbr
restart: unless-stopped
hbbr:
container_name: hbbr
image: rustdesk/rustdesk-server:latest
command: hbbr
volumes:
- ./data:/root
network_mode: "host"
restart: unless-stopped
_EOF
Recomendação Oficial: https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/
ZONE=`firewall-cmd --get-default-zone`
firewall-cmd --zone=$ZONE --permanent --add-port=21114-21119/tcp
firewall-cmd --zone=$ZONE --permanent --add-port=21116/udp
firewall-cmd --reload
firewall-cmd --list-ports --zone=$ZONE
docker compose up -d
docker compose logs -f
hbbr | [2024-09-11 18:07:18.586817 +00:00] INFO [src/relay_server.rs:61] #blacklist(blacklist.txt): 0
hbbr | [2024-09-11 18:07:18.586849 +00:00] INFO [src/relay_server.rs:76] #blocklist(blocklist.txt): 0
hbbr | [2024-09-11 18:07:18.586865 +00:00] INFO [src/relay_server.rs:82] Listening on tcp :21117
hbbr | [2024-09-11 18:07:18.586868 +00:00] INFO [src/relay_server.rs:84] Listening on websocket :21119
hbbr | [2024-09-11 18:07:18.586871 +00:00] INFO [src/relay_server.rs:87] Start
hbbr | [2024-09-11 18:07:18.587064 +00:00] INFO [src/relay_server.rs:105] DOWNGRADE_THRESHOLD: 0.66
hbbr | [2024-09-11 18:07:18.587081 +00:00] INFO [src/relay_server.rs:115] DOWNGRADE_START_CHECK: 1800s
hbbr | [2024-09-11 18:07:18.587083 +00:00] INFO [src/relay_server.rs:125] LIMIT_SPEED: 4Mb/s
hbbr | [2024-09-11 18:07:18.587085 +00:00] INFO [src/relay_server.rs:136] TOTAL_BANDWIDTH: 1024Mb/s
hbbr | [2024-09-11 18:07:18.587086 +00:00] INFO [src/relay_server.rs:146] SINGLE_BANDWIDTH: 16Mb/s
hbbs | [2024-09-11 18:07:18.708193 +00:00] INFO [src/common.rs:148] Private/public key written to id_ed25519/id_ed25519.pub
hbbs | [2024-09-11 18:07:18.708232 +00:00] INFO [src/rendezvous_server.rs:1191] Key: iJVzyEZTox1a4+IrNSICzFfDlPkSk+uDfVXEf6KZxAI=
hbbs | [2024-09-11 18:07:18.708237 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | [2024-09-11 18:07:18.727845 +00:00] INFO [src/rendezvous_server.rs:99] serial=0
hbbs | [2024-09-11 18:07:18.728056 +00:00] INFO [src/common.rs:46] rendezvous-servers=[]
hbbs | [2024-09-11 18:07:18.728064 +00:00] INFO [src/rendezvous_server.rs:101] Listening on tcp/udp :21116
hbbs | [2024-09-11 18:07:18.728066 +00:00] INFO [src/rendezvous_server.rs:102] Listening on tcp :21115, extra port for NAT test
hbbs | [2024-09-11 18:07:18.728067 +00:00] INFO [src/rendezvous_server.rs:103] Listening on websocket :21118
hbbs | [2024-09-11 18:07:18.728102 +00:00] INFO [libs/hbb_common/src/udp.rs:35] Receive buf size of udp [::]:21116: Ok(212992)
hbbs | [2024-09-11 18:07:18.728178 +00:00] INFO [src/rendezvous_server.rs:138] mask: None
hbbs | [2024-09-11 18:07:18.728190 +00:00] INFO [src/rendezvous_server.rs:139] local-ip: ""
hbbs | [2024-09-11 18:07:18.728194 +00:00] INFO [src/common.rs:46] relay-servers=[]
hbbs | [2024-09-11 18:07:18.728233 +00:00] INFO [src/rendezvous_server.rs:153] ALWAYS_USE_RELAY=Y
hbbs | [2024-09-11 18:07:18.728250 +00:00] INFO [src/rendezvous_server.rs:185] Start
hbbs | [2024-09-11 18:07:18.728348 +00:00] INFO [libs/hbb_common/src/udp.rs:35] Receive buf size of udp [::]:0: Ok(212992)
hbbs | [2024-09-11 18:07:54.335532 +00:00] INFO [src/peer.rs:102] update_pk 1911655457 [::ffff:187.91.26.57]:21017 b"13187f9adc2c41cf891c36f8a47d4009" b"b\xa8<\x96\x93\x1b\xec\x92\xeeu9\xb0\"tq\x85m?y\xab\x8d4\x14\xc8\xb1\xf8\xc9\xa90\xbb\xe9\xa1"
hbbr | [2024-09-12 12:37:29.979714 +00:00] INFO [src/relay_server.rs:441] New relay request 3795d840-3e7e-4e31-b406-603f41aa778e from [::ffff:187.91.26.57]:58511
hbbr | [2024-09-12 12:37:29.989674 +00:00] INFO [src/relay_server.rs:425] Relayrequest 3795d840-3e7e-4e31-b406-603f41aa778e from [::ffff:189.58.124.91]:34233 got paired
hbbr | [2024-09-12 12:37:29.989692 +00:00] INFO [src/relay_server.rs:431] Both are raw
hbbr | [2024-09-12 12:43:01.651233 +00:00] INFO [src/relay_server.rs:437] Relay of [::ffff:189.58.124.91]:34233 closed
nmap rustdesk.tiozaodolinux.com -sU -sT -p 21115-21119
Starting Nmap 7.92 ( https://nmap.org ) at 2024-09-11 19:15 -04
Nmap scan report for rustdesk.tiozaodolinux.com (164.152.199.42)
Host is up (0.030s latency).
PORT STATE SERVICE
21115/tcp open unknown
21116/tcp open unknown
21117/tcp open unknown
21118/tcp open unknown
21119/tcp open unknown
21115/udp open|filtered unknown
21116/udp open|filtered unknown
21117/udp open|filtered unknown
21118/udp open|filtered unknown
21119/udp open|filtered unknown
Nmap done: 1 IP address (1 host up) scanned in 1.69 seconds
# Verify TCP
netcat -vzt rustdesk.tiozaodolinux.com 21115-21119
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21115 port [tcp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21116 port [tcp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21117 port [tcp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21118 port [tcp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21119 port [tcp/*] succeeded!
# Verify UDP
netcat -vzu rustdesk.tiozaodolinux.com 21115-21119
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21115 port [udp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21116 port [udp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21117 port [udp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21118 port [udp/*] succeeded!
Connection to rustdesk.tiozaodolinux.com (164.152.199.42) 21119 port [udp/*] succeeded!