Skip to main content
edyrmishi
Staff
Staff
Oct 5, 2026 12:01 PM UTC

VIP DNAT and Transparent Policy traffic failure after firmware upgrade due to IP pool configuration

  • Oct 26, 2026 4:08 PM UTC
  • 0 replies
  • 106 views
  • Translate All

Description

An issue where traffic utilizing a combination of Virtual IP (VIP) DNAT, Transparent Firewall Policies, and Central SNAT fails after upgrading to FortiProxy 7.6.6 or 7.6.7, resulting in incoming packets being dropped because they are incorrectly processed as local traffic.

Scope

FortiProxy.

Solution

LAB Topology:

2e05b900.png


Following an upgrade to 7.6.6 or 7.6.7, a software defect is triggered by IP pools where the startip and endip parameters are configured with the exact same address (single-IP pools). When this configuration is present, the system misinterprets incoming packets destined for the VIP external IP address. Rather than triggering a VIP/DNAT lookup and evaluating the transparent firewall policy, the kernel routing engine erroneously treats the packet as local traffic.


In the reported scenario, LDAP requests received on port9 were being sent to the VIP address 10.240.20.54:389. The traffic was expected to be translated by the VIP to 217.150.144.195:389 and then forwarded through the Transparent Firewall Policy and Central SNAT configuration.


After an upgrade from FortiOS v7.6.4, the LDAP traffic was no longer being processed by the VIP. Only the incoming SYN packets were being observed on port9, while no VIP/DNAT lookup or subsequent firewall policy match was being performed.


FPX # diagnose sniffer packet any 'host 10.240.20.200' 4 0 l
2026-09-27 14:22:45.044827 port9 in 10.240.20.200.55356 -> 10.240.20.54.389: syn 1830184406 
2026-09-27 14:22:46.082029 port9 in 10.240.20.200.55356 -> 10.240.20.54.389: syn 1830184406 
2026-09-27 14:22:47.106012 port9 in 10.240.20.200.55356 -> 10.240.20.54.389: syn 1830184406


FPX # 2026-09-27 12:30:02 id=20085 trace_id=1056 func=print_pkt_detail line=112 msg="vd-root at hook-fpx_setup_flow_pre_route received a packet(proto=6, 10.240.20.200:34526->10.240.20.54:389) from port9. flag [S], seq 3630758512, ack 0, win 64240"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=440 msg="basechain=pre_ha verdict=1"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=440 msg="basechain=tftp-pre-0 verdict=1"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=440 msg="basechain=ftp-pre-0 verdict=1"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=ip_route_input_slow line=2244 msg="start input route 10.240.20.200->10.240.20.54 dev port9 vfid 0"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=__dump_flowi4 line=54 msg="ip_route_input_slow:2313 flowi4 saddr=10.240.20.200 daddr=10.240.20.54 sport=0 dport=0 iif=1
1 oif=0 proto=0 mark=0x40 flag=0x0 ready to route packet"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=ip_route_input_slow line=2323 msg="route found type=2 table_id=255 pol_route=0"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=ip_local_deliver line=255 msg="deliver skb to upper layer"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=388 msg="chain=input_start verdict=-3 -> admin_trust"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=388 msg="chain=admin_trust verdict=-3 -> intf"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=388 msg="chain=intf verdict=-3 -> intf-allow-port9-0-0"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=388 msg="chain=intf-allow-port9-0-0 verdict=-3 -> webproxy"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nft_do_chain line=440 msg="basechain=input_start verdict=0"
2026-09-27 12:30:02 id=20085 trace_id=1056 func=nf_hook_slow line=633 msg="dropped on hook 1"


  • 'route found type=2 table_id=255' --> indicating a local route table match.

  • 'ip_local_deliver' --> delivering the packet to upper layers.

  • 'dropped on hook 1' --> kernel discarding the packet.


Note: This issue does not occur on firmware version v7.6.4 and older.


To restore traffic flow without requiring a firmware downgrade, the affected single-IP pools must be modified to form an expanded, valid range by incrementing the endip value by one.


  1. Identify affected IP pools:


Review the device configuration to locate any IP pools where the start and end IP addresses are identical.


config firewall ippool
    edit "Outbound-Pool"
        set startip 80.80.80.80
        set endip 80.80.80.80
    next
end


  1. Modify the IP pool range in the CLI:


Update the endip parameter to include an adjacent address (for example, expanding a single-IP pool to a /31 equivalent range):


config firewall ippool
    edit "Outbound-Pool"
        set startip 80.80.80.80
        set endip 80.80.80.81
    next
end


