Skip to content

Can Policy-Based Routing Exclude a Home Security Camera from the VPN?

If your router can run a VPN and supports routing rules, you may be able to keep one camera on the normal connection. Here is how that works, what can go wrong and how to check it.

10 min readUpdated Nov 12, 2026By XPASS Editorial Team

Can Policy-Based Routing Exclude a Home Security Camera from the VPN?

A home security camera and a VPN do not always get along. The VPN is a good idea for a laptop or a phone, but a camera is a small always-on device with its own cloud service, its own app and its own habits. When a router sends every device through a VPN tunnel, the camera may go offline, lose its live view or trigger a flood of "new login location" alerts from its app. The natural fix is to leave the camera out of the tunnel while everything else stays in. Whether that is possible is a question about policy-based routing.

This article explains what policy-based routing can and cannot do for a single camera, what to prepare before you create a rule, how to test the result honestly and which risks remain. It assumes you already have a router that can run a VPN client. XPASS has not verified router setups, so treat this as general guidance and read your router's own documentation for the exact screens. If you are new to the idea of routing by device, start with policy-based routing explained.

What policy-based routing means for one camera

A normal router looks only at where a packet is going. It has a routing table, picks the best matching route and sends the packet out. Policy-based routing adds a question first: does this packet match a rule? A rule might say that anything coming from the camera's local address uses the ordinary internet connection, while everything else uses the VPN tunnel.

To a router, a camera is just a source address on your home network. Home networks use private addresses of the kind described in RFC 1918, such as addresses beginning with 192.168. The router cannot see which app or feature inside the camera made a request. It sees a source address, a destination address and a port. So any rule you write for the camera has to be expressed in those terms, and the most reliable one is the camera's source address.

That is why the answer to the title question is "usually yes, if the router lets you write rules by device". Many consumer routers offer a simple per-device switch that does exactly this behind a friendly screen. Others expose full routing tables and firewall marks. Some basic routers offer only an all-or-nothing VPN switch, in which case policy routing is not available and you would need a different approach, such as a second network or leaving the camera on the router's normal side.

Why you might want the camera outside the tunnel

There are a few common reasons, and it helps to know which one applies to you, because each leads to a slightly different rule.

  • The cloud service expects a stable address. Many cameras connect outward to a manufacturer service. If the public address that service sees keeps changing, or belongs to a range the service does not recognise, the camera can appear offline or the app can ask you to verify your login.
  • Live view feels slow. Video is demanding. A tunnel adds a hop, and a distant tunnel location adds delay. The picture may stutter even when ordinary browsing feels fine.
  • Local recording or local viewing stops working. If the camera, a recorder and your phone are all at home, they normally talk to each other on the local network. Traffic that should stay local sometimes gets caught by a broad rule and sent into the tunnel instead.
  • Notifications arrive late. The camera sends a push through its service. Extra delay or an unfamiliar address can make alerts slow.
  • The camera itself becomes unreliable. Some small cameras have limited firmware and do not cope well with address changes or longer round trips. Keeping them on the plain connection removes one variable.

The related article on VPNs and smart home devices covers this wider category of small always-on devices and explains why they often behave differently from phones and laptops.

What to prepare before you write the rule

A rule that depends on an address is only as good as the address. Most failures in this area come from skipping the preparation.

  1. Give the camera a fixed local address. Your router hands out addresses automatically, and the camera may get a different one after a reboot or after a long power cut. Look for an option often called a DHCP reservation or static lease that ties the camera's hardware address to one local address. Without it, your rule will sooner or later point at the wrong device.
  2. Note the camera's name and hardware address. Write down what the router lists for it, so that you can tell it apart from other devices later. Cameras sometimes appear with a vendor name or a string of letters and numbers rather than a friendly label.
  3. Find out whether the camera has a second connection. Some cameras use Wi-Fi and a cable, or have a separate network for a base station. Make sure the rule matches the interface actually in use.
  4. Check what else depends on the camera. A recorder, a doorbell receiver or a hub may talk to the camera. If they are on different addresses, decide whether they should all be outside the tunnel or only the camera.
  5. Confirm the router can run the VPN at all. The supported way to connect with XPASS is the VPNclient app. The My Pass page shows the connection method that applies to your pass. If your router can use that same method, you may be able to set it up; we cannot promise it for a specific model or firmware. The router setup guide explains the general steps and what to check first.
  6. Take a note of the current state. Before you change anything, save a screenshot or write down the current VPN and routing settings so you can return to them.

