Calls and email answered 24/7/365 · An HSM Company contact@hsmservices.ca 1 800 716 8955

Security Cameras guide

Secure remote viewing without port forwarding

Why forwarded ports get recorders hacked, and how to use a VPN or cloud relay instead.

  • Advanced
  • 5 min read
  • Includes diagram

Key points

  • Never forward ports from the internet to a recorder or camera. Scanners find them within hours.
  • Use a VPN into your own network, or the manufacturer's cloud relay, which only needs outbound connections.
  • Put cameras on their own VLAN with no internet access. Only the recorder talks to them.
  • Named accounts, multi-factor login and current firmware matter as much as the network design.

Everyone wants to check their cameras from a phone. For years the quick way to do that was to open a port on the office router and point it at the DVR. That shortcut is behind a large share of hacked camera systems, and it is still how many installers set things up. This guide explains the risk and the safer alternatives, for IT managers and owners who want remote viewing done properly.

Why port forwarding is the problem

A forwarded port makes the recorder's login page or streaming service reachable by anyone on the internet. Automated scanners sweep the entire internet continuously, looking for exactly these devices. They try default passwords, known vulnerabilities in old firmware and lists of leaked credentials. Recorders are attractive targets: they run for years without updates, often keep their default admin account, and sit inside the business network. The large botnets of recent years were built in part from compromised cameras and DVRs.

UPnP makes it worse. Many recorders ask the router to open ports automatically through UPnP, so a system can be exposed even though nobody configured a rule. Turn UPnP off on the router and on the recorder.

Port forwarding: avoid Scanners Your phone Router: port open NVR exposed Outbound only: preferred Cloud relay or VPN Your phone Firewall: no inbound Outbound NVR stays inside
Diagram With an outbound relay or VPN, nothing on the internet can start a connection to the recorder. Scanners see a closed firewall.

Option 1: VPN

A VPN puts the remote user's device onto your network through an encrypted tunnel, after which the VMS client or app connects to the recorder as if it were in the building. Most business firewalls include a VPN server, and many organizations already have one for staff.

  • Strengths. No dependence on the camera manufacturer's cloud. Uses your existing identity and multi-factor login. Easy to audit.
  • Weaknesses. Users must connect the VPN before opening the app, which some find awkward. VPN access should be limited so that camera users reach the recorder only, not the whole network.

Option 2: Manufacturer cloud relay

Most current recorders and VMS platforms can make an outbound, encrypted connection to the manufacturer's cloud service. The mobile app connects to the same service, which relays the video or brokers a direct connection. No inbound port is opened.

  • Strengths. Simple for users, works from any network, and no firewall changes beyond allowing the outbound connection.
  • Weaknesses. You are trusting the vendor's cloud security and account protection. Check that it supports multi-factor login, encrypts video end to end or at least in transit, and tells you where data is processed and stored.

Some VMS platforms are now fully cloud-hosted, with cameras or a small on-site appliance sending video to the cloud. The same questions apply, plus upload bandwidth: continuous cloud recording needs a reliable internet connection sized for it.

Segment the camera network

Remote access is only half of it. Cameras themselves should never be reachable from the corporate network or the internet.

Cameras isolated, recorder in the middle CAMERA VLAN Camera Camera Camera PoE switch NVR / VMS only bridge CORPORATE LAN Viewing stations Internet Blocked
Diagram Cameras talk only to the recorder. Users talk only to the recorder. Nothing on the camera VLAN reaches the internet.
  • Put cameras on a dedicated VLAN, or physically separate switches, with firewall rules that allow only the recorder to reach them.
  • Block internet access from the camera VLAN. Cameras do not need to phone home; the recorder handles time, updates and cloud access.
  • Serve time to cameras from the recorder or an internal NTP server so timestamps hold up as evidence.
  • On recorders with a built-in PoE switch, the camera ports are already isolated. Connect only the recorder's LAN port to your network.

Remote access for your installer

Service companies, including us, often need remote access for support. That access should use the same controlled path as everyone else: a named, time-limited account through your VPN or the platform's cloud service, with multi-factor login, switched off when the work is done. Avoid permanent shared "installer" accounts and remote desktop tools left running on the recording server.

Hardening checklist

  1. Remove defaults. Change every default password on cameras and recorders, and disable or rename default admin accounts where possible.
  2. Use named accounts. One account per person, with only the permissions they need. Shared logins make audit logs useless.
  3. Turn on multi-factor login for remote and administrator access wherever the platform supports it.
  4. Disable what you do not use. UPnP, Telnet, unused P2P services and plain HTTP.
  5. Keep firmware current. Apply camera and recorder updates on a schedule, and plan replacement for devices the manufacturer no longer supports.
  6. Watch the logs. Review failed logins and exports during routine maintenance.
Check your own site

If you are not sure whether your recorder is exposed, look at the router or firewall for port forwarding rules and UPnP mappings pointing at it. If you find one, remove it and set up a VPN or relay before anyone needs remote access again.

We set up remote access this way as standard on our security camera installs, and the same approach applies to analytics platforms covered under AI video analytics.

Want a professional to handle it?

Our technicians install and certify security cameras for businesses of every size. Send us the details and we will come back with a plan.