> For AI agents: the complete documentation index is available at https://www.jumpserver.com/docs/v4/llms.txt, the full documentation bundle is available at https://www.jumpserver.com/docs/v4/llms-full.txt.

# Endpoint rules

Endpoint rules define how the system selects service endpoints based on rules when users connect to assets. By configuring endpoint rules, you can control and optimize access to assets, ensuring that users connect through the most appropriate endpoints based on predefined conditions.

For the server endpoint selection strategy, there are currently two options:

1. Specify the endpoint according to the endpoint rule (current page);
2. Choose the endpoint through asset tags, with the fixed tag name being "endpoint" and the value being the name of the endpoint.

The tag matching method is preferred for both methods, as the ip range may conflict, and the tag method exists as a supplement to the rules.

### Create endpoint rule


1

In the right area of the top navigation bar, click .

![image](/docs/images/docs/navs/nav-settings.png)

2

In the left menu, click **<Icon name="TerminalSet" /> Components**.

3

On the right page, click **Endpoint rules** tab.

4

Click **+ Create**.

5

In the **Name** field, type a name for the endpoint rules.

6

In the **Priority** field, type the priority of the endpoint rules. The lower the value, the higher the priority.

7

In the **Address** field, type the IP address or IP segment of the asset to be matched by the endpoint rules.

8

In the **Endpoint** field, select the endpoint to be used when the asset matches the address.

9

Click **Submit**.
