{"id":149,"date":"2026-04-16T13:18:23","date_gmt":"2026-04-16T11:18:23","guid":{"rendered":"https:\/\/pprzybyla.com\/blog\/?p=149"},"modified":"2026-04-16T14:33:37","modified_gmt":"2026-04-16T12:33:37","slug":"terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface","status":"publish","type":"post","link":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/","title":{"rendered":"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface"},"content":{"rendered":"\n<p>If a FortiGate has a WAN interface that obtains an IP address via DHCP, it will renew the lease halfway through its duration (if the lease is for 2 hours, the FGT will automatically renew the lease every hour). This can result in session drops in applications (e.g., VPN RA).<\/p>\n\n\n\n<p>We first observed this issue when using FortiExtender, which establishes a CAPWAP connection to the FGT and provides it with a MODEM interface. The DHCP on the FGT is created by FEX and is not configurable; the settings are independent of the APN\/Carrier.<\/p>\n\n\n\n<p>In some cases, when the session table on the FGT is refreshed, it will mark session flags as \u201cdirty\u201d; when debugging the session, you may observe: fw_forward_dirty_handler as \u2018no session matched\u2019.<\/p>\n\n\n\n<p>The FGT \u201cforgets\u201d that it saw a 3-way handshake for this session and marks it as dirty. Since this is a TCP session without a 3-way handshake, the packets will be dropped.<\/p>\n\n\n\n<p>The workaround is to configure an exception per policy:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">config system settings\n    set tcp-session-without-syn enable\nend\nconfig firewall policy\n    edit X\n        set tcp-session-without-syn all\n    next\nend<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If a FortiGate has a WAN interface that obtains an IP address via DHCP, it will renew the lease halfway through its duration (if the lease is for 2 hours, the FGT will automatically renew the lease every hour). This can result in session drops in applications (e.g., VPN RA). We first observed this issue\u2026 <span class=\"read-more\"><a href=\"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-fortigate"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface - Blog\" \/>\n<meta property=\"og:description\" content=\"If a FortiGate has a WAN interface that obtains an IP address via DHCP, it will renew the lease halfway through its duration (if the lease is for 2 hours, the FGT will automatically renew the lease every hour). This can result in session drops in applications (e.g., VPN RA). We first observed this issue\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-16T11:18:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-16T12:33:37+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/#\\\/schema\\\/person\\\/78e3f329b514e87d4b8591f2e797b558\"},\"headline\":\"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface\",\"datePublished\":\"2026-04-16T11:18:23+00:00\",\"dateModified\":\"2026-04-16T12:33:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/\"},\"wordCount\":183,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/#\\\/schema\\\/person\\\/78e3f329b514e87d4b8591f2e797b558\"},\"articleSection\":[\"Fortigate\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/\",\"url\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/\",\"name\":\"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-04-16T11:18:23+00:00\",\"dateModified\":\"2026-04-16T12:33:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/\",\"name\":\"Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/#\\\/schema\\\/person\\\/78e3f329b514e87d4b8591f2e797b558\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/#\\\/schema\\\/person\\\/78e3f329b514e87d4b8591f2e797b558\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/pprzybyla.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/my-photo-url.jpg\",\"url\":\"http:\\\/\\\/pprzybyla.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/my-photo-url.jpg\",\"contentUrl\":\"http:\\\/\\\/pprzybyla.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/my-photo-url.jpg\",\"width\":800,\"height\":800,\"caption\":\"admin\"},\"logo\":{\"@id\":\"http:\\\/\\\/pprzybyla.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/my-photo-url.jpg\"},\"sameAs\":[\"http:\\\/\\\/pprzybyla.com\\\/blog\"],\"url\":\"https:\\\/\\\/pprzybyla.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/","og_locale":"en_US","og_type":"article","og_title":"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface - Blog","og_description":"If a FortiGate has a WAN interface that obtains an IP address via DHCP, it will renew the lease halfway through its duration (if the lease is for 2 hours, the FGT will automatically renew the lease every hour). This can result in session drops in applications (e.g., VPN RA). We first observed this issue\u2026 Read More &raquo;","og_url":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/","og_site_name":"Blog","article_published_time":"2026-04-16T11:18:23+00:00","article_modified_time":"2026-04-16T12:33:37+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/#article","isPartOf":{"@id":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/"},"author":{"name":"admin","@id":"https:\/\/pprzybyla.com\/blog\/#\/schema\/person\/78e3f329b514e87d4b8591f2e797b558"},"headline":"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface","datePublished":"2026-04-16T11:18:23+00:00","dateModified":"2026-04-16T12:33:37+00:00","mainEntityOfPage":{"@id":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/"},"wordCount":183,"commentCount":0,"publisher":{"@id":"https:\/\/pprzybyla.com\/blog\/#\/schema\/person\/78e3f329b514e87d4b8591f2e797b558"},"articleSection":["Fortigate"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/","url":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/","name":"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface - Blog","isPartOf":{"@id":"https:\/\/pprzybyla.com\/blog\/#website"},"datePublished":"2026-04-16T11:18:23+00:00","dateModified":"2026-04-16T12:33:37+00:00","breadcrumb":{"@id":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pprzybyla.com\/blog\/terminating-tcp-sessions-when-a-dhcp-lease-is-renewed-on-the-wan-interface\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pprzybyla.com\/blog\/"},{"@type":"ListItem","position":2,"name":"FortiGate terminating TCP sessions when a DHCP lease is renewed on the WAN interface"}]},{"@type":"WebSite","@id":"https:\/\/pprzybyla.com\/blog\/#website","url":"https:\/\/pprzybyla.com\/blog\/","name":"Blog","description":"","publisher":{"@id":"https:\/\/pprzybyla.com\/blog\/#\/schema\/person\/78e3f329b514e87d4b8591f2e797b558"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pprzybyla.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/pprzybyla.com\/blog\/#\/schema\/person\/78e3f329b514e87d4b8591f2e797b558","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/pprzybyla.com\/blog\/wp-content\/uploads\/2025\/02\/my-photo-url.jpg","url":"http:\/\/pprzybyla.com\/blog\/wp-content\/uploads\/2025\/02\/my-photo-url.jpg","contentUrl":"http:\/\/pprzybyla.com\/blog\/wp-content\/uploads\/2025\/02\/my-photo-url.jpg","width":800,"height":800,"caption":"admin"},"logo":{"@id":"http:\/\/pprzybyla.com\/blog\/wp-content\/uploads\/2025\/02\/my-photo-url.jpg"},"sameAs":["http:\/\/pprzybyla.com\/blog"],"url":"https:\/\/pprzybyla.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":2,"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pprzybyla.com\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}