Skip to main content
BensonLEI
New Member
October 11, 2022
Question

Local out traffic selects the wrong SDWAN gateway for outgoing traffic ?

  • October 11, 2022
  • 1 reply
  • 4733 views

Hi, guys,

 

I am currently using Fortigate 400E with FortiOS v7.0.3, with the SDWAN configuration of 3 internet lines.

I tried to test the destination IP with traceroute/pingtest as the following test cases:

 

SDWAN configuration:

1. service rule = Maximized

2. SDWAN Mode(load-balance hash-mode=round-robin)
3. load-balance-mode : source-dest-ip-based

4. duplication-max-num : 3

 

 

Firewall policy "local-in-policy" :

Forti400e01 (local-in-policy) # show
config firewall local-in-policy
end

 

 

My traceroute test ( pingtest is similar )

 

Case 1 --- Traceroute test by using dedicated internet line
==========================================
Forti400e01 # exec traceroute-options device port3
Forti400e01 # exec traceroute 91.240.118.105

 

Forti400e01 # exec traceroute-options device port4
Forti400e01 # exec traceroute 91.240.118.105

 

Forti400e01 # exec traceroute-options device port5
Forti400e01 # exec traceroute 91.240.118.105

 

 

 


Case 2 --- Traceroute test by using SDWAN rule
=============================================
Forti400e01 # exec traceroute-options source 100.100.100.10
Forti400e01 # exec traceroute-options use-sdwan yes
Forti400e01 # exec traceroute 91.240.118.105

 

Forti400e01 # exec traceroute-options source 222.222.222.22
Forti400e01 # exec traceroute-options use-sdwan yes
Forti400e01 # exec traceroute 91.240.118.105

 

Forti400e01 # exec traceroute-options source 111.111.111.11
Forti400e01 # exec traceroute-options use-sdwan yes
Forti400e01 # exec traceroute 91.240.118.105

 

 

Case 3 -- Traceroute test by using Source IP
==============================================
Forti400e01 # exec traceroute-options source 100.100.100.10
Forti400e01 # exec traceroute 91.240.118.105


Forti400e01 # exec traceroute-options source 222.222.222.22
Forti400e01 # exec traceroute 91.240.118.105


Forti400e01 # exec traceroute-options source 111.111.111.11
Forti400e01 # exec traceroute 91.240.118.105

 

 

Test results:

==========

For case 1,  every 'traceroute' completes perfectly;

For case 3, most of 'traceroute' completes (around 1 or 2 times failures in 10 times);

For case 2, most of 'traceroute' can not be performed ( 70% number of times  failure )

 

The  cause is found in the Route Cache (Forti400e01 # diag ip rtcache list) :

family=02 tab=254 vrf=0 vf=0 type=01 tos=0 flag=00000200
100.100.100.10@0->91.240.118.105@11(port4) gwy=222.222.222.2 prefsrc=0.0.0.0
ci: ref=0 lastused=41 expire=0 err=00000000 used=12 br=0 pmtu=1500

 

what is the reason the test always goes to the wrong gateway ( from port3 --> port4 ) ?

Any issue of my test ?  any suggestion/recommendation ?

 

With many thanks

Benson

 

 

1 reply

jintrah_FTNT
Staff
Staff
October 11, 2022

Hi,

 

What would be the purpose of the test or what you are aiming for? Do you expect traffic sourced with source IP of isp1 and send out through isp2 be routed back to isp2 interface by isp2 and other upstream in the path towards 91.240.118.105?

 

best regards,

Jin

 

 

BensonLEI
BensonLEIAuthor
New Member
October 11, 2022

Thanks for your reply, my queries/questions/conerns:

1.  What is reason when I do traceroute with sourced IP = isp1, the traffic goes through the wrong and not-working gateway/isp2 ( but not goes through isp1 ) ? by what condtion/standard/configuration/policy/route the fortigate makes this decision ?

 

2. can I make change of these condition/standard/configuration/policy/route ?

 

Thanks a lot

Benson

jintrah_FTNT
Staff
Staff
October 12, 2022

Hi Benson,

 

During test2 and test3, was any changes done in routing table or config? or both these tests were done with same configuration? Was there a route in route-table for destination 91.240.118.105 during any of the test 2 or test 3 case?

 

Best regards,

Jin