Skip to content

Why Does a Router VPN Disconnect When an ISP Modem Reboots?

When the ISP modem restarts, a router VPN often stays down even after the internet returns. Here is why that happens and how to check it step by step.

10 min readUpdated Nov 12, 2026By XPASS Editorial Team

Why Does a Router VPN Disconnect When an ISP Modem Reboots?

Many people set up a VPN on their home router, and it works well for days. Then the internet provider's modem restarts for an update or a power flicker, the lights come back, other devices get online, and the router VPN stays down. Sometimes it recovers after a few minutes. Sometimes it does not recover until someone logs into the router and presses a button. This guide explains why that happens and how to work out which part of the chain is slow.

The advice here is deliberately general. Routers differ a lot in firmware, settings and how they handle a lost tunnel, and this article does not claim that any specific router brand or firmware is supported by the XPASS pass. If you want to know whether your router can run a VPN client at all, start with the help guide for setting up a VPN on a router. Here we stay on one question: what goes wrong when the modem reboots, and what can you check?

What actually happens when the modem reboots

A home connection usually has two boxes in a row, even if they are in one case. The modem (or the optical terminal) talks to the provider. The router sits behind it, hands out addresses to your phones and laptops, and runs the VPN client. When the modem reboots, the order of events looks roughly like this:

  1. The modem loses its link to the provider and goes dark for a short time.
  2. The router sees its WAN port lose the link, or sees no replies from upstream.
  3. The modem finishes starting and re-establishes the line with the provider.
  4. The router asks for a new address on its WAN port. This is usually a DHCP request, or a PPPoE login on some lines.
  5. The router receives an address. It may be the same as before or a different one.
  6. The router VPN client has to notice the old tunnel is gone, find the VPN server again, and build a new tunnel.

Steps 1 to 5 are about ordinary internet access. Step 6 is the part that often lags. A phone usually reconnects its VPN quickly because the app is written to react to network changes. A router VPN client is a smaller piece of software inside the firmware, and it may react slowly or not at all.

Why the old tunnel does not survive

A VPN tunnel is a conversation between your router and a VPN server. Several things in that conversation depend on the connection that existed before the reboot.

The public address may change

The tunnel was opened from a particular public IP address. After the reboot, your provider may give you a different one. The VPN server still has a record of the old address and may keep sending replies to it. Your router, now on a new address, never receives them. Neither side is told that the other has moved, so the tunnel looks alive on paper while no traffic flows.

A public IP address is the address the wider internet sees for your home.

The router's connection records are wiped

Routers keep a table of active connections so that replies can find their way back to the right device. This is part of network address translation. When the WAN link drops, many routers clear that table. Any tunnel that relied on it has to be rebuilt from scratch, because the return path is gone.

Keepalive and timeout settings are slow

Most VPN clients send small keepalive messages so both ends know the tunnel is still up. If keepalives stop getting answers, the client waits for a timeout before it decides to retry. On a router that timeout can be long, sometimes a few minutes. During that time the router believes the tunnel is fine. You see "connected" on the status page, but nothing works.

The clock or DNS is not ready yet

After a reboot, the router may not have the right time or working DNS for a short while. A VPN client that needs to look up the server name will fail until DNS answers. A client that checks certificates can fail until the clock is right. The first attempt fails, and the next attempt may be scheduled much later. DNS is the lookup that turns a name into an address.

When the modem and router are both rebooting

The picture gets harder when the power comes back after an outage. The modem, the router and sometimes a mesh unit all start at once. The router is often ready before the modem, so it tries the VPN with no internet at all. That first attempt fails, and the client may wait a long time before the next try.

This race is common and has a simple version of a fix: start the equipment in order, modem first, then the router after the modem has a stable link. You cannot control this during a real power cut, but you can learn the pattern. If the VPN always fails after a blackout and always recovers after you restart only the router, boot order is the likely cause.

Single NAT, double NAT and carrier-grade NAT

How your router is connected to the modem also changes how clean the recovery is.

  • Modem in router mode with your router behind it. This is double NAT: the modem translates addresses, and your router translates them again. A reboot of the modem resets the first layer, and your router may not notice that the addresses changed upstream.
  • Modem in bridge mode. The modem only passes the connection through, and your router receives the public address directly. This tends to be simpler, but it is a change to your network. Ask your provider first, because some lines need the provider's own device to stay in control.
  • Carrier-grade NAT. Some providers share one public address between many customers and give your router an address from a shared range. See RFC 6598 for how that range is defined. Reboots can move you between shared addresses, and some features such as inbound connections do not work. The article on using a VPN behind CGNAT explains this in detail.

