rustdesk-server icon indicating copy to clipboard operation
rustdesk-server copied to clipboard

force to use relay server

Open bagherfathi opened this issue 2 years ago • 6 comments

hi is it an option in configuration or a tricky solution to prevent RustDesk from a p2p connection and force it to pass all traffic through the relay server? thanks

bagherfathi avatar Jun 03 '23 05:06 bagherfathi

hi is it an option in configuration or a tricky solution to prevent RustDesk from a p2p connection and force it to pass all traffic through the relay server? thanks

variable binary description
ALWAYS_USE_RELAY hbbs if set to "Y" disallows direct peer connection

DoM1niC avatar Jun 08 '23 08:06 DoM1niC

thank you @DoM1niC

bagherfathi avatar Jun 09 '23 09:06 bagherfathi

@bagherfathi Do you make it? I don't know how to set the 'ALWAYS_USE_RELAY'.PLEASEA HELP ME!!!

lamithe avatar Jul 09 '23 15:07 lamithe

@bagherfathi Add: I have already used the '-k' parameter when run the hbbs and hbbr , but it dont work.All I get is p2p connection without using relay

lamithe avatar Jul 09 '23 15:07 lamithe

@bagherfathi Do you make it? I don't know how to set the 'ALWAYS_USE_RELAY'.PLEASEA HELP ME!!!

[root@sh ~]# cat /usr/lib/systemd/system/hbbs.service

[Unit]
Description=rustdesk server hbbs
After=network.target network-online.target

[Service]
......
Environment="ALWAYS_USE_RELAY=Y"
WorkingDirectory=/data/rustdesk
ExecStart=/usr/local/bin/hbbs --config hbbs.conf
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

wxlg1117 avatar Jul 22 '23 17:07 wxlg1117