GoogleCloudPlatform / pbmm-on-gcp-onboarding

GCP Canadian Public Sector Landing Zone overlay on top of the TEF via CFT modules - a secure cloud foundation
https://cloud.google.com/architecture/security-foundations
Apache License 2.0
39 stars 55 forks source link

Overlay fortigate NGFW dual LB example into 3-networks-hub-and-spoke #389

Open fmichaelobrien opened 2 months ago

fmichaelobrien commented 2 months ago

20240517: assigned to Andrew

see example TEF deployment in #360 and https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/351

see alternate GCP native NGFW / Firewall+ overlay work in https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/396

Architecture

Screenshot 2024-04-17 at 7 07 48 AM

See previous analysis in

Design

Take the existing TEF V4 and adapt the Fortinet terraform example LB sandwich HA cluster below Verified https://github.com/fortinet/fortigate-tutorial-gcp/tree/main/terraform Unverified https://github.com/40net-cloud/fortinet-gcp-solutions/tree/master/FortiGate look at the best one from Fortinet https://github.com/fortinet/fortigate-terraform-deploy/tree/main/gcp/7.4

Notes

CLI

fmichaelobrien commented 1 month ago

Discussion with Andrew - and a refresher. We are good with VM optimization down to e2-standard-4

As i understand it we need VM08 instances to get 4 nic's - I in my last couple deploys of the FG cluster did not vary with 04 or 02. Marian tested with 02 and as expected you can't customize up the nics - I would assume 08 VMs for now along with their up to $30 cost/day (excluding byol). Usually I keep the VMs off between debug sessions

checking my last deploy https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/issues/446#issuecomment-1912757155 ...

yes

https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/gh446-hub/solutions/project/hub-env/fortigate/fortigate-ap-primary.yaml#L29

  description: Fortigate Primary Instance
  machineType: n2-standard-4

yes, lets go with e2-standard-4 - as long as the VMs come up with all 4 nics - we are good

and my older tutorial run - I was mistaken - vm08 is the image not the vm size

https://github.com/fortinet/fortigate-tutorial-gcp/issues/1#issuecomment-1284803534

4 nicsCreated [https://www.googleapis.com/compute/v1/projects/fortigate-tutorial-gcp-lgz3/zones/europe-west1-b/instances/fgt-vm-euwest1-b].
NAME: fgt-vm-euwest1-b
ZONE: europe-west1-b
MACHINE_TYPE: e2-standard-4
PREEMPTIBLE:
INTERNAL_IP: 172.20.0.2,172.20.1.2,172.20.2.2,172.20.3.2
EXTERNAL_IP: 34.79.46.47
obriensystems commented 1 month ago

currently stopped in obrienlabs.app image