From 7b0b93cca1237c88de036c566d93d2d881b3f159 Mon Sep 17 00:00:00 2001 From: 21pages Date: Mon, 8 Apr 2024 15:59:40 +0800 Subject: [PATCH] format Signed-off-by: 21pages --- .../rustdesk-server-pro/faq/_index.en.md | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/content/self-host/rustdesk-server-pro/faq/_index.en.md b/content/self-host/rustdesk-server-pro/faq/_index.en.md index 15f9c8d..a19b77d 100644 --- a/content/self-host/rustdesk-server-pro/faq/_index.en.md +++ b/content/self-host/rustdesk-server-pro/faq/_index.en.md @@ -223,12 +223,11 @@ Run `cat /etc/nginx/conf.d/rustdesk.conf` to make sure its content is correct. #### 5. Enable firewall rules for the domain Run the following commands: -```bash -sudo ufw allow 80/tcp -sudo ufw allow 443/tcp -sudo ufw --force enable -sudo ufw --force reload -``` + +`sudo ufw allow 80/tcp` +`sudo ufw allow 443/tcp` +`sudo ufw --force enable` +`sudo ufw --force reload` #### 6. Generate SSL certificate @@ -302,23 +301,21 @@ Notice: Run `sudo service nginx restart` if you change the rustdesk.conf manuall ### Selinux If `Waiting for RustDesk Relay service to become active...` appears when install, it may be caused by selinux. You can try the following commands: -``` -sudo semanage fcontext -a -t NetworkManager_dispatcher_exec_t 'hbbs' -sudo semanage fcontext -a -t NetworkManager_dispatcher_exec_t 'hbbr' -restorecon -v '/usr/bin/hbbs' -restorecon -v '/usr/bin/hbbr' -``` +`sudo semanage fcontext -a -t NetworkManager_dispatcher_exec_t 'hbbs'` +`sudo semanage fcontext -a -t NetworkManager_dispatcher_exec_t 'hbbr'` +`sudo restorecon -v '/usr/bin/hbbs'` +`sudo restorecon -v '/usr/bin/hbbr'` ### Firewall -Rustdesk set fireware with `uwf`, it may not work on some distros like CentOS 9, you can try with `firewall-cmd`. +Rustdesk set firewall with `ufw`, it may not work on some distros like CentOS 9, you can try with `firewall-cmd`. -`sudo firewall-cmd --permanent --add-port=21115/tcp` -`sudo firewall-cmd --permanent --add-port=21116/tcp` -`sudo firewall-cmd --permanent --add-port=21117/tcp` -`sudo firewall-cmd --permanent --add-port=21118/tcp` -`sudo firewall-cmd --permanent --add-port=21119/tcp` -`sudo firewall-cmd --permanent --add-port=21116/udp` +`sudo firewall-cmd --permanent --add-port=21115/tcp` +`sudo firewall-cmd --permanent --add-port=21116/tcp` +`sudo firewall-cmd --permanent --add-port=21117/tcp` +`sudo firewall-cmd --permanent --add-port=21118/tcp` +`sudo firewall-cmd --permanent --add-port=21119/tcp` +`sudo firewall-cmd --permanent --add-port=21116/udp` If you use IP: @@ -326,7 +323,7 @@ If you use IP: If you use DNS/Domain: -`sudo firewall-cmd --permanent --add-port=80/tcp` -`sudo firewall-cmd --permanent --add-port=443/tcp` +`sudo firewall-cmd --permanent --add-port=80/tcp` +`sudo firewall-cmd --permanent --add-port=443/tcp` After above, run `sudo firewall-cmd --reload` to reload firewall. \ No newline at end of file