Skip to content

Commit

Permalink
More precise "limit unwanted access" section
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio authored Oct 12, 2024
1 parent 1ff02bb commit 23c232b
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,30 @@ RestartSec=10
WantedBy=multi-user.target
```

# Limit unwanted access
# Limit Unwanted Access

To restrict access to your server, you can use the `--logged-in-only` option or set the `LOGGED_IN_ONLY=Y` environment variable for the `hbbs` server. This will limit control to logged-in users only.

Even with this option enabled, users can still register on the Rendez-vous server, but they won't be able to control another user's peer. If someone tries to control a peer without being logged in, they'll receive an error message:

<img width="524" alt="Error message for unauthenticated control attempt" src="https://github.com/user-attachments/assets/cfa46504-39d8-46a7-9072-3ece6818b4a3">

By enabling this feature, you can add an extra layer of security to your server and prevent unauthorized access.

**Configuring `LOGGED_IN_ONLY`**

To enable this feature:

1. Set the `LOGGED_IN_ONLY=Y` environment variable for the `hbbs` server.
2. Alternatively, you can use the `--logged-in-only` option when running the `hbbs` server.

**Example**

To set the `LOGGED_IN_ONLY` environment variable, you can add the following line to your `~/.bashrc` file or equivalent:
```bash
export LOGGED_IN_ONLY=Y
```

The `--logged-in-only` option or the `LOGGED_IN_ONLY=Y` environment setting is available for the hbbs server. This option will limit the control to logged in users only.
Even if this option is set users will still be able to register in the Renvez-vous server but won't be able to control another one.

# RustDesk Server Program

Expand Down

0 comments on commit 23c232b

Please sign in to comment.