{"id":10494,"date":"2026-09-23T07:20:00","date_gmt":"2026-09-23T05:20:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=10494"},"modified":"2026-10-26T11:53:17","modified_gmt":"2026-10-26T10:53:17","slug":"wan-failover-what-happens-to-open-connections-when-the-line-switches","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/","title":{"rendered":"WAN Failover: What Happens to Open Connections When the Line Switches"},"content":{"rendered":"<p>WAN failover switches to another internet connection after a fault. A usable route does not automatically preserve open connections. The externally visible addresses, router state, transport protocol and application recovery determine the outcome.<\/p>\n<p>The typical case considered here is two independent uplinks with different public IPv4 addresses and NAT. NAT translates local addresses into the public address used on the internet. The router stores which internal connection belongs to each external address and port mapping. A design retaining a stable external address or using a suitable tunnel has different conditions. A claim that every session ends at the switch would therefore be incorrect.<\/p>\n<figure class=\"lw-diagram\"><img decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/dia-10494-wanfailover-20261024.png\" width=\"1120\" height=\"580\" loading=\"lazy\" alt=\"Route, connection and application recovery are separate stages. Detection time follows an explicitly stated example model.\"><figcaption>Detection model: I = 5 s, T = 1 s, N = 3. Route switching and application recovery add separate delays.<\/figcaption><\/figure>\n<h2>Why an address change interrupts ordinary TCP<\/h2>\n<p>An ordinary TCP connection is identified by source and destination addresses and ports. If traffic is translated to a different public source address after failover, the server cannot treat that traffic as the original connection. A new route alone does not transfer TCP state to a new address.<\/p>\n<p>The failure need not become visible at the exact switching instant. NAT state may initially remain pinned to WAN1; applications may wait for retransmissions or abort earlier through separate deadlines. If the original path returns in time with its state intact, a connection can resume. A normal switch to a different source address generally requires a new SSH or database connection.<\/p>\n<h2>Detection, route switching and application recovery<\/h2>\n<p>No formula based only on an interval and a failure count covers every router. A simple model can nevertheless be derived explicitly: probes start every <code>I<\/code>, each failed probe completes after <code>T<\/code>, and exactly <code>N<\/code> consecutive failures trigger the decision. Here <code>T &lt; I<\/code>, and the last probe before the outage succeeded. <code>d<\/code> is the delay until the first probe starts after the outage; <code>D<\/code> is the detection time.<\/p>\n<figure style=\"--cbb-digits:1\" class=\"cbb cbb--wrap cbb--numbers wp-block-code-beautifier-block-code\" data-lang=\"plain\"><figcaption class=\"cbb-head\"><span class=\"cbb-lang\">Text<\/span><span class=\"cbb-actions\"><button type=\"button\" class=\"cbb-button cbb-button--wrap\" data-cbb-action=\"wrap\" aria-pressed=\"true\" title=\"Wrap long lines\"><svg aria-hidden=\"true\" focusable=\"false\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M2 4h12M2 8h9.5a2.5 2.5 0 0 1 0 5H8m0 0 1.5-1.5M8 13l1.5 1.5M2 12h3\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg><span class=\"cbb-sr\">Wrap long lines<\/span><\/button><button type=\"button\" class=\"cbb-button cbb-button--copy\" data-cbb-action=\"copy\" data-cbb-done=\"Copied\" data-cbb-failed=\"Press Ctrl+C to copy\"><svg aria-hidden=\"true\" focusable=\"false\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><rect x=\"5.5\" y=\"5.5\" width=\"8\" height=\"8.5\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"\/><path d=\"M10.5 3.5V3A1.5 1.5 0 0 0 9 1.5H4A1.5 1.5 0 0 0 2.5 3v6.5A1.5 1.5 0 0 0 4 11h.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"\/><\/svg><span class=\"cbb-button-label\" aria-live=\"polite\">Copy<\/span><\/button><\/span><\/figcaption><pre class=\"cbb-pre\" tabindex=\"0\"><code class=\"cbb-code language-plain\" style=\"counter-reset:cbb-line 0;\"><span class=\"cbb-line\">I = 5 s, T = 1 s, N = 3\n<\/span><span class=\"cbb-line\">0 &lt;= d &lt; I\n<\/span><span class=\"cbb-line\">D = d + (N - 1) * I + T\n<\/span><span class=\"cbb-line\">\n<\/span><span class=\"cbb-line\">11 s &lt;= D &lt; 16 s\n<\/span><span class=\"cbb-line\">mean D = 13.5 s  (uniform d)<\/span><\/code><\/pre><\/figure>\n<p>The average assumes that an outage is equally likely at any point between two probe starts. The calculation excludes the subsequent routing change and application recovery. A different definition of tolerated failures, packet-loss evaluation over a continuously moving time window, delayed evaluation or probes scheduled after previous completion changes the model. For example, pfSense also documents loss thresholds, evaluation periods and alert intervals.<\/p>\n<h2>What may continue<\/h2>\n<table><thead><tr><th>Traffic<\/th><th>Under a typical NAT address change<\/th><\/tr><\/thead><tbody>\n<tr><td>SSH or a database over TCP<\/td><td>The existing connection normally cannot migrate; a new connection and possibly application recovery are needed.<\/td><\/tr>\n<tr><td>HTTP\/1.1 or HTTP\/2 download<\/td><td>The TCP connection is affected. Range support and verification of the same file version may allow resumption if the application implements that behaviour.<\/td><\/tr>\n<tr><td>HTTP\/3 over QUIC<\/td><td>A path change is possible, depending on implementation, connection state, path validation and time limits.<\/td><\/tr>\n<tr><td>Voice and video calls<\/td><td>Media may pause. Whether the call ends or finds another media path depends on signalling and mechanisms such as ICE.<\/td><\/tr>\n<tr><td>DNS<\/td><td>A UDP query can be lost and retried. DNS also uses TCP and other connection-oriented transports; universal survival is not guaranteed.<\/td><\/tr>\n<tr><td>VPN<\/td><td>Inner connections can survive under suitable conditions; automatic tunnel reconnection alone does not guarantee this.<\/td><\/tr>\n<\/tbody><\/table>\n<p>QUIC can associate packets with a connection through connection IDs. The new route must still work and undergo validation. Active migration requires a confirmed handshake and can be restricted; a NAT-induced address change needs separate consideration. HTTP\/3 alone does not guarantee uninterrupted application behaviour.<\/p>\n<p>A VPN must retain inner addresses and relevant state. Internet traffic through a remote VPN exit also needs a stable external mapping there. WireGuard supports roaming, while IKEv2 can use MOBIKE. If an interruption exceeds an inner application&#8217;s deadline, a stable address alone cannot preserve the application session.<\/p>\n<h2>Recovery without an unnecessary second interruption<\/h2>\n<p>Returning to WAN1 does not have to move existing connections off WAN2 immediately. A router can prefer WAN1 for new connections while existing WAN2 states expire naturally. Forced rerouting or state deletion can instead cause another interruption. The actual behaviour depends on configuration.<\/p>\n<p>A recovery delay and separate failure\/recovery criteria limit repeated switching. A fixed timer ratio is not a universal solution. Link stability, application requirements and state handling determine the appropriate policy.<\/p>\n<h2>A meaningful failover test<\/h2>\n<p>Monitoring traffic must demonstrably use the uplink being monitored. A responding modem does not prove internet reachability, and an unavailable monitoring target does not prove an uplink failure. Multiple suitable signals or targets can improve the decision where supported. pfSense specifies a different monitor IP for each gateway.<\/p>\n<p>A planned test records the outage, gateway decision, successful new connection and recovery of ongoing applications separately. Recovery to the primary link, incoming calls and the actual protocols in use also belong in the test. Resumable downloads and backups reduce the consequences without promising survival for every session.<\/p>\n<div class=\"lw-faq\"><h2>Questions and answers<\/h2>\n<h3>Why can an IP phone remain unreachable after failover?<\/h3><p>A registration or established SIP flow may still refer to the old uplink. NAT or firewall state can also pin traffic to WAN1. SIP providers differ in registration handling, flow usage, keep-alives and re-registration. A shorter registration interval therefore does not solve every case.<\/p><p>Selective deletion of affected states can help. Flushing the entire state table can also interrupt working connections. A false monitoring alarm does not make this action harmless. Changes belong in a tested configuration for the particular router and telephone service.<\/p>\n<h3>Does a shorter probe interval speed up switching?<\/h3><p>It reduces the detection component in the stated model. With <code>I=1 s<\/code>, <code>T=0.2 s<\/code> and <code>N=3<\/code>, this component ranges from 2.2 to just under 3.2 seconds. Other monitoring models may behave differently. Over-sensitive thresholds can trigger unnecessary switches under load or after isolated probe losses.<\/p>\n<h3>Does using both uplinks simultaneously help?<\/h3><p>Connection-based load balancing distributes new connections across multiple paths. When one uplink fails, connections on the other path may continue if state handling causes no additional interruption. This differs from bonding that carries individual connections across multiple paths.<\/p><p>IP-bound logins can encounter problems when outgoing addresses change. In pfSense, sticky connections associate a source host with the same gateway while the association remains valid. Other products may group traffic differently. This limits distribution for a single device and does not migrate open connections.<\/p><\/div>\n<div class=\"lw-quellen\"><h2>Sources<\/h2><ul><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9293.html\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 9293: Transmission Control Protocol<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9000.html#section-9\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 9000: QUIC connection migration<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc4555.html\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 4555: IKEv2 mobility and multihoming (MOBIKE)<\/a><\/li><li><a href=\"https:\/\/www.wireguard.com\/#built-in-roaming\" target=\"_blank\" rel=\"noopener noreferrer\">WireGuard: Built-in roaming<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc8445.html#section-9\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 8445: ICE restarts<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc7766.html\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 7766: DNS transport over TCP<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9110.html#name-range-requests\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 9110: HTTP range requests<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5626.html\" target=\"_blank\" rel=\"noopener noreferrer\">IETF RFC 5626: Client-initiated SIP connections<\/a><\/li><li><a href=\"https:\/\/docs.netgate.com\/pfsense\/en\/latest\/routing\/gateway-configure.html\" target=\"_blank\" rel=\"noopener noreferrer\">Netgate: Gateway settings and monitoring<\/a><\/li><li><a href=\"https:\/\/docs.netgate.com\/pfsense\/en\/latest\/config\/advanced-misc.html#gateway-monitoring\" target=\"_blank\" rel=\"noopener noreferrer\">Netgate: State handling on gateway failure and recovery<\/a><\/li><li><a href=\"https:\/\/docs.netgate.com\/pfsense\/en\/latest\/multiwan\/load-balance-and-failover.html\" target=\"_blank\" rel=\"noopener noreferrer\">Netgate: Load balancing and failover<\/a><\/li><\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>WAN failover restores a usable route, but open connections depend on addresses, router state and protocol support. A clear timing model separates failure detection from application recovery.<\/p>\n","protected":false},"author":1,"featured_media":28323,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[91243,91707],"class_list":["post-10494","post","type-post","status-publish","format-standard","hentry","category-it-networks","tag-networking","tag-unifi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WAN Failover: What Happens to Open Connections When the Line Switches | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"Why a WAN failover kills open TCP connections, how long the switch actually takes, which traffic survives it, and why switching back costs the same again.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WAN Failover: What Happens to Open Connections When the Line Switches | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"Why a WAN failover kills open TCP connections, how long the switch actually takes, which traffic survives it, and why switching back costs the same again.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T05:20:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-26T10:53:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-10494-the-moment-of-the-switch-what-dies-w-n.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"WAN Failover: What Happens to Open Connections When the Line Switches\",\"datePublished\":\"2026-09-23T05:20:00+00:00\",\"dateModified\":\"2026-10-26T10:53:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/\"},\"wordCount\":1076,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/lw-flux3-20261031\\\/hero-10494.png\",\"keywords\":[\"Networking\",\"UniFi\"],\"articleSection\":[\"IT &amp; Networks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/\",\"name\":\"WAN Failover: What Happens to Open Connections When the Line Switches | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/lw-flux3-20261031\\\/hero-10494.png\",\"datePublished\":\"2026-09-23T05:20:00+00:00\",\"dateModified\":\"2026-10-26T10:53:17+00:00\",\"description\":\"Why a WAN failover kills open TCP connections, how long the switch actually takes, which traffic survives it, and why switching back costs the same again.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/lw-flux3-20261031\\\/hero-10494.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/lw-flux3-20261031\\\/hero-10494.png\",\"width\":1200,\"height\":630,\"caption\":\"WAN Failover: What Happens to Open Connections When the Line Switches\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/wan-failover-what-happens-to-open-connections-when-the-line-switches\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WAN Failover: What Happens to Open Connections When the Line Switches\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WAN Failover: What Happens to Open Connections When the Line Switches | Lukas Wojcik","description":"Why a WAN failover kills open TCP connections, how long the switch actually takes, which traffic survives it, and why switching back costs the same again.","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:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/","og_locale":"en_US","og_type":"article","og_title":"WAN Failover: What Happens to Open Connections When the Line Switches | Lukas Wojcik","og_description":"Why a WAN failover kills open TCP connections, how long the switch actually takes, which traffic survives it, and why switching back costs the same again.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-09-23T05:20:00+00:00","article_modified_time":"2026-10-26T10:53:17+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-10494-the-moment-of-the-switch-what-dies-w-n.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"WAN Failover: What Happens to Open Connections When the Line Switches","datePublished":"2026-09-23T05:20:00+00:00","dateModified":"2026-10-26T10:53:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/"},"wordCount":1076,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/lw-flux3-20261031\/hero-10494.png","keywords":["Networking","UniFi"],"articleSection":["IT &amp; Networks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/","name":"WAN Failover: What Happens to Open Connections When the Line Switches | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/lw-flux3-20261031\/hero-10494.png","datePublished":"2026-09-23T05:20:00+00:00","dateModified":"2026-10-26T10:53:17+00:00","description":"Why a WAN failover kills open TCP connections, how long the switch actually takes, which traffic survives it, and why switching back costs the same again.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/lw-flux3-20261031\/hero-10494.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/lw-flux3-20261031\/hero-10494.png","width":1200,"height":630,"caption":"WAN Failover: What Happens to Open Connections When the Line Switches"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/wan-failover-what-happens-to-open-connections-when-the-line-switches\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WAN Failover: What Happens to Open Connections When the Line Switches"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/10494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=10494"}],"version-history":[{"count":8,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/10494\/revisions"}],"predecessor-version":[{"id":26700,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/10494\/revisions\/26700"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/28323"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=10494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=10494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=10494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}