None of these layouts is wrong. They just behave differently at reconnect time, so it helps to know which one you have.

How to test it step by step

Before changing settings, find out what really happens. A simple test takes about fifteen minutes and needs no special tools.

  1. Note the starting point. With the VPN connected, open the router status page and write down the WAN address, the VPN status and the time. Also check your public address from a laptop behind the router.
  2. Restart only the modem. Unplug the modem for ten seconds, then plug it back in. Leave the router alone.
  3. Watch the WAN port. Refresh the router status page every thirty seconds. Note when the WAN link comes back and what address it shows.
  4. Watch the VPN status. Note when it first says disconnected, when it says connected again, and whether traffic really flows. A page that loads proves more than a green icon.
  5. Compare addresses. Did the WAN address change? If it changed and the VPN stayed down, the stale-tunnel problem is likely.
  6. Read the log. Most routers have a system log. Look for messages about the tunnel, DNS failures, timeouts or retries, and note the timestamps.
  7. Try the manual fix. If the VPN does not return, restart only the VPN client on the router and time how long it takes to come back.

Write the times down. A recovery time of two minutes is a different problem from a tunnel that never returns.

What to try if it does not recover

Treat these as options to check in your own router's menus. Names vary, and some firmware does not offer all of them.

  • Shorter keepalive or retry time. If the VPN client lets you set how often it checks the tunnel and how long it waits before retrying, a smaller value makes recovery quicker. Do not set it to an extreme value, because very short timers can cause needless reconnects on a weak line.
  • Restart the client when the WAN comes back. Some firmware lets you run an action when the WAN status changes, or lets you schedule a periodic restart of the VPN service. A scheduled restart in the quiet hours is a blunt tool, but it limits how long a stale tunnel can last.
  • Set a reliable DNS for the router itself. If the router cannot look up the VPN server name right after boot, a plain, stable DNS server for the router gives the client a better chance on the first try. Keep the choice simple and test it.
  • Give the modem time to finish. If you reboot both devices on purpose, wait until the modem is fully online before powering the router.
  • Update the router firmware. Reconnect behaviour is a common thing for vendors to fix. Update from the vendor's official source and read the release notes first.
  • Check the pass is still valid. A VPN that fails to reconnect might simply have an expired pass. Open My Pass and look at the days remaining before blaming the hardware.

If none of this helps, the router firmware may not be built to recover a lost tunnel by itself. In that case, a phone or laptop running the VPN app on its own may be a more reliable choice for the devices you care about. The article comparing a router VPN with a VPN app lays out the trade-offs.

What happens to your traffic during the gap

This is the part people forget. While the tunnel is down, your devices may still be online. If the router falls back to the normal connection, then for the minutes the VPN is missing, traffic leaves with your real public address. If the router blocks traffic instead, the devices lose internet until the tunnel returns. Neither is a bug on its own. It is a choice, and you should know which one your router makes.

You can test it with the same modem-restart routine. After the modem comes back but before the VPN does, check from a laptop whether pages load and which public address a lookup site shows. If pages load with your real address, the router fails open. The article on a router VPN kill switch explains how to make a router fail closed and what that costs you.

If you have two internet lines, the situation is different again, because traffic can move to the second line while the first one is rebooting. The article on dual WAN with a VPN router describes that setup.

A plain example

Mali has a travel-style router at home. Her VPN works every evening. One night the provider restarts the modem for an update. In the morning her tablet is online, but the router status page still says the VPN is connected. A site that shows the public address displays her real address, not the VPN one.

She runs the test above. After a modem-only restart, the WAN comes back in about a minute with a different address. The router log shows the VPN client retrying every ten minutes. Restarting only the VPN client brings the tunnel back in twenty seconds. The cause is clear: the client noticed too late that the old tunnel was dead.

She makes two changes. She shortens the retry time in the VPN settings, and she schedules a VPN service restart for the early morning hours. The next time the modem reboots, the tunnel returns in about three minutes. She also decides that her banking laptop will use the VPN app on the laptop itself, so it does not depend on the router at all.

