# 伊朗版3X-UI面板搭建

### 33X-UI面板项目地址：<https://github.com/MHSanaei/3x-ui?tab=readme-ov-file>

### 准备工作：

> 购买VPS服务器
>
> 购买注册有效域名：[namecheap](https://www.namecheap.com/)/[namesilo](https://www.namesilo.com)
>
> 解析所需域名：[cloudflare](https://www.cloudflare.com/zh-cn/)
>
> [FinalShell SSH工具下载](https://www.hostbuf.com/t/988.html)
>
> 必要更新操作：

```markup
apt update -y                     #Debian/Ubuntu 命令
apt install -y curl               #Debian/Ubuntu 命令
apt install -y socat              #Debian/Ubuntu 命令

yum update -y                     #CentOS 命令
yum install -y curl               #CentOS 命令
yum install -y socat              #CentOS 命令
```

防火墙相关命令：

```markdown
apt install firewalld                  #Debian/Ubuntu 安装防火墙操控命令
yum install firewalld                  #CentOS安装防火墙操控命令
firewall-cmd --state                   # 查看防火墙状态
systemctl stop firewalld.service       # 停止防火墙
systemctl disable firewalld.service    # 禁止防火墙开机自启
```

**CentOS:**

{% hint style="success" %} <mark style="color:red;">**\*注意：\*\*如果是centos系统，则分别运行yum update -y和yum install -y curl socat wget**</mark>
{% 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://didousun.gitbook.io/test-2021/network-knowledge/yi-lang-ban-3xui-mian-ban-da-jian.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.
