VMware ESXi SDN connector using server credentials
Dynamic addresses for VMware ESXi and vCenter servers can be automatically updated by using a VMware ESXi SDN connector, including mapping the following attributes from VMware ESXi and vCenter objects to dynamic address groups in FortiOS:
- vmid
- host
- name
- uuid
- vmuuid
- vmnetwork
- guestid
- guestname
- annotation
To configure VMware ESXi SDN connector using the GUI:
- Configure the VMware ESXi SDN connector:
- Go to Security Fabric > External Connectors.
- Click Create New, and select VMware ESXi.
- Configure the fields, using the server IP address, username, and password for your deployment.
The update interval is in seconds. The password cannot contain single or double quotes.
- Create a dynamic firewall address for the configured VMware ESXi SDN connector:
- Go to Policy & Objects > Addresses.
- Click Create New, then select Address.
- Configure the address:
- From the Type dropdown list, select Dynamic.
- From the Sub Type dropdown list, select Fabric Connector Address.
- From the SDN Connector dropdown list, select the connector that you created.
- In the Filter dropdown list, select the desired filter. In this example, the VMware ESXi SDN connector automatically populates and updates IP addresses only for instances that belong to VLAN80.
Configure other fields as desired, then click OK.
- Ensure that the VMware ESXi SDN connector resolves dynamic firewall IP addresses:
- Go to Policy & Objects > Addresses.
- Hover over the address created in step 2 to see a list of IP addresses for instances that belong to VLAN80 as configured in step 2:
To configure VMware ESXi SDN connector using CLI commands:
- Configure the VMware ESXi SDN connector:
config system sdn-connector
edit "vmware1"
set type vmware
set server "172.17.48.222"
set username "example_username"
set password xxxxx
set update-interval 30
next
end
- Create a dynamic firewall address for the configured VMware ESXi SDN connector with the supported VMware ESXi filter. In this example, the VMware ESXi SDN connector automatically populates and updates IP addresses only for instances that belong to the specified VLAN:
config firewall address
edit "vmware-network"
set type dynamic
set sdn "vmware1"
set filter "vmnetwork=VLAN80"
next
end
- Confirm that the VMware ESXi SDN connector resolves dynamic firewall IP addresses using the configured filter:
config firewall address
edit "vmware-network"
set type dynamic
set sdn "vmware1"
set filter "vmnetwork=VLAN80"
config list
edit "192.168.8.240"
next
end
next
end