By Manny Fernandez

February 3, 2021

Port Mirroring on FortiLink’d FortiSwitch

Port Mirroring on FortiLink’d FortiSwitch

Customer Use Case:  Customer has some UCAAS voice solution.  They want to be able to record phone calls for wire transfers to ensure they can go back in case of any discrepancies.

Environment:  Small bank with multiple  branches.  Each branch has FortiGate 30Es and minimum of 3 FortiSwitches.  Customer is using Layer 2 MetroEthernet as their main Internet and intra-office communication medium and broadband for fail-over Internet access and failover access to the datacenter using route-based VPNs.  OSPF across the ME and VPN.

Customer needed to be able to mirror the traffic from their “wires” department to a Voice recording solution on-prem.

Enter the switch configuration for the FortiSwitch managed by the FortiGate (Serial Number has been obscured to protect the innocent)

This configuration is only available via the command line.

config switch-controller managed-switch
​​​​​edit "S248EFTXXXXXXX2

Now we will configure the specifics for what we want to mirror

You will need to enter the mirror configuration mode by typing config mirror

Then you will create a new instance name (similar to Cisco’s session on IOS)

set dst port8
set src-ingress port31 port18 port19 port36
set src-egress port31 port18 port19 port36
set status active

As you can see above, we are going to mirror ports 18,19,31 & 36 to port8

Make sure you type end until you are returned to the default prompt to ensure your work is saved.

Limitation:

Currently, there is no way to choose an entire VLAN as the source interface which I would like to see Fortinet add as a feature.  It should not be an overhead issue since all we are doing is copying the packet to a second port other than the corresponding port wit the destination MAC address so thinking it is just an oversight.

I wrote a previous post showing how to do this in the Cisco switches.

Here is the finished config

miami-fw-01 (voice-mirror) # show
config mirror
   edit "voice-mirror"
       set status active
       set dst "port8"
       set src-ingress "port31" "port18" "port19" "port36"
       set src-egress "port31" "port18" "port19" "port36"
    next
end

Hope this helps.

 

 

Spanning Tree Protocol Explained: STP vs RSTP vs MSTP (with FortiSwitch Config)

Spanning Tree Protocol Explained: STP vs RSTP vs MSTP (with FortiSwitch Config)

Learn how spanning tree, RSTP and MSTP elect a root and block loops, then configure MSTP on FortiSwitch so both core uplinks forward traffic.

Read More
DHCP Snooping Deep Dive  Building the Binding Table That Your Entire Layer 2 Security Stack Depends On

DHCP Snooping Deep Dive Building the Binding Table That Your Entire Layer 2 Security Stack Depends On

Configure DHCP snooping on FortiSwitch to build a secure binding table. Stop rogue servers and enable DAI with this practical FortiLink implementation guide.

Read More
LLDP on FortiSwitch Managed by FortiLink

LLDP on FortiSwitch Managed by FortiLink

Enable LLDP on FortiSwitch ports using FortiLink CLI. Learn to configure rx-tx status and view neighbor details to identify connected device IPs.

Read More