Device API over the tunnel · Qarvix

Access to device APIs over the tunnel

Qarvix can give access not just to the router itself, but to the devices behind it: cameras, PLCs, meters, sensors, POS terminals, local web interfaces, and internal APIs.

The main benefit: the device stays on the site's local network, no inbound ports are opened outward, no public IP is required, and access runs through Qarvix's managed VPN mesh.

In short

When you need this

This scenario fits when a site has local devices that need to be reached remotely.

Examples:

Device Why access is needed
Camera or NVR open the web interface, check the stream, pull status
PLC diagnose the controller, read data, service work
Meter collect readings, check connectivity, integrate with a record-keeping system
Sensor read telemetry or state
POS terminal service maintenance and API checks
Local server access to a dashboard, API, or internal service

If you previously used port forwarding, a public IP, TeamViewer on a workstation, or separate VPN files for this, Qarvix lets you put together a more manageable scheme.

Basic scheme

Service team or monitoring server
        |
        | WireGuard through Qarvix
        |
Qarvix Hub
        |
        | WireGuard to the site router
        |
Site router
        |
        | LAN 192.168.10.0/24
        |
Cameras, PLCs, sensors, device APIs

No public inbound port is needed at the site. The router or agent initiates the secure connection, and LAN access runs through a configured route.

What needs to be set up

Access to an API over the tunnel usually requires:

  1. A managed router at the site.
  2. A Qarvix network with a correct VPN range.
  3. A route to the LAN subnet behind the router.
  4. An ACL or access rule for the users and services that need it.
  5. Knowing which address and port the request should reach.

Example:

Site LAN: 192.168.10.0/24
Meter API: 192.168.10.50:8080
User: service team
Access: only TCP 8080 to 192.168.10.50

If you need to open one service rather than the whole subnet, access rules should be as precise as possible.

Cameras and video surveillance

For cameras, you usually need access to a web interface, an RTSP stream, an NVR, or a management API.

Qarvix helps you:

Example:

Site router: 10.120.0.4
Camera LAN: 192.168.20.0/24
Camera 1: 192.168.20.11
Camera 2: 192.168.20.12
NVR: 192.168.20.100

For a manager, the result is simple: cameras stay inside the site, but the service team gets managed access without a visit and without open ports.

PLCs and industrial equipment

PLCs and industrial equipment often sit in closed LAN segments. Access to them needs to be opened especially carefully.

Recommendations:

If the equipment is critical, access should be temporary or strictly regulated.

Meters and sensors

For meters and sensors, what's usually needed isn't manual engineer access, but regular data collection.

A typical setup:

Metering server -> Qarvix VPN -> site router -> meter API

Benefit: the metering server gets data directly over an encrypted tunnel, without exposing the meter to the internet and without needing a manual VPN at every site.

This scenario fits well into reports: you can show which sites are connected, which devices are reachable, and where connectivity issues occurred.

Access for an external system

If an external system needs to reach devices through Qarvix, don't use a personal account.

It's better to use:

This makes it easier to revoke access, rotate a token, or move an integration without affecting users.

Security

Access over the tunnel is safer than exposing devices outward, but that doesn't mean everything can be opened to everyone.

Check:

Be especially careful when opening access to devices with weak passwords, old firmware, or no support for modern authentication.

What to hand off to the service team

So the team can work without extra back-and-forth, record:

Example:

Organization: Client A
Network: warehouse-cameras
Router: router-warehouse-01
LAN: 192.168.20.0/24
NVR: 192.168.20.100:443
Access: video surveillance service team

Common issues

API doesn't open even though the router is online

Check the subnet route, ACL, the router's firewall, the device's local IP, and whether the API is reachable from the site's LAN.

The router pings, but the device behind it doesn't

The route to the LAN is most likely not configured, forwarding/firewall isn't allowed, or the local device doesn't know the return route.

The device is accessible to every user on the network

Check ACL and default access. A route to the LAN shouldn't automatically mean access for everyone.

The monitoring server stopped receiving data

Check the freshness of the static client's WireGuard handshake, whether the router is reachable, the device log, and any changes to access rules.

Checklist

Related sections