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

force to use relay server #253

Open
bagherfathi opened this issue Jun 3, 2023 · 5 comments
Open

force to use relay server #253

bagherfathi opened this issue Jun 3, 2023 · 5 comments
Labels
question Further information is requested

Comments

@bagherfathi
Copy link

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 bagherfathi added the question Further information is requested label Jun 3, 2023
@DoM1niC
Copy link

DoM1niC commented Jun 8, 2023

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

@bagherfathi
Copy link
Author

thank you @DoM1niC

@lamithe
Copy link

lamithe commented Jul 9, 2023

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

@lamithe
Copy link

lamithe commented Jul 9, 2023

@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

@wxlg1117
Copy link

wxlg1117 commented Jul 22, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants