# Configure Proxy

This section explains how to view available proxies, filter by location, forward proxies to ports, and check your forwarding list.

## 1. View the Proxy Forwarding Interface

To open the proxy forwarding interface, type:

```
9proxy proxy -u
```

You will see a list of available proxies from your account.

To filter proxies by location or ISP:

* Press F.
* Choose your desired filter criteria (Country, State, City, ZIP code, or ISP).
* Press **Done** to apply filters.

## 2. Forward a Proxy to Ports

From the proxy list, use the arrow keys to select the proxy you want, then press Enter.

You will see two options:

<table data-header-hidden><thead><tr><th width="186.5"></th><th></th></tr></thead><tbody><tr><td><strong>Forward to all ports</strong></td><td>Forwards the selected proxy to all ports within your configured port range. (See Port Configuration for setup instructions.)</td></tr><tr><td><strong>Forward to a port</strong></td><td>Forwards a single proxy to one specific port in your port range.</td></tr></tbody></table>

Select your preferred option and press Enter.

Once done, the proxy will be successfully forwarded to the chosen port(s).

## 3. Quick Commands for Proxy Forwarding

If you prefer using terminal commands, you can forward proxies directly without opening the UI.\
This is useful for automation, scripting, or quick setups on headless Linux servers.

Each command follows this structure:

<pre data-overflow="wrap" data-line-numbers><code>//command

9proxy proxy [options]

[options]: 
-c : Specify the country of the proxy you want (e.g., US, VN, UK).
-p : Specify the port number to forward the proxy to.
-n : Use a proxy from the Today List (proxies you’ve used in the last 24 hours).

### Example 1: Forward a US Proxy to a Specific Port

9proxy proxy -c US -p 60000

# This command forwards a US residential proxy to port 60000.
# Use when you want a proxy from a specific country.
# The proxy will immediately start running on 127.0.0.1:60000.

# How to test:
curl -x socks5://127.0.0.1:60000 https://ipinfo.io/json

# If successful, the result will show an IP address located in the United States.

### Example 2: Forward Any Random Proxy

9proxy proxy -p 60000

# This binds a random available proxy (any country) to port 60000.
# Use when location doesn’t matter
# The proxy connects immediately once assigned.
# Tip: If you want multiple random proxies, just change the port number each time ## (e.g., 60001, 60002, …).

### Example 3: Forward a Proxy from the Today List

9proxy proxy -n -p 60000

<strong># This reuses a proxy that was previously active within the last 24 hours.
</strong><strong># Saves IPs because you don’t consume new ones.
</strong><strong># Ideal if you want to reconnect to the same session as earlier.
</strong># Your proxy from the Today List is now active again on port 60000.

</code></pre>

## 4. View Forwarding List

To see all proxies currently forwarded to ports, use:

```

9proxy proxy -n -u

```

This displays all proxies you’ve forwarded, along with their assigned ports and status.

## 5. Other Useful Commands

| Command                                          | Description                                                      |
| ------------------------------------------------ | ---------------------------------------------------------------- |
| <mark style="color:green;">9proxy -h</mark>      | View all available CLI commands and parameters.                  |
| <mark style="color:green;">9proxy api</mark>     | Access API-related commands.                                     |
| <mark style="color:green;">9proxy auth</mark>    | Manage authentication and account information.                   |
| <mark style="color:green;">9proxy port</mark>    | Configure and manage port settings.                              |
| <mark style="color:green;">9proxy proxy</mark>   | The main command for viewing, filtering, and forwarding proxies. |
| <mark style="color:green;">9proxy setting</mark> | Open the configuration settings for 9Proxy.                      |

{% hint style="info" %}

## &#x20;Note

* Ensure your port range is configured before forwarding proxies.
* The Today List shows proxies used in the last 24 hours - forwarding from here allows you to reuse active proxies without extra cost.
* For help, type 9proxy -h or contact support.
  {% endhint %}


---

# 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.9proxy.com/getting-started/residential-proxy-by-ips/for-linux/configure-proxy.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.
