# Network rules

To lock down the communication in between the reverse proxy and SonarQube, you can define the following network rules:

| Protocol | Source        | Destination | Port                | Default |
| -------- | ------------- | ----------- | ------------------- | ------- |
| TCP      | Reverse Proxy | SonarQube   | `sonar.web.port`    | 9000    |
| TCP      | SonarQube     | SonarQube   | `sonar.search.port` | 9001    |
| TCP      | SonarQube     | SonarQube   | `sonar.es.port`     | random  |

You can further segment your network configuration if you specify a frontend network and keep Elasticsearch restricted to the loopback NiC.

| Network       | Parameter           | Description           | Default   |
| ------------- | ------------------- | --------------------- | --------- |
| Frontend      | `sonar.web.host`    | Frontend HTTP Network | 0.0.0.0   |
| Elasticsearch | `sonar.search.host` | Elasticsearch Network | 127.0.0.1 |

For information about the parameters, see [List of properties common to all editions](/sonarqube-server/2025.5/server-installation/system-properties/common-properties.md).

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Reverse proxy and network security](/sonarqube-server/2025.5/server-installation/network-security/securing-behind-proxy.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/2025.5/server-installation/network-security/network-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
