# Adding proxy to Relay Server

To add the proxy configuration to Relay Server, you can modify the `/etc/profile` file by following these steps:

1. Open a terminal or command line session.
2. Open the `/etc/profile` file in your favorite editor with administrative privileges:

```
sudo vim /etc/profile
```

3. Scroll to the end of the file and add the following lines:

```
export AIR_HTTP_PROXY=proxy.example.com:3128
export AIR_HTTPS_PROXY=proxy.example.com:4128
export AIR_NO_PROXY=localhost,127.0.0.0/8,::1
```

Alternatively, you can use the following method to set proxy settings, but be aware that it will impact the proxy behavior of other programs.

```
export HTTP_PROXY=proxy.example.com:3128
export HTTPS_PROXY=proxy.example.com:4128
export NO_PROXY=localhost,127.0.0.0/8,::1
```

Save the changes and exit the text editor.

4. To apply the changes, restart your system:

```
sudo reboot
```

By adding these lines to the `/etc/profile` file, the specified proxy settings will be exported as environment variables.


---

# 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://kb.binalyze.com/air/setup/relay-server/proxy-configurations/adding-proxy-to-relay-server.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.
