OCI SDN connector using certificates
You can configure SDN connector integration with Oracle Cloud Infrastructure (OCI).
This topic describes one of multiple configuration methods available with this SDN connector type. See More Links on the right sidebar for other methods. |
To configure an OCI SDN connector in the GUI:
- Go to Security Fabric > External Connectors and click Create New.
- In the Public SDN section, select Oracle Cloud Infrastructure (OCI).
-
Configure the connector as desired:
- User ID: Enter the OCID of the OCI user who belongs to the administrator group. See Certificate-based SDN connector requirements.
- For the OCI Certificate field, you must select a certificate that satisfies OCI key size limits. The minimum size is 2048 bits. Do one of the following:
- Select the built-in default certificate called Fortinet_Factory.
- Follow steps 1-2 in Using custom certificates to configure a custom certificate.
- Click OK.
- At this stage, you must register the certificate's fingerprint to the specified OCI user.
- Go to the OCI user, then API Keys > Add Public Key.
- If you selected the Fortinet_Factory certificate in step 2f, do the following:
- In FortiOS, go to System > Certificate. Select Fortinet_Factory, then click Download.
- You now have the Fortinet_Factory.cer file. Create a public key file in PEM format from it, using a freely available tool of your choice such as OpenSSL.
- Copy and paste the content of the certificate PEM key file in the Add Public Key window in OCI. Click Add.
- You now see the fingerprint.
You can configure the following for the fingerprint:
- Update Interval: The default value is 60 seconds. You can change the value to between 1 and 3600 seconds.
- Status: Green means that the connector is enabled. You can disable it at any time by toggling the switch.
- Click OK.
- Go to Policy & Objects > Addresses and click Create New > Address.
- Configure the address as needed, selecting the OCI connector in the SDN Connector field. The following filters are supported:
'vm_name=<vm name>'
: matches VM instance name.'instance_id=<instance id>'
: matches instance OCID.'tag.<key>=<value>'
: matches freeform tag key and its value.'definedtag.<namespace>.<key>=<value>'
: matches a tag namespace, tag key, and its value. - Click OK.
To configure an OCI SDN connector in the CLI:
- Configure an SDN connector:
config system sdn-connector edit "oci1" set status enable set type oci set tenant-id "ocid1.tenancy.oc1..aaaaaaaaaaa3aaaaaaaaaaaaaaaaa77xxxxxx54bbbbbb4xxxx35xx55xxxx" set user-id "ocid1.user.oc1..aaaaaaaaa2laaaaa3aaaaaaaaaabbbbbbbbbbcccc3ccccccccccxxxxxxxx" set compartment-id "ocid1.compartment.oc1..aaaaaaaaaaaaaaaaaa7bbbbbbbbbbcccccccccc6xxx53xxxx7xxxxxxxxxx" set oci-region "us-ashburn-1" set oci-region-type commercial set oci-cert "cert-sha2" set update-interval 30 next end
- Create a dynamic firewall address for the SDN connector with a supported filter:
config firewall address edit "oci-address-1" set type dynamic set sdn "oci1" set filter "CompartmentName=DevelopmentEngineering" next end
To confirm that dynamic firewall addresses are resolved by the SDN connector:
- In the CLI, check that the addresses are listed:
config firewall address edit "oci-address-1" set type dynamic set sdn "oci1" set filter "CompartmentName=DevelopmentEngineering" config list edit "10.0.0.11" next edit "10.0.0.118" next ... next end next end
- In the GUI, go to Policy & Objects > Addresses and hover the cursor over the address name.