Technical Tip: Local In Policy VS Virtual IP Policy
| Description | This article describes a scenario where a user wants to block traffic from certain countries from reaching the internal server behind FortiGate LAN. The IP belonging to the GEO block country is still able to access the internal server.
Below are the configs:
|
| Scope | FortiGate. |
| Solution | According to Packet Life in FortiGate, Destination NAT takes effect at the beginning of the packet process. In the FortiGate kernel, packets are processed in the following order:
A local policy with an 'action deny' will not deny traffic allowed by a VIP policy because when the local policy takes effect, the VIP policy has already allowed the traffic. To resolve the issue.
Note:
Local-in policy: controls traffic to FortiGate itself.
Firewall policy with VIP: controls traffic passing through FortiGate.
Technical Tip: How to block VIP access using GEO Location.
Related documents: |