Your result will differ, but the method is the same: reproduce, time it, read the log, then change one thing at a time.

Quick reference

Symptom Likely cause First thing to try
Internet works, VPN shows connected but nothing loads through it Stale tunnel after address change Restart the VPN client on the router
VPN returns after several minutes without help Long keepalive or retry timer Shorten the timer if the firmware allows
VPN fails only after a power cut Router starts before modem is online Power the modem first, then the router
VPN client logs show name lookup errors DNS not ready after boot Set a stable DNS for the router itself
Devices have internet but show your real address Router fails open Read about kill switch rules and test again
Reconnects are worse behind a second router Double NAT Ask the provider about bridge mode
VPN will not return at all Expired pass or wrong login Check My Pass and re-enter the details

Limits and what to watch for

A few honest limits apply to everything above.

  • Not every router can recover well. Some firmware has a basic VPN client with no retry settings. You cannot fix a missing feature with a setting.
  • A VPN does not guarantee that access or privacy is perfect. A tunnel that is up still depends on the provider, the device and the sites you visit. Treat the VPN as one layer, not a guarantee.
  • Your provider controls the line. Reboots, address changes and sharing of public addresses are the provider's decisions. A VPN cannot stop them.
  • Settings may differ from this article. Menu names, defaults and behaviour change between models and versions. Use your router's documentation for exact steps.
  • Do not change the modem blindly. Bridge mode and similar changes can cut off services your provider supplies, such as voice or TV. Ask first.
  • Security is not only about the tunnel. Keep the router firmware updated, change default passwords and turn off remote management you do not need.

If you try the steps and the pattern still does not make sense, write down the timeline you recorded and bring it to support. A clear timeline of when the WAN returned, what address it had and what the VPN log said makes the answer much quicker.

Summary

A router VPN often drops when the ISP modem reboots because the tunnel depends on the old connection: the public address, the router's connection records, and the timers that decide when to retry. The internet returns first, and the VPN client may take minutes to notice the old tunnel is dead, or may wait for a manual restart. Test with a modem-only restart, write down the timings, read the log, and then change one setting at a time, such as a shorter retry time, a stable DNS for the router or a scheduled client restart. Decide whether your router fails open or closed during the gap, and consider the VPN app on individual devices for anything important. If you need more time on your pass or help with setup, you can see the passes.

Frequently asked questions

Why does my router VPN stay down after the internet comes back?

The tunnel was built over the old connection. When the modem restarts, the router's public address, its connection records and sometimes its clock all change. Many routers do not notice that the old tunnel is dead, so they keep waiting on it instead of building a new one. Restarting the VPN client on the router, or setting a shorter keepalive or retry time if your firmware offers one, usually brings it back.

Is the modem or the router at fault?

Usually neither is broken. The modem restart is a normal event, and the router VPN client simply recovers more slowly than the rest of the network. Test by watching the router's status page and logs while you restart only the modem, so you can see the order of events.

Will my devices use the normal internet while the VPN is down?

That depends on the router. Some routers fall back to the normal connection when the tunnel is down, which is called failing open. Others block traffic until the tunnel returns. Check your router's documentation and test it, because it decides whether your real address is exposed during the gap.

Can I stop the modem from rebooting?

Not always. Your provider may push updates or restart equipment, and power cuts also cause reboots. You can sometimes reduce scheduled reboots in the modem settings, but the safer plan is to make the router VPN recover cleanly when it happens.

Should I put the modem in bridge mode?

It can remove a second layer of address translation, which sometimes makes reconnects more reliable. It also changes how your home network is set up and may stop your provider's own equipment features working, so check with your provider before changing it.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

Device Guides

How to Prevent Leaks When a Router VPN Disconnects

A phone app can warn you when the tunnel drops. A router cannot. This guide explains the vpn router kill switch idea, how to make the router fail closed, and how to test it.

10 min read

Device Guides

VPN on Dual-WAN Routers: What to Know

Two internet lines and one VPN do not always get along. This guide explains how vpn router dual wan setups behave, where the tunnel breaks and how to plan for it.

10 min read

Device Guides

VPN Behind CGNAT: What Works and What Doesn't

Carrier-grade NAT shares one public address among many customers. See why a VPN app still works behind it, what stops working, and what your options are.

9 min read