![How to connect to Surfshark in countries with internet restrictions on an iOS device?](https://surfshark.com/wp-content/uploads/2023/08/Restricted_access_VPN_iOS-1024x501.png)
在本文中,您将学习如何在 iOS 设备上设置 WireGuard 手动连接。
目录
凭证和位置
如要设置 WireGuard 手动连接,您将需要一个密钥对,并需选定您想要连接的位置,以下信息介绍了如何获取密钥对和服务器配置文件。
我有一个密钥对
- 在 iOS 设备上打开 Safari 或任意浏览器,跳转到此页面,然后登录您的账户。点击 VPN 栏,再点击手动设置,然后选择WireGuard。
![restricted connection wireguard ios 1](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-1.png)
- 点击我有一个密钥对。
![restricted connection wireguard ios 2](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-2.png)
- 输入您的公钥,并点击保存。
![restricted connection wireguard ios 3](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-3.png)
- 最后,点击选择位置,然后选择您想要连接的服务器。
![restricted connection wireguard ios 4](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-4.png)
![restricted connection wireguard ios 5](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-5.png)
注:如果您未在下载该配置文件之前生成密钥对,那么该文件的密钥对信息将为空。这种情况下,您需要另行生成一个密钥对,然后将其手动输入至缺失字段中。
我没有密钥对
- 在 iOS 设备上打开 Safari 或任意浏览器,跳转到此页面,然后登录您的帐户。点击 VPN 栏,再点击手动设置,然后选择WireGuard。
![restricted connection wireguard ios 6](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-6.png)
- 选择我没有密钥对。
![restricted connection wireguard ios 7](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-7.png)
- 点击生成新的密钥对。
![restricted connection wireguard ios 8](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-8.png)
- 在密钥对生成后,选中选择位置。
![restricted connection wireguard ios 9](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-9.png)
- 最后,选定您想要连接的服务器,并点击下载。
![restricted connection wireguard ios 10](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-10.png)
![restricted connection wireguard ios 11](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-11.png)
注:如果您未在下载该配置文件之前生成密钥对,那么该文件的密钥对信息将为空。这种情况下,您需要另行生成一个密钥对,然后将其手动输入至缺失字段中。
下载并安装 WireGuard
- 打开 App Store,输入 WireGuard,然后下载 WireGuard 应用程序。
![restricted connection wireguard ios 12](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-12.png)
连接 VPN
- 下载完成之后,打开该应用程序,选择添加通道。
![restricted connection wireguard ios 13](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-13.png)
- 找到您之前下载的配置文件,然后将其导入。
![restricted connection wireguard ios 14](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-14.png)
- 在接下来弹出的窗口中点击允许。
![restricted connection wireguard ios 15](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-15.png)
- 最后,只需切换位置旁的按钮,即可激活或禁用 VPN 连接。
![restricted connection wireguard ios 16](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-16.png)
祝贺您!现在您已知道如何在 iOS 设备上使用 WireGuard 协议设置手动连接。