Skip to main content
Contributor III
March 23, 2009

Technical Tip: Logging traffic violation on VIP

  • March 23, 2009
  • 0 replies
  • 5390 views

Description

 

This article describes how to log traffic violation on a Virtual IP.

 

Scope

 

All FortiGate units.

 

Solution

 

To log unauthorized traffic, see Technical Tip: configuring a Firewall Policy with action = DENY to log unauthorized traffic, also called 'Violation Traffic'.

 

To log traffic violation on the Virtual IP (VIP), use a clean-up deny rule in the end of the firewall policy list, with the destination address as the VIP. When using 'all' instead of a VIP, no log will be shown.

 

The following is an example CLI configuration.

 

config firewall vip     edit "MY_VIP"         set extip 192.168.1.1         set extintf "external"         set mappedip 10.0.0.1    next end
config firewall policy     edit 1         set srcintf "external"         set dstintf "internal"         set srcaddr "all"         set dstaddr "My_VIP"         set schedule "always"         set service "ANY"         set logtraffic enable     next end

 

Related article:

Technical Tip: configuring a Firewall Policy with action = DENY to log unauthorized traffic, also called 'Violation Traffic'

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!