Technical Tip: Traffic Drop with IPsec Tunnel Slot and Inbound Flow Rule Mapped to Different FPC on FortiGate 6000F
Description
This article describes a traffic drop scenario on FortiGate 6000F platforms where the IPsec tunnel slot and inbound flow rule are mapped to different FPCs. It explains how packets are processed across separate FPCs, resulting in asymmetric session handling and TCP anti-replay/session validation failures that cause traffic to be dropped.
Scope
FortiGate 6K Chassis.
Solution
When ingress clear-text traffic is explicitly mapped to a different FPC than the IPsec tunnel slot using a flow rule, TCP sessions may fail due to anti reply failures.
Topology overview:
Source: 10.112.1.137.
Destination: 10.110.2.204.
IPsec Tunnel Slot Configuration:
The IPsec tunnel is mapped to FPC5.
config vpn ipsec phase1-interface
edit "VPN2_ISP1"
set ipsec-tunnel-slot FPC5
next
endFlow Rule configuration:
Ingress clear-text traffic is explicitly forwarded to FPC4.
edit 28
set status enable
set vlan 612
set ether-type ip
set protocol icmp
set forward-slot FPC4
next
edit 29
set status enable
set vlan 612
set ether-type ipv4
set dst-addr-ipv4 10.110.2.204 255.255.255.255
set protocol tcp
set forward-slot FPC4
nextDebug flow:
Step 1 - SYN Packet Arrives on FPC4.
The ingress flow rule forces the SYN packet to FPC4
K_7_7-2 (root) # [FPC04] id=65308 trace_id=301 func=print_pkt_detail line=5802 msg="vd-root:0 received a packet(proto=6, 10.112.1.137:56944->10.110.2.204:443) tun_id=0.0.0.0 from 612. flag [S], seq 407136194, ack 0, win 64240"
[FPC04] id=65308 trace_id=301 func=init_ip_session_common line=5986 msg="allocate a new session-19c6723c"
[FPC04] id=65308 trace_id=301 func=rpdb_srv_match_input line=1046 msg="Match policy routing id=2133786626: to 10.110.2.204 via ifindex-82"
[FPC04] id=65308 trace_id=301 func=vf_ip_route_input_common line=2611 msg="find a route: flag=04000000 gw-10.0.0.1 via VPN2_ISP1"
[FPC04] id=65308 trace_id=301 func=__iprope_tree_check line=528 msg="gnum-100004, use int hash, slot=66, len=2"
[FPC04] id=65308 trace_id=301 func=fw_forward_handler line=980 msg="Allowed by Policy-3:
Step 2: Packet Forwarded to Tunnel Slot FPC5.
[FPC04] id=65308 trace_id=301 func=lb_fpm_vpn_postroute4 line=1944 msg="VPN2_ISP1: forward packet to esp-worker slot-5""Â
[FPC05] id=65308 trace_id=21 func=print_pkt_detail line=5802 msg="vd-root:0 received a packet(proto=6, 10.112.1.137:56944->10.110.2.204:443) tun_id=0.0.0.0 from VPN2_ISP1. flag [S], seq 407136194, ack 0, win 64240"
FPC05] id=65308 trace_id=21 func=init_ip_session_common line=5986 msg="allocate a new session-66f5e72a"
[FPC05] id=65308 trace_id=21 func=ipsecdev_hard_start_xmit line=669 msg="enter IPSec interface VPN2_ISP1, tun_id=0.0.0.0"
[FPC05] id=65308 trace_id=21 func=_do_ipsecdev_hard_start_xmit line=229 msg="output to IPSec tunnel VPN2_ISP1, tun_id=10.0.0.1, vrf 0"
[FPC05] id=65308 trace_id=21 func=esp_output4 line=896 msg="IPsec encrypt/auth"
Step 3: Reply packet comes back on fpc5 (sync-ack and sent out to ingress interface 612 via fpc5).
[FPC05] id=65308 trace_id=22 func=print_pkt_detail line=5802 msg="vd-root:0 received a packet(proto=6, 10.110.2.204:443->10.112.1.137:56944) tun_id=10.0.0.1 from VPN2_ISP1. flag [S.], seq 2438965273, ack 407136195, win 27600"
[FPC05] id=65308 trace_id=22 func=resolve_ip_tuple_fast line=5890 msg="Find an existing session, id-66f5e72a, reply direction"
[FPC05] id=65308 trace_id=22 func=vf_ip_route_input_common line=2611 msg="find a route: flag=00000000 gw-10.112.1.137 via 612"
[FPC05] id=65308 trace_id=22 func=npu_handle_session44 line=1207 msg="Trying to offloading session from VPN2_ISP1 to 612, skb.npu_flag=00000400 ses.state=00014104 ses.npu_state=0x00000000"
[FPC05] id=65308 trace_id=22 func=fw_forward_dirty_handler line=437 msg="state=00014104, state2=00000000, npu_state=00000000"
Step 4: Now the ack comes back on FPC4, and since FPC4 does not see sync-ack, the session is dropped.
[FPC04] id=65308 trace_id=302 func=print_pkt_detail line=5802 msg="vd-root:0 received a packet(proto=6, 10.112.1.137:56944->10.110.2.204:443) tun_id=0.0.0.0 from 612. flag [.], seq 407136195, ack 2438965274, win 1024"
[FPC04] id=65308 trace_id=302 func=resolve_ip_tuple_fast line=5890 msg="Find an existing session, id-19c6723c, original direction"
[FPC04] id=65308 trace_id=302 func=tcp_anti_reply line=1048 msg="org dir, ack in state syn_sent, suspicious"
[FPC04] id=65308 trace_id=302 func=ip_session_core_in line=6539 msg="anti-replay check fails, drop"Packet capture:
[FPC04] 2026-04-24 13:40:59.572169 612 in 10.112.1.137.56944 -> 10.110.2.204.443: syn 407136194
[FPC05] 2026-04-24 13:40:59.437692 VPN2_ISP1 out 10.112.1.137.56944 -> 10.110.2.204.443: syn 407136194
[FPC05] 2026-04-24 13:40:59.437779 VPN2_ISP1 in 10.110.2.204.443 -> 10.112.1.137.56944: syn 2438965273 ack 407136195
[FPC05] 2026-04-24 13:40:59.438585 612 out 10.110.2.204.443 -> 10.112.1.137.56944: syn 2438965273 ack 407136195
[FPC05] 2026-04-24 13:40:59.438588 port23 out 10.110.2.204.443 -> 10.112.1.137.56944: syn 2438965273 ack 407136195
[FPC04] 2026-04-24 13:40:59.573628 612 in 10.112.1.137.56944 -> 10.110.2.204.443: ack 2438965274
The issue is that the reply packet goes out via the tunnel slot(FPC5) towards the ingress interface instead of the clear-text handling(FPC4) slot.
If there was no ingress flow rule defined. Traffic flow would be like below (the ack packet is coming back to the tunnel slot FPC5 instead of FPC4).
[FPC04] 4.548058 port5 in 200.112.1.10.46392 -> 200.112.2.20.22: syn 3985339462
[FPC05] 4.545447 p6-p1 out 200.112.1.10.46392 -> 200.112.2.20.22: syn 3985339462
[FPC05] 4.546303 p6-p1 in 200.112.2.20.22 -> 200.112.1.10.46392: syn 3488653664 ack 3985339463
[FPC05] 4.546491 port5 out 200.112.2.20.22 -> 200.112.1.10.46392: syn 3488653664 ack 3985339463
FPC05] 4.546646 port5 in 200.112.1.10.46392 -> 200.112.2.20.22: ack 3488653665
[FPC05] 4.546660 p6-p1 out 200.112.1.10.46392 -> 200.112.2.20.22: ack 3488653665
Is it because of the flow rule that the ack packet always comes back to FPC4(clear-text handling slot).
Conclusion:
Traffic will get dropped if there is a flow rule explicitly defined to map it to a different FPC than the tunnel slot FPC.
The correct config would be to map the ingress (clear text traffic) and egress (tunnel traffic) to the same FPC.