A plain example

Imagine a small flat with one router running a VPN client for the whole network. A laptop, two phones and a streaming box sit on the main network, and one indoor camera sits there too.

The camera's app keeps saying the device is offline in the evening. The router's device list shows the camera at 192.168.1.40. After reserving that address for the camera, the owner opens the router's VPN or routing section and finds a per-device policy list. The default is "everything uses the VPN". The owner adds one rule: source 192.168.1.40, use the normal internet connection. They apply the change, restart the camera and wait a few minutes.

Now the laptop and phones still show the VPN address when they check their public address, while the camera's cloud status looks normal. The owner also checks that the camera's local recording still works from the phone at home. The result is two lanes on one router: one through the tunnel and one direct. The concept is the same as the one in the router policy routing and split tunneling guide, applied to a single device.

This is an illustration, not a promise. Names, screens and rule order differ between firmware, and some routers apply the rules only after the VPN client is restarted.

Setting the rule up and getting the order right

Every router brand labels things differently, but the logic is similar. Look for sections named something like VPN policy, routing rules, per-device VPN, selective routing or bypass list. Then work through these steps.

  1. Choose the match. Pick the camera's reserved local address or, if the firmware offers it, its hardware address. Matching the hardware address can survive an address change but is not available everywhere.
  2. Choose the action. The action is the normal connection, sometimes called WAN, direct, bypass or default route, rather than the VPN tunnel.
  3. Check the rule order. Many routers read rules from the top and stop at the first match. A broad rule that says "all devices use the VPN" placed above the camera rule can swallow the camera. The more specific rule should come first.
  4. Apply and restart the right things. Some routers need the VPN client to be restarted for a new policy to take effect. A camera that already has an open connection may need a reboot to start using the new path.
  5. Keep the local network reachable. Make sure the camera can still reach other devices at home. Local traffic between private addresses should not be sent to a remote tunnel. A rule that excludes the camera from the tunnel does not change this, but a poorly written broad rule can.
  6. Consider DNS. The camera looks up its service names through the DNS server the router tells it to use. If your router forces all DNS queries to a server that exists only inside the tunnel, a camera that is outside the tunnel may struggle to resolve names. Read the Cloudflare explanation of DNS if you need a refresher, and check whether your router gives a different DNS setting to devices that bypass the VPN.

How to test that the camera is really excluded

Do not assume the rule works because the screen says so. Test it in a few simple steps.

  1. Check the public address on a normal device. On a phone or laptop that should be inside the tunnel, visit a site that shows your public address and note it.
  2. Pause the VPN on the router and check again. The address should change to the one your internet provider gives you. Note this address too. These two addresses are your reference points.
  3. Look at the camera's side. Some cameras show a connection or status page that lists the address they use. If yours does, compare it to the reference points. If it matches the provider address while the VPN is on, the rule is working. If it shows the tunnel address, the camera is still inside.
  4. Check the camera's app. Open the live view and check recent events. If the app now reports the camera as online and the alerts return to normal, that is a good sign, though not proof by itself.
  5. Test with the VPN off and on again. Switch the router VPN off, then on, and check whether the camera keeps its normal status. A rule that only works until the tunnel reconnects is a sign of a rule order or restart problem.
  6. Repeat after a reboot. Restart the router, wait for everything to come back and run the same checks. This catches the case where the camera gets a different address because the reservation was not saved.

If you run into trouble with the tunnel itself, the usual connection troubleshooting steps are a better place to start than adding more rules.

Limits and risks to keep in mind

Excluding a camera is a convenience choice, not a security upgrade. Be honest about what you are giving up.

  • The camera loses the tunnel's cover. Its traffic leaves through your normal connection and uses your normal public address. Anyone who can see that traffic on the way can see where it is going, even if the video itself is encrypted by the camera's own settings.
  • A VPN does not protect a weak camera. A default password, outdated firmware or an open remote-access port is the real risk, with or without a tunnel. Change default passwords, update firmware and turn off features you do not use.
  • Do not open ports just to make it work. If the camera only works when you forward a port from the internet to it, you are exposing it. See the home CCTV from abroad guide for a security-first approach that avoids this.
  • Rules can fail quietly. If the camera gets a new address, or the router firmware updates and reorders rules, the camera may slip back into the tunnel or fall out of it unexpectedly. Check after firmware updates.
  • Policy routing can leak when the tunnel drops. If a rule sends other devices through the VPN, find out what happens to them when the tunnel is down. Some setups fall back to the normal connection; others block traffic. This is separate from the camera but is worth knowing before you rely on the setup.
  • This does not make you anonymous. A VPN changes the address that websites and services see for the devices inside the tunnel. It does not hide who you are from your accounts, and it does not guarantee access or security.
  • Respect the people the camera records. If the camera covers shared spaces or people other than you, local rules and common courtesy apply. A VPN has nothing to do with that.

