PanelSimulator Academy

Networking for Security, lesson 11 of 12

Remote access done safely

Owners want to see their cameras from a phone, and service companies want to fix problems without a truck roll. Both are reasonable. The danger is that a path opened for one trusted person is often a path opened for the whole internet. This lesson shows the three common ways to reach a site from outside and how to choose and set up one that lets in only the people you intend.

About 14 minutes. Read lessons 4 and 8 first.

Three ways in from outside

Pick a method, then play or step through. Watch what the owner can reach, and what a stranger can reach.

inside the site the internet maker's service Owneron a phone Strangerscanning Router firewall port opened Recorder camera

The everyday picture

Think of an apartment building with a locked front door. Residents come and go freely from the inside. Nobody from the street can walk in.

Now a resident wants to get in while away. There are three ways to arrange it. The building could cut a new door straight from the street into that one apartment. Anyone walking past can then try the handle. Or the building could give the resident a key to a private, covered walkway that leads to the front door, and check their identity at the entrance. Or the resident could arrange to meet their visitors at a staffed front desk down the street, and never open a door to the street at all.

Those are the three ways to reach a security system from outside: an opened port, a private tunnel, and a meeting point run by someone else.

The edge of the site

Lesson 4 introduced the gateway, the router where traffic leaves a subnet. At the edge of a site, that router does two more jobs.

  • The site has one public address, given by the internet provider, that the rest of the world can see. The devices inside use private addresses, such as those beginning 192.168 or 10, which mean nothing outside the building. The router swaps one for the other as traffic passes. This is called network address translation, or NAT.
  • The router also acts as a firewall, a gatekeeper with a simple starting rule. Conversations begun from inside are allowed out, and their replies are allowed back. Conversations begun from outside are refused.

That starting rule is why a recorder can fetch the time or a software update, yet nobody on the internet can open its sign-in page. It is the building's locked front door. Every method of remote access is a way of dealing with that door.

One more word. A port here does not mean a socket on a switch. It is a number, from 1 to 65,535, that tells a device which of its services a message is for. A recorder's web page answers on one port number, its video on another.

Three ways to reach in

Port forwarding

You tell the router: anything arriving from outside on this port number, pass it to the recorder. It is quick, it is free, and it is the method to avoid. The rule cannot tell the owner from anyone else, so the recorder's sign-in page now faces the entire internet. Automated programs sweep every public address looking for exactly this, and a newly opened port is usually found within hours. From then on, the only protection is the recorder's own password and the quality of its software. Changing the port to an unusual number does not hide it.

A related setting, UPnP, lets devices inside ask the router to open ports for them without anyone being told. Turn it off on the router, and on the devices.

A VPN

A VPN, or virtual private network, is an encrypted tunnel between the remote person's device and the site's router. The person signs in to the VPN first. Only then does their phone or laptop behave as if it were plugged in inside the building. To everyone else, the router shows a single door that answers only to the right credentials, and everything passing through the tunnel is scrambled.

A VPN needs a router or firewall that offers one, someone competent to set it up, and a little software on each remote device. Keep the router's own software updated, because it is now the one door facing the street.

A cloud service

Here the recorder or controller makes an outgoing connection to a service run by its maker and keeps it open. The owner's app signs in to the same service, and the service joins the two. No port is opened, because both conversations begin from the inside of their own networks. This is how most modern app-based systems work, and it is the simplest safe method to install.

The trade is trust. The service's operator sits in the middle, and the account on that service is now the key to the site. Protect it accordingly.

Port forwardingVPNCloud service
What a stranger can reachThe device's own sign-in pageOnly the VPN's sign-inNothing at the site
Ports opened at the siteOne or more, straight to the deviceOne, to the router itselfNone
Traffic scrambledOnly if the device does itYesYes, on reputable services
Effort to set upLowHigherLowest
You depend onThe device's password and softwareThe router and whoever maintains itThe service's operator and your account there
VerdictAvoidGood, especially where IT staff existGood, especially for small sites

Check yourself

Why does a cloud-connected recorder need no port opened on the site's router?

Who is allowed, and how they prove it

A safe path is half the job. The other half is the sign-in at the end of it.

Weak practiceBetter practiceWhy it matters
The password the device shipped withA long, unique password set at installationFactory passwords are published in manuals
One "admin" sign-in shared by everyoneA named account for each personYou can remove one person, and the log shows who did what
Everyone is an administratorEach account can do only what that person needsA guard who only views video cannot delete it or change settings
Password onlyPassword plus a second proof, such as a code from a phone appA stolen or guessed password is no longer enough
Accounts that live foreverAccounts removed when people leave, and reviewed on a scheduleFormer staff and old contractors are a common way in

The second proof is called multi-factor authentication, or MFA. Turn it on wherever the system offers it, and first of all on cloud accounts and VPN sign-ins.

