KORTHVEILSecurity firewall
Guides

Protect TVs and smart-home devices from unwanted control

Download as PDF All guides

Smart TVs, streaming players such as an NVIDIA Shield, smart fridges and speakers can be controlled over the network: casting, remote apps, LG and Samsung remote control. On an ordinary home network any phone, tablet or computer can do that, including a guest's or a compromised one.

Device control (Korthveil 1.2.7) does three things:

  • Only the phones and computers you authorize may control those devices.
  • The devices can't reach your other machines, only the internet.
  • Every other attempt is blocked and listed, and can raise an alert or put the device in quarantine.

It works for IPv4 and IPv6 alike.

What it needs: a network of their own

Devices in one network talk to each other directly, through your switch or Wi-Fi access point. That traffic never reaches the firewall, so no firewall can block it. Device control needs the TVs and smart-home devices in a segment of their own: a VLAN with its own Wi-Fi name, a separate access point, or switch ports of their own. Your phones and computers stay on your usual network.

There are two layers of isolation. Use both:

Where What isolates Who does it
Between the TV network and your other networks Only authorized controllers reach the TVs. The TVs reach only the internet, not your PCs, NAS or phones Korthveil
Between the TVs themselves, on the TVs' Wi-Fi Client isolation (also called AP isolation or guest mode) for the TVs' Wi-Fi name Your access point (or Korthveil's own Wi-Fi radio)

Step 1: Run the wizard

System › Wizards › Protect TVs from unwanted control.

  1. Segment. Keep A new VLAN for them. The wizard proposes:
    • the first free VLAN from 30 on your LAN port;
    • a free network (192.168.30.1/24 here) and a private IPv6 /64;
    • DHCP, and internet access for the devices.

Choose A network I already have if the TVs already have their own network.

Step 1: a new VLAN for the TVs
Step 1: a new VLAN for the TVs
  1. How they join:
    • A second Wi-Fi name on my access point (recommended): most access points can send a Wi-Fi network of its own on a VLAN.
    • A separate access point, for access points without VLANs.
    • The TVs are wired.
    • Later.

Nothing on your access point or switch changes by itself. After Apply the wizard shows exactly what to set there.

Step 2: how the TVs join their network
Step 2: how the TVs join their network
  1. Controllers. Tick the phones, tablets and computers that may control the TVs. Devices marked private address change their MAC address per Wi-Fi network. Set them to a fixed address for your Wi-Fi so the firewall keeps recognizing them.
Step 3: the phones that may control the TVs
Step 3: the phones that may control the TVs
  1. Review and apply. The review lists every change:
    • the VLAN and zone;
    • DHCP;
    • internet access with NAT;
    • a rule from your trusted networks to the TVs, which Device control limits to authorized controllers;
    • Device control with your controllers.

Step 2: Move the TVs

Follow the steps the wizard shows after Apply. For a second Wi-Fi name, on your access point:

  1. Add the Wi-Fi name (for example TVs) with the wizard's VLAN ID.
  2. Turn on client isolation for that Wi-Fi name only.
  3. Carry the VLAN tagged on the switch port to the access point, and on the firewall's port.
  4. Join each TV to the new Wi-Fi. Each gets an address in the new network.

Network › Devices › Device control

Protection sums up what is protected and the blocked attempts of the last 24 hours.

Protection
Protection

Segments are the TV networks:

  • Only authorized controllers may connect to these devices (on by default) closes the segment on every port, not only the control ports. Casting uses more than the control ports.
  • Authorized controllers find the devices relays discovery (mDNS and SSDP, IPv4 and IPv6) to authorized controllers only. Their casting and remote apps find the TVs from your other network. Unauthorized devices don't even see them.
Segments
Segments

Protected devices: every device in the segments (new ones as soon as they join), or only the devices you choose.

Protected devices
Protected devices

Authorized controllers: choose a device and press Authorize, or type its MAC address. Open a row to limit a controller to some TVs or some protocols. All of a controller's addresses count, IPv4 and IPv6.

An authorized controller, limited to one TV and two protocols
An authorized controller, limited to one TV and two protocols

Control protocols: the built-in ones and their ports. Built-in protocols can only be turned off. Add a protocol for others, with TCP and UDP ports.

Protocol Ports
LG webOS remote control TCP 3000, 3001
Google Cast (Chromecast, Android TV, Google TV such as Sony, NVIDIA Shield) TCP 8008, 8009, 8443
AirPlay (Apple TV, AirPlay TVs such as recent Sony and Samsung) TCP 7000, 7100
Samsung Tizen remote control TCP 8001, 8002
Roku remote control (ECP) TCP 8060
Control protocols
Control protocols

Attempts lists who tried to control which device, with which protocol, when, and how often:

  • Allow for (the device) authorizes the sender for that device and protocol.
  • Allow for all authorizes it for every device and protocol.
  • Quarantine puts the sender in quarantine.

An attempt you allowed stays in the list, marked authorized since. Alert me raises an alert for each device that keeps trying (one per device, while it tried in the last 15 minutes).

Attempts: a guest tablet blocked; the authorized phone's earlier attempts marked authorized since
Attempts: a guest tablet blocked; the authorized phone's earlier attempts marked authorized since

Traffic map: who is connected to the protected devices now (green), and who tried in the last hour (red, dashed). Click a line to allow that device, or to remove a controller's authorization.

The traffic map
The traffic map

Quarantine: a quarantined device reaches only the firewall's DHCP and DNS. It has no internet and no other devices, and its open connections end. Release ends the quarantine early.

Quarantine automatically (off by default) quarantines a device that isn't authorized when, within a time window, it:

  • tries several protected devices (3 in 10 minutes by default);
  • or tries several control ports, which is a scan (4 by default).

Authorized controllers are never quarantined automatically. Each incident is quarantined once: after you release a device, the same attempts don't put it back.

Quarantine settings
Quarantine settings

How it was tested

On a test firewall: a "TV" in its own segment answering on the control ports, an authorized phone and an unauthorized one, each over IPv4 and IPv6. All 72 checks passed:

  • Nothing reached the TV before authorization, and every attempt was recorded with the sender's MAC address.
  • A phone authorized for one TV and LG control reached ports 3000 and 3001, but couldn't cast until Google Cast was allowed too.
  • The other phone was refused every time, couldn't find the TV through discovery, and was quarantined automatically after scanning the control ports. Release brought it back.

Troubleshooting

What you see Likely cause What to do
A phone still controls a TV it shouldn't The phone and the TV are on the same network Move the TV to its own segment (Step 2). The firewall only sees traffic between networks
An authorized phone can't find the TV It uses a private (changing) MAC address Set the phone to a fixed address for your Wi-Fi, then authorize it again
An authorized phone can't cast, but controls the TV The controller is limited to some protocols Open its row under Authorized controllers and add the protocol, or choose Every control protocol
TVs see each other on the TVs' Wi-Fi Client isolation is off on that Wi-Fi name Turn on client isolation (AP isolation) for the TVs' Wi-Fi on your access point
A device was quarantined by mistake The automatic triggers caught it Release under Quarantine, and authorize the device

Download as PDF All guides