VMware ESXi SDN connector
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 > Fabric Connectors.
- Click Create New, and select VMware ESXi.
- Configure as shown, substituting 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 as shown, selecting the desired filter in the Filter dropdown list. In this example, the VMware ESXi fabric connector will automatically populate and update IP addresses only for instances that belong to VLAN80:
- 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 will automatically populate and update 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 uuid abfa1748-1b80-51e9-d0fd-ea322b3bba2d
set type dynamic
set sdn "vmware1"
set filter "vmnetwork=VLAN80"
config list
edit "192.168.8.240"
next
end
next
end