Applying this adjustment corrects the system's internal routing logic, allowing incoming VIP traffic to properly match the transparent firewall policy and forward successfully to the destination server.


This can be confirmed in the packet capture and debug flow output:


FPX # diagnose sniffer packet any 'host 10.240.20.200' 4 0 l
2026-09-27 14:17:23.573687 port9 in 10.240.20.200.40258 -> 10.240.20.54.389: syn 3033992906
2026-09-27 14:17:23.580548 port9 out 10.240.20.54.389 -> 10.240.20.200.40258: syn 1078730320 ack 3033992907
2026-09-27 14:17:23.580773 port9 in 10.240.20.200.40258 -> 10.240.20.54.389: ack 1078730321


FPX # 2026-09-27 12:40:33 id=20085 trace_id=1 func=print_pkt_detail line=112 msg="vd-root at hook-fpx_setup_flow_pre_route received a packet(proto=6, 10
.240.20.200:37472->10.240.20.54:389) from port9. flag [S], seq 4289791503, ack 0, win 64240"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=440 msg="basechain=pre_ha verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=440 msg="basechain=tftp-pre-0 verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=440 msg="basechain=ftp-pre-0 verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_nat_eval line=132 msg="SNAT to 10.5.149.75"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=395 msg="chain=pre_nat verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=440 msg="basechain=pre_ipv6_ns verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=ip_route_input_slow line=2244 msg="start input route 10.240.20.200->10.5.149.75 dev port9 vfid 0"
2026-09-27 12:40:33 id=20085 trace_id=1 func=__dump_flowi4 line=54 msg="ip_route_input_slow:2313 flowi4 saddr=10.240.20.200 daddr=10.5.149.75 sport=0 dport=0 iif=11 oi
f=0 proto=0 mark=0x40 flag=0x0 ready to route packet"
2026-09-27 12:40:33 id=20085 trace_id=1 func=ip_route_input_slow line=2323 msg="route found type=1 table_id=254 pol_route=0"
2026-09-27 12:40:33 id=20085 trace_id=1 func=ip_forward line=180 msg="proceed with forwarding skb"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=388 msg="chain=forward_filter_start verdict=-3 -> policy"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=388 msg="chain=policy verdict=-3 -> policy-403-action-0"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_nft_protoglue_commit_setup line=237 msg="redirect mask 0x15482a; matched 0x0; redirectable=0"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_nft_feature_commit line=43 msg="set ct policy id 403"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_nft_feature_commit line=36 msg="mod ct fbits 0x200 result 0x200"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=395 msg="chain=policy-403-action-0 verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=395 msg="chain=forward_nat_start verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_nft_feature_commit line=36 msg="mod ct fbits 0x40 result 0x240"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_nft_feature_commit line=50 msg="set nat mark 5"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=440 msg="basechain=forward_shaping_start verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_debug_flow_dump_ct_feature line=542 msg="fpx_tproxy:592 ct=00000000dd826092 feature: MASQ|KERN_LOG|"
2026-09-27 12:40:33 id=20085 trace_id=1 func=fpx_debug_flow_dump_ct_feature line=542 msg="fpx_tproxy:702 ct=00000000dd826092 feature: MASQ|KERN_LOG|"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nf_nat_masquerade_ipv4 line=62 msg="Masquerade, newsrc 10.5.129.139"
2026-09-27 12:40:33 id=20085 trace_id=1 func=nft_do_chain line=395 msg="chain=nat_post verdict=1"
2026-09-27 12:40:33 id=20085 trace_id=1 func=shared_shaper_handler line=773 msg="ct 00000000dd826092 forward shaper <none> result accept"
2026-09-27 12:40:33 id=20085 trace_id=1 func=shaper_handler line=848 msg="shaping check finished for ct 00000000dd826092, result accept"


Note: If the issue persists after applying these changes, a system reboot may be required for the changes to take effect.


After the workaround – working traffic.

After expanding the single-IP pool (e.g. changing endip from 80.80.80.80 to 80.80.80.81):

route found type=1 table_id=254 pol_route=0
ip_forward ... "proceed with forwarding skb"
...
chain=policy verdict=-3 → policy-403-action-0
...
Masquerade, newsrc 10.5.129.139


What this means:

  • route found type=1 table_id=254: Route type 1 = unicast (normal forwarding route). Table 254 is the main routing table.

  • ip_forward: Packet is forwarded (not delivered locally).

  • Policy / SNAT messages: Transparent policy is matched and Central SNAT (masquerade) is applied.

Sniffer now shows the full three-way handshake.


Note: This issue will get permanently fixed in the upcoming newer firmware releases.

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024