Skip to content

sridhargaddam/vpn-automation

Repository files navigation

VPN Automation (using VNF) POC

This repo has ansible playbooks to automate a VNF creation in an OpenStack setup.

We spawn a CentOS7 VM (as a VNF) in an OpenStack tenant network, install StrongSwan/other-necessary-utilities in the VNF and finally setup IPSEC tunnel to AWS VPC Gateway.

The topology would be as shown below.

topology

Pre-setup

  • Edit cloud.yml with the necessary credentials to your cloud.
  • Edit inventory file and set 'ssh_key' to the right value
  • Edit the strongswan config files with the appropriate AWS VPC Gateway Credentials.

Getting Started

To create the necessary neutron networks, subnets, routers and to spawn the VNF, run the following playbook.

$ ansible-playbook setup-vnf-rdocloud.yml

To spawn a tiny VM on the tenant network to validate reachability to AWS VPC, use the following playbook.

$ ansible-playbook spawn-vm.yml

To delete the VM that was spawned to validate reachability to AWS VPC, use the following playbook.

ansible-playbook teardown-vm.yml

To delete all the resources (including the VNF), use the following playbook.

ansible-playbook teardown-vnf-rdocloud.yml

About

VPN Automation (using VNF) POC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages