![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)
In this article, you will learn how to set up a manual WireGuard connection on your iOS device.
Table of contents
Credentials and locations
For any manual WireGuard connection you will need to have a key pair and a location to which you would like to connect selected, below you will find information on how to get the key pair as well as the server configuration file.
I have a key pair
- Open Safari, or any browser on your iOS device, go to this page, and log into your account. Click on the VPN section, then Manual Setup, and finally select WireGuard.
![restricted connection wireguard ios 1](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-1.png)
- Click on I have a key pair.
![restricted connection wireguard ios 2](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-2.png)
- Enter your public key and hit Save.
![restricted connection wireguard ios 3](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-3.png)
- Finally hit Choose a Location and select a server to which you like to connect.
![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)
Note: If you do not generate key pair before downloading the configuration file, the file will be missing your key pair. In such cases, you will need to generate a key separately and input it manually into missing fields.
I don’t have a key pair
- Open Safari, or any browser on your iOS device, go to this page, and log into your account. Click on the VPN section, then Manual Setup, and finally select WireGuard.
![restricted connection wireguard ios 6](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-6.png)
- Select I don’t have a key pair.
![restricted connection wireguard ios 7](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-7.png)
- Click on Generate a new key pair.
![restricted connection wireguard ios 8](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-8.png)
- Once the key pair has been generated, select Choose a Location.
![restricted connection wireguard ios 9](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-9.png)
- Lastly, select a server to which you like to connect and click Download.
![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)
Note: If you do not generate key pair before downloading the configuration file, the file will be missing your key pair. In such cases, you will need to generate a key separately and input it manually into missing fields.
Download and install WireGuard
- Open the App Store, type in WireGuard and download the WireGuard application.
![restricted connection wireguard ios 12](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-12.png)
Connect to the VPN
- Once the download is finished, open the application and select Add a tunnel.
![restricted connection wireguard ios 13](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-13.png)
- Find the configuration file you’ve downloaded earlier and import it
![restricted connection wireguard ios 14](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-14.png)
- In the next pop-up, click Allow.
![restricted connection wireguard ios 15](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-15.png)
- Lastly, to connect or disconnect from the VPN, toggle the button next to the location.
![restricted connection wireguard ios 16](https://surfshark.com/wp-content/uploads/2023/08/restricted-connection-wireguard-ios-16.png)
Congratulations! Now you know how to set up a manual connection on your iOS device using the WireGuard protocol.