Mapping the virtual NICs (vNICs) to physical NICs
Appropriate mappings of the FortiWeb-VM network adapter ports to the host computer’s physical ports depends on your existing virtual environment.
Often, the default bridging vNICs work, and don’t need to be changed. If you are unsure of your network mappings, try bridging first before non-default vNIC modes such as NAT or host-only networks. The default bridging vNIC mappings are appropriate where each of the host’s guest virtual machines should have their own IP addresses on your network. The most common exceptions to this rule are for VLANs and the transparent modes. See Configuring the vNetwork for the transparent modes |
When you deploy the FortiWeb-VM package, 10 bridging vNICs are created and automatically mapped to a port group on 1 virtual switch (vSwitch) within the hypervisor. Each vNIC is mapped to one of 10 FortiWeb-VM network interfaces. (Alternatively, you can configure some or all of the network interfaces to use the same vNIC.) vSwitches are themselves mapped to physical ports on the server.
In some cases, FortiWeb-VM deployed on ESXi cannot update the mapping between vNICs and FortiWeb-VM network interfaces after you remove and add adaptors. See Changing the default network adaptors for EXSi deployments. |
You can change the mapping, or map other vNICs, if either your VM environment requires it or FortiWeb-VM will be operating in either true transparent proxy or Transparent Inspection mode. (For information on how to choose the operation mode, see the setup instructions in the FortiWeb Administration Guide.)
The following table provides an example of how vNICs could be mapped to the physical network ports on a server.
Example: Network mapping for Reverse Proxy mode
To map network adapters
- On your management computer, start VMware vSphere Client.
- Enter the IP address, user name, and password of the VMware vSphere server.
- Click Login.
- In the pane on the left side, right-click the name of the virtual appliance, such as FortiWeb-VM, then select Edit Settings.
- In the list of virtual hardware on the left side of the dialog, click the name of a virtual network adapter to see its current settings.
- From the Network Connection drop-down menu, select the virtual network mapping for the virtual network adapter.
- Click OK.
- Continue with Powering on and shutting down the virtual appliance.
The virtual appliance’s properties dialog appears.
The correct mapping varies by your virtual environment’s network configuration. In the example illustration below, the vNIC Network adapter 1 is mapped to the virtual network (vNetwork) named VLAN 593.
Changing the default network adaptors for EXSi deployments
By default, FortiWeb-VM deploys on ESXi using VMXNET network adaptors.
However, you can delete the VMXNET adaptors and add E1000 network adaptors that replace them, if required. E1000 adaptors do not have the same limitations as VMXNET adaptors. However, for best performance, use VMXNET adaptors because they are optimized for performance in a virtual machine.
To avoid problems with the mapping of vNICs to FortiWeb-VM network interfaces, do the following:
- Ensure the network adaptors are all of the same type: VMXNET or E1000.
- If you are using VMXNET adaptors, do not remove and add adaptors. FortiWeb-VM cannot update the initial mappings to work with the new adaptors.
However, you can add VMXNET adaptors if you are upgrading from a previous version of FortiWeb-VM that provides only 4 adaptors. (Because the additional adaptors are new, there is no existing mapping to create a conflict.) Ensure that the total number of adaptors after the upgrade is 8 or 10.
Configuring the vNetwork for the transparent modes
The default vNetwork configuration does not function with FortiWeb bridges (V-zones). You use bridges when you deploy your FortiWeb-VM in either true transparent proxy or Transparent Inspection operation mode.
Use the following general configuration steps to support the transparent modes:
- To create the bridge, use one of the following to create two FortiWeb ports: one for the web server side and one for the client side:
- Set each vSwitch that you add to promiscuous mode and map each port group to a network adapter (vNIC)
Similar to a deployment that does not use virtual machines, connections between clients and servers are piped through two port groups (on two vSwitches or a single vSwitch) that comprise the bridge, with FortiWeb-VM in between them.
To create a vSwitch
- On your management computer, start VMware vSphere Client.
- In IP address / Name, type the IP address or FQDN of the VMware vSphere server.
- In User name, type the name of your account on that server.
- In Password, type the password for your account on that server.
- Click Login.
- In the pane on the left side, click the name of the virtual appliance, such as FortiWeb-VM.
- On the Configuration tab, click Networking.
- In the View set of buttons, click Virtual Switch. (If you are configuring a distributed vSwitch, click vNetwork Distributed Switch instead. Your steps will vary slightly, but will be similar.)
- Click Add Networking.
- Accept the default connection type, Virtual Machines, and click Next.
- Select Create a virtual switch.
- Click Next.
- Under Port Group Properties, enter a network label such as
Client-Side-vSwitch1
that identifies the port group. - In VLAN ID, if your network uses VLANs, enter a number between 1 and 4,094 to specify the VLAN tag that the vSwitch uses.
- Click Next.
- Click Finish.
- If your configuration uses 2 vSwitches, repeat this procedure to create the other vSwitch.
- If you are creating vSwitches to support True Transparent Proxy, ensure that the vSwitch is configured to use only one VMNIC.
- Continue with To configure promiscuous mode for the new vSwitch.
A window appears where you can configure vSwitches or distributed vSwitches.
If your configuration uses only one vSwitch, add a second port group with a different VLAN tag.
To configure promiscuous mode for the new vSwitch
- On the Configuration tab, click Networking.
- Select Properties.
- Click Edit.
- Select the Security tab.
- From the drop-down list for Promiscuous Mode, select Accept.
- If your configuration uses 2 vSwitches, repeat this procedure with the other vSwitch for the bridge.
- Continue with To map a network adapter to the new vSwitch port groups.
To map a network adapter to the new vSwitch port groups
- In the pane on the left side, click the name of the virtual appliance, such as FortiWeb-VM.
- On the Getting Started tab, select Edit Virtual Machine Settings.
- On the Hardware tab, select a network adapter from the hardware list.
- Select the port group of the new vSwitch from the Network label drop-down list.
- Click OK.
- Do one of the following:
A properties window appears.
- If your configuration uses 2 vSwitches, repeat this procedure with the port group on the second vSwitch.
- If your configuration users 1 vSwitch, repeat this procedure with the second port group on the vSwitch.