Fortinet white logo
Fortinet white logo

Administration Guide

Decrypted Traffic Mirror

Decrypted Traffic Mirror

SSL mirroring allows the FortiProxy unit to decrypt and mirror traffic to a designated port. A decrypted traffic mirror profile can be applied to explicit, transparent, SSH tunnel, and SSH proxy policies when the custom-deep-inspection, deep-inspection, or deep-test SSL/SSH inspection security profile is selected. SSL inspection is automatically enabled when you enable a security profile on the policy configuration page.

To configure SSL mirroring in a policy:
  1. Create a decrypted traffic mirror profile by selecting Create New under Policy & Objects > Dycrypted Traffic Mirror in the GUI. Configure the following options:

    NameEnter the name of the decrypted traffic mirror profile.
    Destination MACEnter the destination MAC address for the mirrored traffic.
    Decrypted Traffic TypeSelect whether decrypted SSL traffic, decrypted SSH traffic, or both are mirrored.
    Decrypted Traffic SourceSelect whether decrypted client-side traffic, decrypted server-side traffic, or both are mirrored.
    Interface

    Select which interfaces will have decrypted traffic mirrored.

    Fortinet recommends that you mirror the traffic to a dedicated interface or virtual interface.

    API PreviewThe API Preview allows you to view all REST API requests being used by the page. You can make changes on the page that are reflected in the API request preview. This feature is not available if the user is logged in as an administrator that has read-only GUI permissions.

    Alternatively, use the config firewall decrypted-traffic-mirror command. For example:

    config firewall decrypted-traffic-mirror

    edit "1"

    set dstmac ff:ff:ff:ff:ff:ff

    set traffic-type ssl ssh

    set traffic-source both

    set interface "port1"

    next

    end

  2. Configure the policy to enable SSL traffic mirroring:

    config firewall policy

    edit 1

    set type explicit-web

    set name "All"

    set uuid 10e62d76-7c94-51ee-fa3a-ae92170cea18

    set dstintf "port1"

    set srcaddr "all"

    set dstaddr "all"

    set action accept

    set schedule "always"

    set service "webproxy"

    set explicit-web-proxy "web-proxy"

    set utm-status enable

    set logtraffic all

    set log-http-transaction all

    set decrypted-traffic-mirror "Decrypt"

    set ssl-ssh-profile "Deep_Custom".

    set webfilter-profile "default"

    next

    end

To verify and troubleshoot issues with traffic mirroring, use the Network > Diagnostics tab to capture and analyze the mirrored traffic.

Decrypted Traffic Mirror

Decrypted Traffic Mirror

SSL mirroring allows the FortiProxy unit to decrypt and mirror traffic to a designated port. A decrypted traffic mirror profile can be applied to explicit, transparent, SSH tunnel, and SSH proxy policies when the custom-deep-inspection, deep-inspection, or deep-test SSL/SSH inspection security profile is selected. SSL inspection is automatically enabled when you enable a security profile on the policy configuration page.

To configure SSL mirroring in a policy:
  1. Create a decrypted traffic mirror profile by selecting Create New under Policy & Objects > Dycrypted Traffic Mirror in the GUI. Configure the following options:

    NameEnter the name of the decrypted traffic mirror profile.
    Destination MACEnter the destination MAC address for the mirrored traffic.
    Decrypted Traffic TypeSelect whether decrypted SSL traffic, decrypted SSH traffic, or both are mirrored.
    Decrypted Traffic SourceSelect whether decrypted client-side traffic, decrypted server-side traffic, or both are mirrored.
    Interface

    Select which interfaces will have decrypted traffic mirrored.

    Fortinet recommends that you mirror the traffic to a dedicated interface or virtual interface.

    API PreviewThe API Preview allows you to view all REST API requests being used by the page. You can make changes on the page that are reflected in the API request preview. This feature is not available if the user is logged in as an administrator that has read-only GUI permissions.

    Alternatively, use the config firewall decrypted-traffic-mirror command. For example:

    config firewall decrypted-traffic-mirror

    edit "1"

    set dstmac ff:ff:ff:ff:ff:ff

    set traffic-type ssl ssh

    set traffic-source both

    set interface "port1"

    next

    end

  2. Configure the policy to enable SSL traffic mirroring:

    config firewall policy

    edit 1

    set type explicit-web

    set name "All"

    set uuid 10e62d76-7c94-51ee-fa3a-ae92170cea18

    set dstintf "port1"

    set srcaddr "all"

    set dstaddr "all"

    set action accept

    set schedule "always"

    set service "webproxy"

    set explicit-web-proxy "web-proxy"

    set utm-status enable

    set logtraffic all

    set log-http-transaction all

    set decrypted-traffic-mirror "Decrypt"

    set ssl-ssh-profile "Deep_Custom".

    set webfilter-profile "default"

    next

    end

To verify and troubleshoot issues with traffic mirroring, use the Network > Diagnostics tab to capture and analyze the mirrored traffic.