Description
File filter rules can be used in one-arm sniffer policies in the GUI and CLI.
This article shows how to configure a file filter profile that blocks PDF and RAR files used in a one-arm sniffer policy.
Solution
To configure a one-arm sniffer policy from GUI:
1) Go to Network -> Interfaces and select a physical interface to edit it.
2) For Role, select either LAN, DMZ, or Undefined.
3) For 'Addressing Mode', select 'One-Arm Sniffer'.
# config system interface2) Configure the file filter profile:
edit "s1"
set vdom "root"
set ips-sniffer-mode enable
set type physical
set role undefined
set snmp-index 31
next
end
# config file-filter profile3) Configure the firewall sniffer policy:
edit "sniffer-profile"
set comment "File type inspection."
# config rules
edit "1"
set protocol http ftp smtp imap pop3 cifs
set action block
set file-type "pdf" "rar"
next
end
next
end
# config firewall sniffer4) View the log:
edit 1
set interface "s1"
set file-filter-profile-status enable
set file-filter-profile "sniffer-profile"
next
end
# execute log filter category 19
# execute log display
1 logs found.
1 logs returned.
1: date=2020-12-29 time=09:14:46 eventtime=1609262086871379250 tz="-0800" logid="1900064000" type="utm" subtype="file-filter" eventtype="file-filter" level="warning" vd="root" policyid=1 sessionid=792 srcip=172.16.200.55 srcport=20 srcintf="s1" srcintfrole="undefined" dstip=10.1.100.11 dstport=56745 dstintf="s1" dstintfrole="undefined" proto=6 service="FTP" profile="sniffer-profile" direction="outgoing" action="blocked" filtername="1" filename="hello.pdf" filesize=9539 filetype="pdf" msg="File was blocked by file filter."
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.