Skip to main content
sw2090
SuperUser
SuperUser
March 4, 2026
Question

Weird beavior of FortiOS with VIP

  • March 4, 2026
  • 1 reply
  • 245 views

Hello,

 

I just ran into this:

 

on a FGT I have two policies:

 

One has a VIP as destination to rewrite an ip into a different subnet

The other matches all traffic between the involved subets and interfaces.

the policies have exactly this order.

 

In FortiAnalyzer I can see:

- it does the VIP because it shows me the destinatin nat ip

- it didn't match the first policy though because source intf and -address were wrong in it

But

- it also didn't match the 2nd one even though everything in there matches and the traffic got denied (Policy #0 implicit deny).

 

I understand why it didn't match the first policy but I don't get why it didn't match the other policy then.

 

Policy #1:

 

Source Interface: zone2

destination Interface: zone1

source address is in subnet of member of zone2

destination: vip1

action: allow

services: ping,https

 

vip1:

external IP: ip the traffic originates to

mapped IP: destination ip (which is also on a meber of zone1)

 

Didn't match because traffic originated from member of zone1 and didn't match the source address.

 

Policy2:

 

source and destination interface: zone1

source and destination address: all

service: all

action: allow

 

Should match this traffic even without the vip but didn't.

I have no clue why.

 

After correcting policy1 the traffic does match policy1 correctly (including the VIP).

Happend on a FGT100F with FortiOS 7.2.13....

 

Did anyone else encounter such behaviour?

1 reply

sw2090
SuperUser
sw2090Author
SuperUser
March 4, 2026

yeah thx for the hint mrsimon007.

After this gues that the Session somehow "collides"  with the VIP and then FortiOS doesn't know which destinatio to use and fails. I consider this a weird bug in FortiOS and 've opened a Ticket with TAC to have it investigated further.

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