Your own company's access deserves the same care. A service company that holds remote access to hundreds of customer sites is a valuable target. Give each technician a personal account, use MFA, record each session, and agree with the customer in writing when and how you will connect. Many customers prefer that the installer's access is switched on only when they ask for help.

Finally, limit what a remote person lands on. Lesson 8 put security devices on their own VLAN. A VPN user who only views video should be able to reach the recorder and nothing else.

Review a setup

Describe a site's remote access and read the review. Try to reach a setup with no warnings.

How is this site reached?

Path in

Sign-in

Software on the recorder and router

UPnP on the router

    Three examples

    Simple: a shop owner's phone

    A shop owner wants to check four cameras from home. The recorder supports its maker's cloud service. The installer connects the recorder, creates the account in the owner's name with the owner's email address, turns on MFA, and adds the manager as a second, view-only user. No setting on the router is touched except to confirm that UPnP is off. If the manager leaves, the owner removes one account.

    Medium: the recorder that began misbehaving

    A restaurant's recorder was installed years ago with a port forwarded to it and the password it shipped with. One day the internet connection is slow, the recorder's settings have changed and there are gaps in the recording. The recorder had been found and taken over by strangers, which is the ordinary fate of a device left this way.

    The repair has an order. Remove the port forward first. Reset the recorder to factory settings and install its current software before it goes back on the network. Set new passwords and named accounts. Then provide remote viewing through the maker's cloud service or a VPN. Tell the owner plainly that recordings may have been seen by others. The Cybersecurity course covers responding to an incident in more depth.

    Advanced: a service company and forty customer sites

    An integrator maintains access control and video for forty customers and wants to fix faults remotely. The weak version is one shared password for all sites, saved on every technician's laptop.

    The sound version looks like this. Each customer's firewall offers a VPN that lands in the security VLAN only. Each technician has a personal account with MFA, and the accounts are disabled the day a technician leaves. Access to a site is requested by the customer or opened against a service ticket, and every session is logged at both ends. For customers whose IT department forbids any standing access, the technician is given a temporary account for the visit, and it expires that night. The contract states all of this, so nobody is surprised.

    From the field

    • Ask who owns the router. On any site with an IT department, remote access is their decision. Ask for their standard method before proposing your own.
    • Look at the router's forwarding list on every takeover. When you inherit a site from another installer, old port forwards are among the first things to find and remove.
    • Create cloud accounts in the customer's name. The site should not be tied to an installer's personal email address.
    • Write down who has access. A one-page list of accounts, their owners and their rights, reviewed each year, catches the accounts everyone forgot.
    • Test from outside. Turn off your phone's Wi-Fi and check that remote viewing works over the mobile network, and that nothing works without signing in.

    Common mistakes

    • Forwarding a port "just for now" and leaving it for years.
    • Believing an unusual port number hides a device.
    • Leaving the factory password, or one password shared by staff and installers alike.
    • Setting up a VPN that lands on the whole office network when the person needs one recorder.
    • Leaving a former employee's or former installer's account active.
    • Never updating the router, the one device that faces the internet.

    Summary

    • A site's firewall lets conversations out and refuses those begun from outside. That rule is your main protection.
    • Port forwarding punches through it for everyone. Avoid it, and turn UPnP off.
    • A VPN gives named people an encrypted tunnel in. A cloud service lets the device connect outward and meet the user there.
    • Use named accounts, the least rights each person needs, and multi-factor authentication.
    • Keep a list of who has access, remove people when they leave, and keep internet-facing software updated.

    Exercises

    Answer each one yourself first, then open the answer.

    Exercise 1. What is a firewall's usual starting rule for traffic in each direction?

    Show answer
    Conversations begun from inside are allowed out, and their replies are allowed back in. Conversations begun from outside are refused.

    Exercise 2. A customer says their recorder is safe because the forwarded port was changed from the usual number to 48211. Are they right?

    Show answer
    No. Automated scanning tries every port number on every public address, so an unusual number delays discovery only briefly. The recorder's sign-in page still faces the whole internet. Remove the forward and use a VPN or the maker's cloud service.

    Exercise 3. A site uses a cloud service with one shared sign-in for the owner, two managers and the installer. Name two things to change.

    Show answer
    Give each person a named account with only the rights they need, so one person can be removed and the log shows who did what. Then turn on multi-factor authentication for every account. Step through the review tool with these choices to see the difference.

    Exercise 4 (think, don't memorize). A small business has no IT staff and a basic router from its internet provider. The owner wants to view eight cameras from home. A colleague suggests a VPN "because it is the most secure". What do you recommend, and why?

    Show answer
    The recorder's cloud service, with named accounts and MFA. A VPN is only as good as the router that runs it and the person who maintains it, and this site has neither a capable router nor anyone to keep it updated. The cloud service opens no port, needs no changes to the router and is maintained by its operator. The safest method is the one that will still be correctly set up in three years.