FortiGate selects a source NAT address through its firewall policy. When a policy references a virtual IP (VIP), its external address can be used for SNAT, so outbound traffic appears under that IP. Without a policy reference, FortiGate generally uses an interface address or configured NAT pool.

Multiple Choice

FortiGate uses the VIP external address for SNAT when:

FortiGate decides the SNAT (source NAT) address based on the firewall policy that handles the traffic. A VIP can be used as the SNAT address when a firewall rule references that VIP for the traffic. In other words, if there is an inbound rule that uses the VIP, the NAT process translates the source of outgoing traffic to the VIP’s external IP, so responses on the Internet appear to come from that VIP address. If the VIP isn’t referenced by any policy, or the VIP is configured but unused, FortiGate will not use the VIP for SNAT and will typically SNAT to the interface address or another configured NAT pool.

How FortiGate VIPs Can Affect Source NAT

A Virtual IP (VIP) on a FortiGate is usually introduced as a way to publish an internal service. An outside client connects to a public address, and the FortiGate maps that connection to a server on the private network. But a VIP can also matter in the other direction: under the right policy conditions, its external address can be used as the source address for traffic leaving the network.

That behavior can be useful when a service needs to keep a consistent public identity. It can also be confusing if you expect a configured VIP to change the source address of all outbound traffic. It doesn’t. The firewall policy handling the traffic—and its relationship to the VIP—matters.

First, what does a VIP do?

A VIP is a destination NAT object. It maps an external address, or a port on that address, to an internal address and possibly a different port.

Imagine a company’s web server has a private address of 10.20.0.15. A FortiGate VIP might map a public address such as 203.0.113.25 to that server. When an internet client connects to the public address, the FortiGate translates the destination so the request reaches the internal server.

The VIP itself doesn’t automatically publish a service or control every packet that uses its external address. A firewall policy must allow the traffic, and the policy typically references the VIP as its destination object. In plain terms, the VIP describes the address translation; the policy decides whether traffic is permitted and how it is handled.

How source NAT enters the picture

Source NAT, or SNAT, changes the source address of traffic as it leaves the FortiGate. For example, a private client might connect to a website using an address from the 10.20.0.0/24 network. The FortiGate can replace that private source address with a public address so the website can send a reply over the internet.

Often, that public source address is the outgoing interface address. A configured IP pool may be used instead. In some configurations, FortiGate can use the external address of a VIP as the source address for traffic associated with that VIP.

The key point is that a VIP doesn’t become an SNAT address merely because someone created it. Its use depends on the policy and the relevant NAT configuration. A policy that references the VIP is an important part of the relationship; an unused VIP sitting in the configuration won’t, by itself, change outbound traffic.

Why refer to the VIP in an inbound policy?

A typical inbound policy uses the VIP as the destination. It allows traffic from an external interface toward an internal server, with the VIP providing the destination mapping. When a policy references that VIP, FortiGate can use the VIP’s external address as the source address for traffic tied to the applicable policy and NAT behavior.

This can help maintain a consistent public identity. Consider a service that users reach at 203.0.113.25. If related traffic leaves using that same address, remote systems see a source that matches the public address associated with the service. That consistency can matter for routing, filtering, and service design.

Still, it’s worth being precise: the presence of an inbound policy referencing a VIP does not mean that every outbound connection through the FortiGate will use the VIP address. SNAT is determined by the policy that handles the traffic, along with the NAT settings and the applicable VIP behavior. The matching traffic and configuration are what count—not the mere existence of an inbound rule.

A simple way to think about it

Picture the FortiGate as a building’s front desk. A VIP is like a public entrance that directs visitors to a particular office. The firewall policy is the receptionist’s instruction: who may enter, and where they should go. SNAT is a return-address label added to mail leaving the building.

Creating a public entrance doesn’t mean all outgoing mail will carry that entrance’s address. The FortiGate needs a policy context that connects the traffic to the VIP, and its NAT settings must support that behavior. Without that connection, outbound traffic usually uses the interface address or a configured IP pool.

That distinction prevents a common configuration assumption: “I made a VIP, so FortiGate will now use its public IP for outbound sessions.” Not necessarily. The VIP is an object; the policy and NAT behavior determine what happens to a particular flow.

What happens when no policy references the VIP?

If no firewall policy references a VIP, the FortiGate has no policy relationship telling it to use that VIP for the relevant traffic. The VIP may remain configured, but it isn’t actively shaping traffic through a matching policy.

Likewise, a VIP that is configured but unused does not automatically become a source NAT address. Outbound sessions will generally use the source NAT behavior defined by the policy that handles them—often the outgoing interface address, or an IP pool if one has been configured.

This is why it helps to review the full path of a connection rather than inspect the VIP alone. Check which policy matches the traffic, whether that policy references the VIP where appropriate, and what source NAT behavior is enabled. A quick glance at the object list can’t tell the whole story.

Keep the traffic direction clear

VIPs are most often associated with inbound traffic because they translate a public destination into a private destination. SNAT works on the source address, usually as traffic leaves. Those are different translations, and mixing them up can make firewall behavior seem mysterious.

A single service can involve both directions. An external client sends a request to the VIP’s public address; the FortiGate translates the destination to the server. Replies then travel back through the FortiGate as part of the same session. Separate outbound connections, however, are evaluated according to the policies and NAT settings that apply to those connections. Don’t assume that a destination mapping automatically dictates the source address of every later flow.

This is also why session behavior matters. FortiGate tracks connections, so return traffic for an established session is handled in relation to that session. A new outbound connection is a new policy decision. The two may be related to the same service, but they aren’t interchangeable.

A useful configuration check

When troubleshooting an unexpected source address, follow the traffic in order:

  • Identify the policy that matches the connection.

  • Check whether the policy references the relevant VIP, where the design calls for it.

  • Review the policy’s NAT settings and any configured IP pools.

  • Confirm which interface the traffic exits through.

  • Check the session details to see the translated source and destination addresses.

That sequence is more reliable than assuming the VIP controls NAT on its own. If the observed source address is the interface IP, that may be the expected result for the matching policy. If the design requires the VIP’s external address, confirm that the policy relationship and the relevant FortiOS NAT settings support it.

FortiOS configurations can vary, and details may depend on the version and deployment design. For a production change, check the FortiGate documentation for the exact release and verify the policy behavior in the device’s session information.

The practical takeaway

FortiGate can use a VIP’s external address for SNAT when the traffic and firewall policy are configured in a way that associates them. An inbound policy referencing the VIP is the key relationship described here. Without a policy reference—or when the VIP is simply configured but unused—the FortiGate won’t select that address just because it exists. It will typically use the outgoing interface address or another configured NAT source.

So think of the VIP as one piece of the translation story, not a global instruction. The policy that handles the traffic is the deciding context.