Giter Site home page Giter Site logo

fortigate's Introduction

Deployment of FortiGate-VM HA on the Google Cloud Platform (GCP)

Introduction

A Terraform script to deploy FortiGate-VM HA (A-P) on GCP.

Requirements

  • Terraform >= 0.12.0
  • Terraform Provider for Google Cloud Platform 2.11.0
  • Terraform Provider for Google Cloud Platform Beta 2.13
  • Terraform Provider for random 2.2.1
  • Terraform Provider for template 2.1.2
  • A GCP OAuth2 access token

Deployment overview

Terraform deploys the following components:

  • A Virtual Private Cloud (VPC) with one public subnet
  • A VPC with three private subnets
  • Two FortiGate-VM instances with four NICs
  • Four firewall rules: one for external, one for internal, one for sync, and one for HA management.

Deployment

To deploy the FortiGate-VM to GCP:

  1. Clone the repository.
  2. Obtain a GCP OAuth2 token and input it in the vars.tf file.
  3. Customize variables in the vars.tf file as needed.
  4. Initialize the providers and modules:
    $ cd XXXXX
    $ terraform init
  5. Submit the Terraform plan:
    $ terraform plan
  6. Verify output.
  7. Confirm and apply the plan:
    $ terraform apply
  8. If output is satisfactory, type yes.

Output will include the information necessary to log in to the FortiGate-VM instances:

FortiGate-HA-Active-MGMT-IP = XXX.XXX.XXX.XXX
FortiGate-HA-Cluster-IP = XXX.XXX.XXX.XXX
FortiGate-HA-Passive-MGMT-IP = XXX.XXX.XXX.XXX
FortiGate-Password = <password here>
FortiGate-Username = admin

Destroy the instance

To destroy the instance, use the command:

$ terraform destroy

Support

Fortinet-provided scripts in this and other GitHub projects do not fall under the regular Fortinet technical support scope and are not supported by FortiCare Support Services. For direct issues, please refer to the Issues tab of this GitHub project. For other questions related to this project, contact [email protected].

License

License © Fortinet Technologies. All rights reserved.

fortigate's People

Contributors

kalynvalentyn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.