# VPN creation in Firewall appliance in NeevCloud

## **Step 1: Set Up a VPN User**

1. **Log in to FortiGate GUI**: Open a web browser and navigate to the IP address of\
   your FortiGate device. Enter your credentials to log in.
2. **Create a User:**

* Go to User & Device > User Definition.
* Click Create Newcreate new
* Enter a Username and Password for the new user
* Click ok

## Step 2: Configure VPN Settings

1. **IPsec VPN Wizard:**

* Go to VPN > IPsec Wizard.
* Click Create new.

2. **VPN Setup:**

* VPN Setup selection: Choose Remote Access.
* Template Type: Select FortiClient VPN (iOS/Android) or Custom, depending on your client device.
  * Name: Enter a name for your VPN (e.g., RemoteVPN).
  * Remote Device: FortiClient VPN.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FrM8zT3F2Yj8uouGP2jU2%2Fimage.png?alt=media&#x26;token=7eb00d12-67f8-4eaa-aa15-bb93b91b05e6" alt=""><figcaption></figcaption></figure>

3. **Authentication Method**:

* Incoming: Select the interface connected to the internet (e.g.,\
  wan1).
* Authentication Method: Choose Pre-Shared Key
* Pre-Shared Key: Enter a pre-shared key (password) for the VPN connection.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FuH7aKqBcZ27AqFo7i93K%2Fa6c396b7-ebd1-4fdb-8a35-c4e87355af3a.jpg?alt=media&#x26;token=52c349cf-47f0-447e-835c-660a572c00b6" alt=""><figcaption></figcaption></figure>

4. **User Group:** Under User Group, select the user group that includes the user created earlier.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FRTSvwMm5VuOMNY6mhLKh%2Fimage.png?alt=media&#x26;token=f4dc1700-d6e5-410d-8e91-73ea1489baa7" alt=""><figcaption></figcaption></figure>

4. **Network Settings:**

* Local Interface: Select the local interface (e.g., LAN).
* Local Address: Select the local network (e.g., Subnet).
* Client Address Range: Enter an IP address range that will be assigned to\
  remote VPN clients.

6. **Phase 1 & Phase 2 Settings:** Configure the encryption and authentication settings for both Phase 1 and Phase 2. **The default settings are usually sufficient, but you can customize**\
   **them based on your security requirements.**
7. **Security Policy:**  Ensure the policy for the VPN traffic is automatically created. If not, you will need to create it manually.
8. **Review & Create:** Review all the settings and click create.

## Step 3: Create Firewall Policy&#x20;

1. Policy & Objects:

* Go to Policy & object > IPV4 policy
* Click Create New

2. Firewall Policy:

* Name: Enter a name for the policy (e.g., RemoteVPN\_Policy).
  * Incoming Interface: Select the VPN interface (e.g., ssl.root)
  * Outgoing Interface: Select the LAN interface (e.g., internal).
  * Source: Select the VPN user group or IP range.
  * Destination: Select the internal network or specific resources.
  * Service: Select ALL or specify the required services.
  * Action: Set to Accept.
  * Enable NAT: If required

3. Logging Options: Enable logging for traffic if needed.
4. Save Policy: Click OK to save the policy.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FnTSh0Jrem8jqD0WE7cQO%2Fimage.png?alt=media&#x26;token=78868322-cd04-4486-9a68-a36a0f34deee" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F9wi4GahK2TGRqjgkH8XK%2Fimage.png?alt=media&#x26;token=4c769d5a-fa36-40a1-8870-c01fa8360d78" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FO0utyjfMS788ZnxKmEYy%2Fimage.png?alt=media&#x26;token=97c409c2-6a54-4d6d-b20f-f1b975e66b48" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FH8vQ3ZWN4VEioWATkyED%2Fimage.png?alt=media&#x26;token=9af52f75-7505-4861-a030-0dcb7c877ad8" alt=""><figcaption></figcaption></figure>

## Step 4: Test the VPN Connection

1. Download FortiClient:

* Download and install the FortiClient VPN application on the remote device (PC, Smartphone, etc).

2. Configure FortiClient:

* Open FortiClient and go to the Remote Access section.
  * Click Configure VPN.
  * Enter the VPN Name, Remote Gateway (public IP of FortiGate), and Pre-Shared Key.
  * Enter the username and password for the VPN user.

3. Connect: Click Connect to establish the VPN connection.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F5KkfJvvT10Asq4zYmE3H%2Fd0dd031f-58da-4e2d-8e75-b1bbcc8cdd62.jpg?alt=media&#x26;token=347b032e-0381-4131-b545-289e077afdbb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fbp8BUyI3ABEWpNLWEGhv%2Fd767dfe6-dc67-4db7-9840-811ad8ec5489.jpg?alt=media&#x26;token=530e1681-b528-4829-8559-9c1880d171d3" alt=""><figcaption></figcaption></figure>
