# Secure the XProxy Dashboard: Password &amp; IP Whitelist

> For AI tools: this is the Markdown copy of https://xproxy.io/document/secure-your-dashboard. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Protect your XProxy dashboard with a password, an IP whitelist or domain-only access. Also change the SSH password and the dashboard port.

Protect your XProxy dashboard with a password, an IP whitelist or domain-only access. You set it up in **General Settings → System Setting → Security**, and the SSH password and the dashboard port are in the same page.

**You need:** the dashboard open on your local network. Dashboard password, IP whitelist and domain-only access are included on every plan, Free too ([Pricing](https://xproxy.io/pricing)).

In short

**Password first**

Switch on **Dashboard Auth** and set a username and password. The IP whitelist, Force LAN Auth and Tailscale options all need it.

**Narrow who can reach it**

Add your IPs to the whitelist, or switch on **Domain Only** to refuse visits by IP address.

**Do not lock yourself out**

Change one setting at a time. Check that you can still open the dashboard before you close the window.

## How do I protect the dashboard?

**Step 1: Switch on Dashboard Auth and set the login (Password)**

Open **General Settings → System Setting** and click the **Security** tab. In **Password Authentication for dashboard**, switch **Dashboard Auth** on.

Type a **Username** and a **Password**, then click **Save**.

![System Setting, Security tab: Dashboard Auth switch, Username, Password and Save marked in Password Authentication for dashboard (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-pass-v1.webp)

> The username and password are saved together. If one is empty, the panel refuses to save and tells you which one is missing.

**Step 2: Optional: Force API Auth and Tailscale (Password)**

**Force API Auth**: the rotation and status links, and the rest of the [REST API](https://xproxy.io/docs/api), then ask for your login too.

**Tailscale**: devices on your [Tailscale network](https://xproxy.io/document/tailscale-zerotier-remote-access) open the dashboard without the login.

Save a username and password first. Tailscale needs Dashboard Auth to be on, and your scripts need a login to send with every call.

![System Setting, Security tab: Force API Auth and Tailscale switches marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-pass-v1.webp)

> Leave Force API Auth off if your bots call the rotation links without a login. See [what the two Force switches do](#force-api-lan).

**Step 3: Turn on IP Auth and list your IPs (IP whitelist)**

In the same **Security** tab, scroll to **Whitelist IP Authentication for dashboard**. Switch **IP Auth** on.

Under **Whitelist IPs**, type one IP address or subnet per line, for example `203.0.113.25` or `198.51.100.0/24`. Click **Save**.

Anyone on the list opens the dashboard without typing the password.

![System Setting, Security tab: IP Auth switch, Whitelist IPs box with two example addresses, and Save marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-ip-v1.webp)

> IP Auth needs Dashboard Auth first. Without a saved username and password the panel answers: *Need enable Password Authentication when Whitelist IP Authentication enabled!*

**Step 4: Optional: Force LAN Auth (IP whitelist)**

By default, a device on your own network does not need the password. Switch **Force LAN Auth** on to make it log in too.

The label says **Enable when selling proxies**: your customers can then not open the panel from inside your network by accident.

![System Setting, Security tab: Force LAN Auth switch marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-ip-v1.webp)

> Force LAN Auth needs Dashboard Auth too. Log in once yourself before you close the window.

**Step 5: Check that you can open the dashboard with a domain (Domain only)**

Domain-only access refuses every visit that uses an IP address. Before you switch it on, open the dashboard once with a domain name. A [Dynamic DNS](https://xproxy.io/document/dynamic-dns-setup) name or a Cloudflare name both work.

The warning box says the same: set the domain up first, so you do not lock yourself out.

![System Setting, Security tab: the Domain-Only Dashboard Access warning marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-domain-v1.webp)

> An address like `http://192.168.1.86` is blocked once the switch is on, also from your own network.

**Step 6: Switch Domain Only on (Domain only)**

In **Domain-Only Dashboard Access**, switch **Domain Only** on and click **Save**.

A visit by IP address now gets a **403 Access Denied** page. A visit by domain name works as before.

![System Setting, Security tab: Domain Only switch and Save marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-domain-v1.webp)

> The box itself (localhost) is never blocked, so the panel keeps working for the programs on the box.

**Step 7: Pick the user and type the passwords (SSH password)**

In **SSH Password Management**, pick the **Select User**: the account you log in with over SSH.

Type the **Current Password**, then the **New Password** and **Confirm Password**. Click **Change Password**.

![System Setting, Security tab: SSH Password Management with the user, three password fields and Change Password marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-ssh-v1.webp)

> The new password needs at least 6 characters, and Confirm must match. This is the Linux password of the box, not the dashboard login.

**Step 8: Pick a new port and save (Port)**

Open the **Advanced** tab. In **Default dashboard port**, type a number in **Port number**. The default is `80`. Click **Save**.

The XProxy app restarts. Then open the dashboard with the port, for example `http://192.168.1.86:8080`.

![System Setting, Advanced tab: Default dashboard port set to 8080 with Save marked (demo data)](https://media1.xproxy.io/docs/panel-settings/sec-port-v1.webp)

> The port must be between 80 and 65535. Update your bookmarks and any API or rotation links that use the old port.

## Who can open the XProxy dashboard?

The box checks every visit in this order. The first rule that fits lets the visitor in.

| The visitor is | What it needs |
| --- | --- |
| The box itself (localhost) | Nothing. |
| A device on your Tailscale network | Nothing, only when the **Tailscale** switch is on. |
| Someone with the right username and password | The login you saved, only when **Dashboard Auth** is on. |
| A device on your local network (an address like `192.168.x.x` or `10.x.x.x`) | Nothing, unless **Force LAN Auth** is on. |
| An IP address on your whitelist | Nothing, only when **IP Auth** is on. |
| Anyone else | Refused. The panel answers 401. |

Visits that come in through [VPS Forwarding](https://xproxy.io/document/vps-forwarding-to-use-difference-place) never get the local network, whitelist or Tailscale shortcut. They always need the username and password.

## What do Force API Auth and Force LAN Auth do?

| Switch | When it is off | When it is on |
| --- | --- | --- |
| **Force API Auth** (*Basic auth for all API*) | The rotation, status and reboot links work without a login, from anywhere. | Every API call needs your login. A device on your local network, a whitelisted IP and (if allowed) a Tailscale device still pass without it. |
| **Force LAN Auth** (*Enable when selling proxies*) | A device on your local network opens the dashboard and the API without a login. | That device needs the login too. |

Rotation and status links are explained in [How to change the IP](https://xproxy.io/document/how-change-rotate-ip). The login is the same **Basic** username and password as in the [REST API](https://xproxy.io/docs/api).

**Not the same as the proxy login.** The dashboard login protects the panel. The username and password that customers type into a browser or tool belong to your proxies, see [Proxy Settings](https://xproxy.io/document/proxy-settings).

## Can I let another person manage the box?

Yes, with Tailscale. After you connect the box to Tailscale, a **Share Device to another Email** button appears next to its status. It opens the Tailscale admin console, where you send an invite to that person's email. The steps are in [Remote access with Tailscale or ZeroTier](https://xproxy.io/document/tailscale-zerotier-remote-access).

## What do the error messages mean?

| You see | What to do |
| --- | --- |
| *Need enable Dashboard Authentication when filled Username/Password!* | Switch **Dashboard Auth** on, or clear the username and the password. |
| *Need fill Username/Password when enabled Dashboard Authentication!* | Type both a username and a password. |
| *Need enable Password Authentication when Whitelist IP Authentication enabled!* (also for Force LAN Auth and Tailscale) | Save a dashboard login first. These options sit on top of it. |
| A page **Access Denied** with a 403 | **Domain Only** is on. Open the dashboard with its domain name instead of the IP address. |
| *Current password is incorrect* | The SSH change needs the current Linux password of the user you picked. |
| *Please choice the port in the range (80-65535)* | Pick a port number from 80 to 65535. |
| *Unauthorized. Your IP: …* from an API call | The call came from an IP that is not on the list. Add your login to the call, or add the IP to the whitelist. |

## FAQ

### How do I set a password on the XProxy dashboard?

Open **General Settings → System Setting → Security**, switch **Dashboard Auth** on, type a username and a password and click **Save**. Devices outside your local network now need that login.

### How do I open the dashboard from the internet safely?

Use a password at least. Add an IP whitelist for fixed places like your office, or switch on **Domain Only** so a visit by IP address is refused. You can also skip open ports and reach the box through [Tailscale](https://xproxy.io/document/tailscale-zerotier-remote-access). To publish the box, see [NAT Forwarding](https://xproxy.io/document/how-public-access-xproxy) or [VPS Forwarding](https://xproxy.io/document/vps-forwarding-to-use-difference-place).

### What is the difference between the IP whitelist and domain-only access?

The whitelist lets chosen IP addresses in without the password. Domain-only refuses every visit that uses an IP address, whoever it comes from, and only allows a domain name. They solve different problems, and you can use both.

### How do I change the SSH password of my proxy box?

Use **System Setting → Security → SSH Password Management**. Pick the user, type the current password and the new one twice. The new password needs at least 6 characters.

### Does the dashboard port change my proxy ports?

No. The **Default dashboard port** (80 unless you change it) is only the address of the panel and its API. Your proxy ports are separate, see [Proxy Settings](https://xproxy.io/document/proxy-settings).

## What next?

Reach the box from outside, call it from code, or find it on your network again.

[Tailscale remote access →](https://xproxy.io/document/tailscale-zerotier-remote-access) [REST API →](https://xproxy.io/docs/api) [Open the dashboard →](https://xproxy.io/document/how-access-dashboard-xproxy) [Proxy login &amp; whitelist →](https://xproxy.io/document/proxy-settings)

---

Source: https://xproxy.io/document/secure-your-dashboard
