Created on
11-23-2025
11:57 PM
Edited on
11-23-2025
11:59 PM
By
Jean-Philippe_P
| Description | This article describes how to configure DLP using Certificate Inspection as the SSL/SSH inspection to monitor or block Credit Card numbers. |
| Scope | FortiGate. |
| Solution |
DLP profile can be configured in the Flow/proxy feature set, and the SSL/SSH inspection can be set to Certificate Inspection only if the HTTP traffic (clear-text) needs to be filtered using DLP. If any other encrypted traffic needs to be filtered, it is mandatory to use deep inspection, and the SSL certificate should be installed on the Client PC.
Below is the configuration of DLP to monitor Credit Card numbers through HTTP traffic.
Go to System -> Feature Visibility and enable it.
In CLI:
config dlp dictionary
In CLI:
config dlp sensor
In CLI:
config dlp profile
In CLI:
config firewall policy
Notes:
http://10.5.146.51:80 is the server configured to transfer the message or cleartext files using the HTTP service, and 10.50.17.161 is the client PC that tries to send the file or message.
This test is performed using the curl post method to initiate and receive the traffic in the desired manner.
t.txt is the file that was uploaded to the server, and the same was logged under DLP in security events: The file 't.txt' has the Credit Card number saved in it.
date=2025-11-23 time=10:48:11 eventtime=1763891290979615411 tz="+0100" logid="0954024577" type="utm" subtype="dlp" eventtype="dlp" level="notice" vd="root" filteridx=1 filtername="CreditCard" dlpextra="CC" filtertype="sensor" filtercat="message" severity="medium" policyid=1 poluuid="07f14d26-c522-51f0-d138-7d1ce932b6e6" policytype="policy" sessionid=4018035 epoch=1242834703 eventid=1 srcip=10.50.17.161 srcport=50777 srccountry="Reserved" srcintf="port2" srcintfrole="undefined" srcuuid="add1a27c-c513-51f0-7f77-55c5b5e7e01a" dstip=10.5.146.51 dstport=80 dstcountry="Reserved" dstintf="port1" dstintfrole="undefined" dstuuid="add1a27c-c513-51f0-7f77-55c5b5e7e01a" proto=6 service="HTTP" filetype="N/A" direction="outgoing" action="log-only" hostname="10.5.146.51" url="http://10.5.146.51/" agent="curl/8.13.0" httpmethod="POST" profile="CreditCard"
This confirms that the Credit Card information sent in the txt format has been matched to the DLP profile, and it took the action which was set to 'log-only'. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.