Networking and developer tooling notes
IP & Proxies
4 min read

What Is a Network Gateway? Transparent Proxy and Side Router

A network gateway (transparent proxy, often run as a side router) is a Linux machine on your network that forwards other devices' traffic through a tunnel or proxy, so those devices need no client software. It suits TVs, consoles, NAS boxes and headless servers.

Editorial team

A network gateway, also called a transparent proxy or, in a home lab, a side router, is a Linux machine or router on your network that forwards other devices' traffic through a tunnel or proxy, so those devices need no client software. You need one when devices cannot run a VPN client (TVs, game consoles, NAS boxes, IoT gear), when many devices should share a single connection, or on headless servers. This article reflects the state of things as of November 2026.

What is a network gateway, a transparent proxy and a side router?

They are three views of one idea. A gateway is the next hop a device sends its traffic to. A transparent proxy intercepts that traffic without the device knowing, and a side router is a way to place such a box on your network without replacing the main router. The device sees a normal network; the box decides where the traffic goes next.

  • Gateway is the role: the address in a device's default route.
  • Transparent proxy is the mechanism: packets are redirected to a local proxy process by the firewall, so no proxy setting is needed on the client.
  • Side router (single-arm router) is the topology: one extra box on the same LAN, beside the main router, that devices are pointed at.

How does a network gateway work?

The gateway receives a device's packets, applies rules, and sends them on, either through a tunnel or proxy or straight back out to the main router. In a side-router layout this takes four steps, shown with placeholder private addresses below.

  1. Each device uses the gateway as its default gateway, either set by hand or handed out by the main router's DHCP server (option 3, Router, defined in RFC 2132).
  2. The gateway has IP forwarding enabled, so it accepts packets that are not addressed to itself.
  3. Firewall rules on the gateway redirect the traffic you want to tunnel to a local proxy process. On Linux this uses nftables or iptables with REDIRECT for TCP, or TPROXY for TCP and UDP.
  4. Everything else is masqueraded (source NAT) out to the main router, so replies return through the gateway instead of taking a shorter path.
RoleExample address
Main router192.168.1.1
Network gateway (side router)192.168.1.2
Smart TV with gateway set to 192.168.1.2192.168.1.50

You can confirm the basics from the Linux gateway and from a client:

# on the gateway: 1 means forwarding is on
sysctl net.ipv4.ip_forward
# make it persistent
echo 'net.ipv4.ip_forward=1' | sudo tee /etc/sysctl.d/99-forward.conf

# on a Linux client: which next hop does it use?
ip route show default
ip route get 203.0.113.10

On Windows or macOS, tracert or traceroute to any outside address should show the gateway as the first hop. Kernel documentation for the transparent-proxy support behind TPROXY is listed in the references. Related concepts: an application-level proxy needs the client to be configured (see HTTP vs SOCKS5 proxies), while a gateway moves that decision to the network.

When do I need a network gateway?

Use one when installing software on every device is impossible or tedious. A gateway works at the network layer, so any device that can set a default gateway can be covered, and one install replaces many. The table compares the options.

SituationBetter fit
One laptop or phone, per-app control wantedClient on the device
Whole-device capture on a machine you controlTUN mode, see TUN mode vs system proxy
TV, console, NAS, printer, IoT deviceNetwork gateway
Many devices in one office or homeNetwork gateway
Headless Linux server without a GUI clientNetwork gateway, or a proxy configured at the service level

What are the trade-offs of a network gateway?

The gateway becomes part of your network's critical path, so plan for it. These are the points that most often surprise people.

  • Single point of failure. If the gateway is off, every device that points at it loses connectivity until you change the setting or bring it back. Starting it automatically as a system service helps.
  • No per-app rules. The gateway sees packets, not processes. It can match addresses, ports and sometimes domain names, but it cannot say "only this app".
  • Domain rules need DNS cooperation. Devices resolve names themselves, so the gateway must see or answer the DNS queries to apply domain rules. Treat DNS as part of the design; see DNS leaks explained for how to test.
  • Asymmetric routing. In a side-router layout, replies must come back through the gateway. Without masquerading, the main router may answer the device directly and the connection breaks. Some setups also disable ICMP redirects on the gateway.
  • Extra hop and extra work for the box. Forwarding costs CPU on small hardware, so choose a machine that suits the number of devices.
  • Keep it inside the LAN. A gateway listening for forwarded traffic must not be reachable from the internet.

Where AnboVPN fits

AnboVPN offers a Network gateway connection type alongside Shared IP, Dedicated IP and HTTP/SOCKS5 proxy, all under one account. You deploy it on a Linux server, soft router or spare computer (Debian or Ubuntu, amd64 or arm64) by running the deployment script as root. Devices behind the gateway need no client; it runs as a system service that comes back after a reboot; one data plan covers every device behind it; and one command uninstalls it. Your own one-line install command is shown on the plan details page. Details are on the gateway page.

References

Network gateway
Transparent proxy
Side router
Linux
Networking

FAQ

Is a network gateway the same as a VPN client?
No. A VPN client runs on one device and handles that device's traffic, which lets it apply per-app rules. A network gateway runs on a separate machine and handles traffic from other devices, which need no software. The first suits laptops and phones you control; the second suits devices that cannot run a client.
Is a side router the same thing as a transparent proxy?
They describe different things. A side router is where the box sits on the network: next to the main router on the same LAN, with devices pointed at it. A transparent proxy is how it handles traffic: packets are redirected to a proxy process without client-side proxy settings. A side router is usually, but not necessarily, a transparent proxy.
What happens to my devices if the gateway goes down?
Devices whose default gateway points at it lose their route to the internet until you bring the gateway back or change their settings. To reduce the risk, run the gateway as a system service that restarts after a reboot, use stable hardware, and know how to switch a device back to the main router quickly.
Does a gateway need a lot of hardware?
For a home or small office, a spare PC, a small Linux server or a soft router is enough, because the gateway mostly forwards packets and runs one proxy process. Load grows with the number of devices and their traffic. Check CPU use during your busiest period and size the machine from that, not from a rule of thumb.

Related posts

Getting Started

How Much VPN Data Do You Need? A Practical Way to Estimate It

Measure what your devices actually transfer in a normal week, convert video bitrate with GB per hour = Mbps x 0.45, then add a margin of 15 to 20 percent. Only traffic routed through the VPN counts, so routing choices matter as much as habits.

Data plan
Traffic estimate
Bitrate
Troubleshooting

Why Does My VPN Keep Disconnecting? A Troubleshooting Checklist

VPN drops almost always trace back to a short list: the network underneath changing or going idle, a NAT or firewall closing the flow, an MTU mismatch, power saving, conflicting software, or an exhausted account. Test them in that order.

VPN troubleshooting
NAT timeout
MTU
Troubleshooting

How to Read traceroute and mtr Reports: Loss, Latency, Hops

traceroute and mtr list the routers between you and a destination using packets with increasing TTL. Trust only loss that continues to the last hop and latency jumps that stay high from one hop onward. Loss on a single middle hop is usually ICMP rate limiting.

traceroute
mtr
Packet loss
Concepts

DNS Leaks Explained: What They Are and How to Test for One

A DNS leak is when your device sends DNS queries to a resolver outside your VPN or proxy tunnel while the rest of your traffic goes through it. Test it with dig, nslookup or tcpdump, and fix it by making lookups follow the same path as connections.

DNS
DNS leak
TUN mode