# VPN Access

<figure><img src="https://1542818622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsYaOURvSKmQ57SN2CBT%2Fuploads%2FNenzozkW4rkZNuNhZ1Fj%2Fimage.png?alt=media&#x26;token=633d54cd-bafa-43ec-b16a-345662bad6e4" alt=""><figcaption></figcaption></figure>

## Program VPN servers

### 1. Viewing VPNs

1. Go to the program policy page and choose the **Credentials & VPN** tab.
2. You will see a list of VPN servers that the company has created.
3. Click on "View Server Configuration" to see the VPN configuration details.

<figure><img src="https://1542818622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsYaOURvSKmQ57SN2CBT%2Fuploads%2Fyoj7UVDiWJmWG3JUejRL%2Fimage.png?alt=media&#x26;token=57cee615-19bf-4558-9113-d7fa7d0bbfbd" alt=""><figcaption></figcaption></figure>

## 2. **Downloading VPN Configuration**

1. To obtain the OpenVPN configuration file, click on **"Download Configuration File"** button.

<figure><img src="https://1542818622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsYaOURvSKmQ57SN2CBT%2Fuploads%2FiXUHQs7AhdBeIgwaHUVg%2Fimage.png?alt=media&#x26;token=56aaccb6-aa80-4973-85a7-5b4b3aff6869" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Learn[ how to connect to VPN using the config file here.](#connecting-to-vpn-using-the-config-file)
{% endhint %}

## 3. **Understanding VPN Configuration Details**

1. **Server Name:** This is the name given to the VPN server.
2. **Server Status:** Indicates whether the VPN server is currently running, stopped, or in the process of deploying.
3. **Rate Limit:** This refers to the maximum number of requests per minute allowed through the VPN, ensuring fair usage and server stability.
4. **Countries:** Lists the countries from which you are allowed to access the VPN.
5. **Accessible Assets:** Shows the specific domains (assets) you are permitted to test. Each domain includes:

   * **Asset:** The specific domain or asset you have access to.
   * **Active Time Period:** The time range during which the asset is available for testing.\ <mark style="color:red;">**NOTE: All time range is in UTC timezone.**</mark>
   * **Blacklist Routes:** Any API routes or paths that are off-limits, even when connected to the VPN.<br>

   <figure><img src="https://1542818622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsYaOURvSKmQ57SN2CBT%2Fuploads%2Fe7NS9vQZPmmxxJQUpTiv%2Fimage.png?alt=media&#x26;token=927c5f67-7885-4371-9157-cd54bb573848" alt=""><figcaption></figcaption></figure>

## Connecting to VPN using the config file

Once you have .ovpn file downloaded ( config file ). Follow the below steps:

1. Add the domains/in-scope targets of the program to your /etc/hosts file
   1. Example: *docs.google.com* and *bugbase.in* are the domains/in-scope targets in the VPN configuration. Check [here for the accessible assets](#id-3.-understanding-vpn-configuration-details).
   2. Lookup the DNS resolution of the target domains.<br>

      <figure><img src="https://lh7-us.googleusercontent.com/m4H_HUrSexvS8WZdxTPF3-kCobrUcSswbMMaEhlETRReQNTtnPcfpKubtgZfczaEgDntJ4p-5ppFiakw-1bx-RRAbwOoIKiSWbUU4Ia-Wof_eF5SrjlkCOn96xsepoL6uf9hCcsZ23qVpAAjAI60tR8" alt=""><figcaption></figcaption></figure>

      <figure><img src="https://lh7-us.googleusercontent.com/2q9dSouTrsQiV0UdhOkkvmIa9RE4wh-XXYABxSWLWANLkpNBrEaGGQoAQllF27KBSGUZQiVva1uG6hpxNzY9w2KJbn4eCAzOjGFCeilDsOb_Wzypo89tCYmPNj31fBofqDspsLFOFjZxX4W9GgNnvko" alt=""><figcaption></figcaption></figure>
   3. Add the Addresses to the /etc/hosts for your linux systems or the corresponding local resolution files for Windows and MacOS.<br>

      <figure><img src="https://lh7-us.googleusercontent.com/xqnodjs48p9kmo2JrO_0SbDNwQtf0N2YWxvmLPUovvSUlZCWh3YTyhYIJWapksaAcqu6GwQjhqNNDgwBPyDKFxDZT3Yf74I0g55mjlWN0iqwsPi94BKOead5QoL5ef0_Nmex90Ab3TPVQmmWmJ8WXJ8" alt=""><figcaption></figcaption></figure>
   4. Connect to VPN Server using the .ovpn file with sudo permissions.
   5. Confirm a valid connection by checking the newly assigned IP on the tun interface.
      * \`ip a\` - Linux User
      * \`ipconfig\` - Windows User
      * \`ifconfig\` - MACOS
   6. Confirm additions of the domains/targets to the routing table
      * Linux users can use the `route` command to do this
      * MacOS Users can use \``netstat -rn`\` command to do the same
      * Windows users can use \``route print`\`
   7. In case the target domains are not live or do not have a valid IP address on Lookup, the IP will be separately mentioned in the Program description

{% hint style="info" %}
Please wait approximately 2-5 minutes before starting testing to ensure a smooth experience.
{% endhint %}
