> For the complete documentation index, see [llms.txt](https://n000b3r.gitbook.io/oscp-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n000b3r.gitbook.io/oscp-notes/misc/configuring-nordvpn-to-vm.md).

# Configuring NordVPN to VM

<details>

<summary>On Windows Machine (With NordVPN)</summary>

* Open elevated cmd.exe, run following commands:
  * IP Forwarding on Windows Host
    * ```
      netsh interface ipv4 set interface "NordLynx" forwarding=enabled
      ```

  * Add routing rule on Windows Host to forward traffic from VM's NAT network thru VPN interface
    * ```
      route add [NAT_SUBNET] mask [SUBNET_MASK] [VPN_INTERFACE_IP]
      route add 192.168.1.0 mask 255.255.255.0 10.5.0.2
      ```

</details>

<details>

<summary>On Vmware Workstation</summary>

* Go to Edit --> Virtual Network Editor

![](/files/EnGOYMgj1LWVHjn9M8z7)

* Create a new NAT network -> "Add Network" -> Select NAT, put in NAT IP range (use ipconfig) if unsure -> "Apply" -> "Ok"

  <figure><img src="/files/d7SSHgyykojKFLHjapu6" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>On Linux VM</summary>

* Connect to IP -> Is VPN IP

![](/files/v43R9DgSc8szX2gYVX21)

&#x20;

</details>
