# Android客户端连接配置

<mark style="color:red;">安卓12以上的版本，请使用</mark>[<mark style="color:green;">OpenVPN</mark>](https://gfw.gitbook.io/vpn/multi-platform)

## 1.追加vpn配置

&#x20;点击`Settings`（设置）.

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpCylLdgu4TJuqYNw%2Fandroid01.jpg?alt=media\&token=400ad701-3f36-4a6b-83f8-58f6cb3e68da)

在`Wireless & Networks`(WIFI)目录,

点击 `More...`(更多) ,然后选择 `VPN`.

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpMAhXBpzAHxyQaaK%2Fandroid02.jpg?alt=media\&token=0722b73e-5168-4bdb-8dd6-b26dc1885717)

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpRCZ2FaWwsPuXLgy%2Fandroid03.jpg?alt=media\&token=5147102e-981d-4fe9-98c8-7cc43e52e25d)

&#x20;点击`Add VPN profile`（追加vpn）来创建vpn连接设置.

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpY6PmrvK_tGEvpkS%2Fandroid04.jpg?alt=media\&token=7596719e-ed75-442c-9c9d-e5fe1c62c2e2)

&#x20;编辑`vpn`配置文件

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpeQ8zqv0rC1hURlq%2Fandroid05.jpg?alt=media\&token=dda33311-a839-4b2b-8fd4-6c9093c847c2)

&#x20;选择`Show advanced options`(显示更多),可以打开更多选项

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpkZ8T8ICLwqEbI_O%2Fandroid06.jpg?alt=media\&token=0f5251b7-ab6a-434f-8787-041c02742aee)

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQpuLcJikwxuktSjOp%2Fandroid07.jpg?alt=media\&token=72ed0020-7c9d-4477-b499-a871c4de8784)

&#x20;在配置里面，填入如下信息：

{% hint style="info" %}
&#x20;`Name`(名字)：
{% endhint %}

{% hint style="info" %}
&#x20;`Type`(类型): **`L2TP/IPSec PSK`**
{% endhint %}

{% hint style="info" %}
&#x20;`Server address`(服务器)：
{% endhint %}

{% hint style="info" %}
&#x20;`IPSec pre-shared key`(预共享密钥)：
{% endhint %}

{% hint style="info" %}
&#x20;`Forwarding routes`(路由转发):**0.0.0.0/0**
{% endhint %}

{% hint style="info" %}
&#x20;`Username`(账号)：
{% endhint %}

{% hint style="info" %}
&#x20;`Password`(密码)：
{% endhint %}

> &#x20;以上信息在申请账号时，会发送邮件到您的邮箱.

## 2.连接vpn

选择刚才创建的vpn配置,然后就可以连接vpn使用了.

查看连接状态,确认连接是否成功.

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQp3d_JzZ4A1nCrCHE%2F-LMQqkPLVKpNivC3JVtS%2Fandroid08.jpg?alt=media\&token=7096cdf5-46fa-41b7-98aa-a4e1dff609b6)


---

# 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://gfw.gitbook.io/vpn/android-conf.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.
