Created on 02-21-2021 10:42 PM Edited on 06-08-2022 02:20 PM By Anonymous
Description
This article describes how to enable SSH traffic file scanning.
Solution
FortiGates can buffer, scan, log, or block files sent over SSH traffic (SCP and SFTP) depending on the file size, type, or contents (such as viruses or sensitive content).
Configure the following SSH traffic settings from CLI:
- Protocol options.
- DLP sensor.
- Antivirus (profile and quarantine options).
To configure SSH protocol options.
# config firewall profile-protocol-options
edit "protocol"
# config ssh
set options [oversize | clientcomfort | servercomfort]
set comfort-interval [1 - 900]
set comfort-amount [1 - 65535]
set oversize-limit [1 - 798]
set uncompressed-oversize-limit [0 - 798]
set uncompressed-nest-limit [2 - 100]
set scan-bzip2 [enable | disable]
end
next
end
To configure SCP block and log options.
# config ssh-filter profile
edit "ssh-test"
set block scp
set log scp
next
end
To configure the DLP sensor.
# config dlp sensor
edit "test"
set full-archive-proto ssh
set summary-proto ssh
# config filter
edit 1
set proto ssh
next
end
next
end
To configure the antivirus profile options.
# config antivirus profile
edit "av"
# config ssh
set options [scan | avmonitor | quarantine]
set archive-block [encrypted | corrupted | partiallycorrupted | multipart | nested | mailbomb | fileslimit | timeout | unhandled]
set archive-log [encrypted | corrupted | partiallycorrupted | multipart | nested | mailbomb | fileslimit | timeout | unhandled]
set emulator [enable | disable]
set outbreak-prevention [disabled | files | full-archive]
end
next
end
To configure the antivirus quarantine options.
# config antivirus quarantine
set drop-infected ssh
set store-infected ssh
set drop-blocked ssh
set store-blocked ssh
set drop-heuristic ssh
set store-heuristic ssh
end
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 2024 Fortinet, Inc. All Rights Reserved.