Skip to main content
fortinetforumfiokom
Visitor III
May 7, 2024
Solved

How to enable a "Log violation traffic" in DENY policy

  • May 7, 2024
  • 14 replies
  • 7989 views

Hi,

I created a DENY policy (see. picture below). I tried to enable log violation traffic, but after click OK, and than reedit the policy it is switched off again. This is a normal behaviour?

 

Policy.png

 

Best answer by ebilcari

This issue is already reported and affects the 7.4 firmware branch. It is already fixed and will be included in future releases (#985419). It is classified only as a GUI issue, if logging is enabled through CLI it will log the traffic.

14 replies

AEK
SuperUser
SuperUser
May 7, 2024

Hi

This is not normal. Probably a bug.

Which FortiOS version?

Also you may try edit your firewall policy from CLI and enter the following.

set logtraffic all

 

AEK
fortinetforumfiokom
Visitor III
May 7, 2024

I have fortigate 201F and a 81F with v7.4.3 build2573 firmware. The same thing happens on both. I tried it from another browser, but the result is the same. 

I had already set in the policy : 

set logtraffic all

 

 

AEK
SuperUser
SuperUser
May 7, 2024

What you see when you edit the policy and type "show full | grep logtraffic"?

AEK
AnthonyH
Staff
Staff
May 7, 2024

Hello fortinetforumfiokom,

 

This may be a cosmetic issue in the GUI. When you edit the policy in the CLI are you see the logging enabled here? Or do you see any traffic being denied in the logs?

fortinetforumfiokom
Visitor III
May 7, 2024

1. if I create a new rule and don't set the logging, it won't log

2. turn on Log violation traffic on the gui in the policy, it starts logging, but next time if l edit the policy the Log violation traffic switch indicates that it is off. 

3. From now on I can only turn off logging from cli :set logtraffic disable

ebilcari
Staff
ebilcariAnswer
Staff
May 7, 2024

This issue is already reported and affects the 7.4 firmware branch. It is already fixed and will be included in future releases (#985419). It is classified only as a GUI issue, if logging is enabled through CLI it will log the traffic.

Emirjon
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT