Remote Internet Access issue
Hello,
I have issue with RIA by Tunnel in case of main WAN link is down or IP SLA is not meet...
I have two sites (MAIN and SMALL) and FGTs 100F in each.
This SMALL Site has three interfaces:
WAN1 - Internet access
IPSec Tunnel0 - P2P Link between sites
IPSec Tunnel1 - use WAN1 Internet Interface
I have one SDWAN zone with all these interfaces above and two rule:
1. To_MAIN Site (use Tunnel0 -prefered, and Tunnel1) (for traffic between sites)
2.To_Internet (use WAN - prefered, and Tunnel0 when WAN int has issue or is down (IP SLA))
I have FW rule to from SMALL to MAIN site and destination interface is SDWAN zone
Issue is when WAN link has issue (or is down) and is removed from RoutingTable (thanks to SLA) - Internet don't work, I see in debug that trafic is going to tunnel0 but not work, I found also in debug that FGT is still do NAT using IP of WAN Interface , but why ?? When I disable NAT on FW rulle is working, but i need NAT when WAN link(Internet) will be up again...
LOG below:
2024-08-30 14:37:12 id=20085 trace_id=188 func=print_pkt_detail line=5867 msg="vd-root:0 received a packet(proto=1, 10.40.3.10:1->8.8.4.4:2048) tun_id=0.0.0.0 from vlan40. type=8, code=0, id=1, seq=2696."
2024-08-30 14:37:12 id=20085 trace_id=188 func=resolve_ip_tuple_fast line=5953 msg="Find an existing session, id-2d3ee778, original direction"
2024-08-30 14:37:12 id=20085 trace_id=188 func=npu_handle_session44 line=1183 msg="Trying to offloading session from vlan40 to Tunnel0-ToMain, skb.npu_flag=00000400 ses.state=00012204 ses.npu_state=0x05041008"
2024-08-30 14:37:12 id=20085 trace_id=188 func=fw_forward_dirty_handler line=410 msg="state=00012204, state2=00004001, npu_state=05041008"
2024-08-30 14:37:12 id=20085 trace_id=188 func=ids_receive line=418 msg="send to ips"
2024-08-30 14:37:12 id=20085 trace_id=188 func=__ip_session_run_tuple line=3487 msg="SNAT 10.40.3.10->169.xx.xx.10:60417"
2024-08-30 14:37:12 id=20085 trace_id=188 func=ipsecdev_hard_start_xmit line=669 msg="enter IPSec interface Tunnel0-ToMain, tun_id=0.0.0.0"
2024-08-30 14:37:12 id=20085 trace_id=188 func=_do_ipsecdev_hard_start_xmit line=229 msg="output to IPSec tunnel Tunnel0-ToMain"
2024-08-30 14:37:12 id=20085 trace_id=188 func=esp_output4 line=844 msg="IPsec encrypt/auth"
2024-08-30 14:37:12 id=20085 trace_id=188 func=ipsec_output_finish line=544 msg="send to 10.254.254.1 via intf-internal3"
Shouldn't be used for NAT IP of the Tunnel0 Interface ??
Thanks
