Skip to main content
caunon
Staff
Staff
January 12, 2015

Technical Tip: How to send traffic out with the specific source IP address

  • April 16, 2026 at 12:37 PM
  • 0 replies
  • 8258 views

Description

 
This article describes that in some cases, it is necessary to send out the traffic with the specific source IP address, which is not the wan1 or wan2 IP address at the external interface. Use the IP Pool feature with the firewall policy to achieve this.


Scope

 

FortiGate.


Solution

 

For v5.0:

 

  1. Using the GUI, go to Firewall Objects -> Virtual IPs -> IP Pools -> Create New and set the parameter values as follows:

 

Name : NAT24

Type : Overload
External IP Range/Subnet : 24.24.24.24-24.24.24.24
ARP Reply : enable

 

caunon_FD36016_tn_FD36016-1.jpg

 

caunon_FD36016_tn_FD36016-2.jpg

 

  1. Create the firewall policy from the source interface to the destination interface as required, and set the IP Pool to Enable NAT. Select the option to 'Use Dynamic IP Pool' and choose the one that was created in the previous step (For example: 'NAT24').

caunon_FD36016_tn_FD36016-3.jpg
 
For v7.0, v7.2, v7.4, 7.6:

Using the GUI, go to Policy & Objects -> IP Pools -> Create New and set the parameter values as follows:

Name: NAT24.

Type: Overload.

External IP Range/Subnet: 24.24.24.24-24.24.24.24.

ARP Reply: enable.

 

For v 7.0, v7.2, v7.4 GUI:

 
IPPool1.PNG
 
IPPool1a.PNG

 

From v7.6 GUI:

 

IPPool2.PNG

 

 
IPPool2a.PNG

 

  1. Create the firewall policy from the source interface to the destination interface as required, and set the IP Pool to Enable NAT. Select the option to 'Use Dynamic IP Pool' and choose the one that was created in the previous step (For example: 'NAT24').

 

For v7.0, v7.2, v7.4 GUI:

 

FW1.PNG
 
For v7.6 GUI:
 
FW2.PNG

 

When the traffic passes through this firewall policy, it will NAT out with the IP address of the IP Pool (NAT24 with 24.24.24.24) as required.
 
Note: There is an IP pool behavior change when 'set arp-reply enable' is configured in the IP Pools from version to version. For more information, refer to this article: Technical Tip: IP pool and virtual IP behavior changes in FortiOS v6.4, v7.0, v7.2, and v7.4.
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