> For the complete documentation index, see [llms.txt](https://gfw.gitbook.io/vpn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gfw.gitbook.io/vpn/mac-conf.md).

# Mac客户端连接配置

该方法使用L2TP连接，性能不如OpenVPN，但不需要下载软件和配置文件，非常方便

## 1.追加vpn配置

追加网络配置

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQr8PZwCfglnpd5nCt%2F-LMQrJgJutb2ADjvARfd%2Fmac01.jpg?alt=media\&token=f54accfe-3557-4e59-ab6f-57566aa23d38)

&#x20;点击`+`

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQr8PZwCfglnpd5nCt%2F-LMQrPWhZ5IJgDWoDlrA%2Fmac02.jpg?alt=media\&token=f5e753ab-02fc-4673-8d31-994fda0708ab)

选择

`Interface:VPN`

`VPN Type`:`L2TP over IPsec`

点击`Create`(创建).

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQr8PZwCfglnpd5nCt%2F-LMQrVr38CRUJGV6L73n%2Fmac03.jpg?alt=media\&token=43beffd7-95a9-47c3-88a2-86b5ace8ad12)

&#x20;填入如下信息

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

{% hint style="info" %}
&#x20;`Account Name`(账号):
{% endhint %}

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

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQr8PZwCfglnpd5nCt%2F-LMQrk5fSItkBmDY7QZu%2Fmac04.jpg?alt=media\&token=5c855f87-39cc-430e-a92c-c5bc383bc1cc)

点击`Authentication Settings...`,

填入如下信息.

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

{% hint style="info" %}
&#x20;`Shared Secret`(预共享密钥):
{% endhint %}

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

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQr8PZwCfglnpd5nCt%2F-LMQs1OfeeiScLTUJiDG%2Fmac05.jpg?alt=media\&token=4155ad67-3a99-4a28-9271-e254393c4085)

点击`OK`(确认)保存认证信息后，

会自动返回到`Network`.+

点击`Advanced...` (显示更多)后,

选择`Send all traffic over VPN connection`(发送所有流量).

![](https://1412852348-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMPurLTfi_qqn-BgHJ9%2F-LMQr8PZwCfglnpd5nCt%2F-LMQs8FPjMphi06Tp2M1%2Fmac06.jpg?alt=media\&token=de2c13d4-8157-40f6-824e-7629391593f8)

## 2.连接vpn

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

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