Why do we need it?

If we do NOT have site to site IPSEC VPN or Fast connect connection; this solution helps in establishing connectivity from OnPrem datacenter to OCVS SDDC. End users on their local machines can install SSP VPN client and establish connectivity.

Use case

  • If we do not have site to site IPSEC VPN connectivity from OnPrem to OCVS SDDC; we can use this solution
  • During DR if we do not have Bastion host, this solution will allow us to connect to OCVS SDDC.
  • End users can login the OCVS VM’s / access hosted applications on OCVS from home network.

Setup Overview

  • Configure OpenVPN on OCI
  • Install and configure OpenVPN client on (OnPrem) windows 10 instance
  • Establish connectivity between NSX-T overlay segment and OpenVPN server

Green dashed lines indicate the workflow from client machine to NSX-T overlay VM

Connecting to NSXT over VM

Detailed steps

Deploying OpenVPN Server on OCI

There are couple of ways of deploying OpenVPN Server on OCI.

Allow below ports on Security list for communication

Incoming

  • TCP 22 (SSH)
  • TCP 443 (web interface)
  • TCP 943 (web interface)
  • TCP 945 (API port for clustering feature)
  • UDP 1194 (UDP port for client communication)

Allow all outgoing traffic.

Configuring OpenVPN server

  • SSH OpenVPN server and view /usr/local/openvpn_as/init.log to verify login credentials

SSH OpenVPN server

Access OpenVPN server with public IP (https://130.162.32.106/admin) and login (with credentials specified in above log file)

  • Navigate to User management >> user permissions >> create the username. This account will be used on VPN Client to connect to OpenVPN server.

OpenVPN

  • Navigate to configuration tab >> network settings >> enter the hostname as public IP and save the configuration.
  • Navigate to configuration tab >> VPN settings >> enter the CIDR/s that will be accessible from VPN Client machines.

routing

Configuring OpenVPN Client

OpenVPN Connect Import Profile

  • Enter the username and password.
  • Check the option “Import autologin profile” and “Connect after import”

Import profile

Connectivity from OpenVPN client to NSX-T overlay

Conclusion

Post following above steps, OnPrem datacenter virtual machine / physical machine should communicate with OCVS SDDC. 

Here are few links which are related to this blog post.