---
url: https://eoht.net/vps/tools/streaming-unlocked.md
description: >-
  本文介绍 RegionRestrictionCheck 流媒体解锁检测脚本，说明支持的 Linux、macOS、Termux 平台，以及
  IPv4、IPv6、指定网卡、语言和区域参数，并给出 Docker 用法与系统依赖安装命令；同时提醒 Netflix CDN 分流结果会受 VPN 和
  DNS 解析影响。
---

# VPS 流媒体解锁检测教程：一键脚本、参数与 Docker 用法 {#check-streaming-unlock-on-vps}

## 支持 OS/Platform {#supported-operating-systems-and-platforms}

* CentOS 6+
* Ubuntu 14.04+
* Debian 8+
* MacOS
* Android with Termux

::: tip 注意事项
Netflix CDN 分流测试依赖 DNS 解析。而如果您使用的本地设备开了 VPN 代理进行测试，将无法得到正确的 CDN 分流信息。
:::

<Links
:grid="2"
:items="[
 {
   icon: { icon: 'cib:github', color: { light: '#000', dark: '#fff' } },
   name: 'GitHub 项目地址',
   link: 'https://github.com/lmc999/RegionRestrictionCheck'
 }
]"
/>

## 使用脚本前请确认 curl 已安装 {#install-curl-before-running}

```sh
bash <(curl -L -s check.unlock.media)
```

## 使用方法 {#run-streaming-check-script}

::: code-group

```sh [只检测IPv4结果]
bash <(curl -L -s check.unlock.media) -M 4
```

```sh [只检测IPv6结果]
bash <(curl -L -s check.unlock.media) -M 6
```

```sh [指定检测的网卡名称]
bash <(curl -L -s check.unlock.media) -I eth0
```

```sh [选择脚本语言为英文]
bash <(curl -L -s check.unlock.media) -E en
```

```sh [直接测试指定的区域编号]
bash <(curl -L -s check.unlock.media) -R 0
```

:::

## Docker 安装 (兼容 ARM 架构) {#install-with-docker-on-arm}

```sh
docker run --rm -ti --net=host lmc999/regioncheck && docker rmi lmc999/regioncheck > /dev/null 2>&1
```

## 安装依赖 {#install-docker-dependencies}

::: code-group

```sh [Ubuntu/Debian]
sudo apt install curl openssl ca-certificates -yq
# 可选依赖
sudo apt install uuid-runtime dnsutils -yq
```

```sh [RHEL]
sudo dnf install curl openssl
# 可选依赖
sudo dnf install bind-utils
```

```sh [Android Termux]
pkg up -yq
pkg install curl openssl openssl-tool ca-certificates -yq
# 可选依赖
pkg install uuid-utils dnsutils -yq
```

```sh [iOS iSH / Alpine Linux]
apk add curl bash grep openssl ca-certificates uuidgen
```

```sh [macOS]
brew install curl openssl md5sha1sum coreutils
```

```sh [Windows]
# 可以使用 Cygwin 或者 Git Windows 最新版本。 如果使用 Git Windows，请确认安装 powershell 用于生成 uuid。请确认使用最新版本的 curl (>=8.8.0) 以避免遇到段错误。
```

```sh [OpenWRT]
opkg update
opkg install grep
```

:::