Quick troubleshooting table

Symptom Likely cause What to check
Camera still offline after the rule Rule order or no restart Move the camera rule above the broad one, restart the VPN client and the camera
Rule worked yesterday, not today Camera got a new local address Add or check the DHCP reservation
Camera online but live view is slow Wi-Fi signal or upload speed, not the tunnel Test with the camera closer to the router and with the VPN off
Camera cannot resolve names DNS reachable only through the tunnel Give bypass devices a DNS server that works on the normal connection
Phone cannot reach the camera at home Local traffic sent into the tunnel Keep private address ranges on the local side
App warns of a new login location Camera and app see different public addresses Compare public addresses and confirm the camera is on the normal connection
Every device bypasses the VPN Rule matches too broadly Narrow the match to one address and recheck

When policy routing is not the right tool

Sometimes the cleaner answer is not a rule at all.

  • Use a second network. If your router can create a separate network for devices, put the camera there and let that network use the normal connection. This is easier to live with than a list of addresses and survives address changes.
  • Leave the VPN off the router. If only a few devices need a VPN, run it in the app on those devices instead. Weigh the trade-offs between a router VPN and an app before you decide.
  • Use the manufacturer's remote access carefully. If you want to watch the camera away from home, the safer route is the camera's official app with strong account security rather than opening ports at home.
  • Replace a fragile camera. If a device cannot cope with ordinary network changes, a newer model with maintained firmware may serve you better than a complicated rule.

Summary

Policy-based routing can keep a home security camera on your normal connection while the rest of the house uses a router VPN, provided your router and firmware let you write rules by device. The preparation matters most: reserve a fixed address for the camera, put the specific rule above any broad one, think about DNS and local traffic, and test by comparing public addresses before and after. Remember the trade-off. The camera is no longer covered by the tunnel, so keep its password strong, its firmware current and its ports closed. XPASS has not verified router setups, so check your router's documentation and the connection method on My Pass before you rely on it. If you want to try a VPN on the devices that benefit from it, you can look at the options on the XPASS pricing page.

Frequently asked questions

Can policy-based routing keep a security camera out of the VPN tunnel?

Often yes, if the router firmware supports routing rules that match a device address. The rule tells the router that traffic from the camera uses the normal internet connection while other devices use the tunnel. Whether your router offers this depends on its model and firmware, so check its documentation.

Why would I exclude a camera from the VPN at all?

Some cameras and their apps connect through a manufacturer service that expects a stable home address. A tunnel can change the public address the service sees, add delay or cause the camera to show as offline. Keeping it on the normal connection can make it more predictable.

Does excluding the camera make it less safe?

The camera loses the extra layer the tunnel gives to its outgoing traffic, and it uses your normal public address. Keep its firmware current, use a strong unique password and avoid opening ports to it. A VPN is not a substitute for those basics.

Does XPASS support router setups?

XPASS has not verified router setups. The supported way to connect is the VPNclient app, and My Pass shows the connection method that applies to your pass. Whether a particular router can use it is something we cannot promise.

How do I know the camera is really outside the tunnel?

Compare public addresses. Check the address a normal device outside the tunnel sees and the address a device inside the tunnel sees, then use the camera's own network or status page if it offers one. You can also pause the VPN on the router and see whether the camera behaves the same.

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

VPN Security

Policy-Based Routing for VPNs Explained

Policy-based routing decides which packets go into the VPN by rule, not just by destination. Here is how it works and where it goes wrong.

9 min read

VPN Security

Checking Home CCTV in Thailand From Abroad

A security-first guide to watching home or shop cameras in Thailand while you are overseas: lock down the camera, avoid exposing it to the internet, and respect the people it records.

11 min read

Device Guides

VPN for IoT Devices: Router-Based Protection

Most smart-home gadgets cannot install a VPN app, so a router is the only place to put one. Here is what that really protects, what it breaks and what to do first.

10 min read