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.
- 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).
- The gateway has IP forwarding enabled, so it accepts packets that are not addressed to itself.
- 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
REDIRECTfor TCP, orTPROXYfor TCP and UDP. - Everything else is masqueraded (source NAT) out to the main router, so replies return through the gateway instead of taking a shorter path.
| Role | Example address |
|---|---|
| Main router | 192.168.1.1 |
| Network gateway (side router) | 192.168.1.2 |
| Smart TV with gateway set to 192.168.1.2 | 192.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.10On 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.
| Situation | Better fit |
|---|---|
| One laptop or phone, per-app control wanted | Client on the device |
| Whole-device capture on a machine you control | TUN mode, see TUN mode vs system proxy |
| TV, console, NAS, printer, IoT device | Network gateway |
| Many devices in one office or home | Network gateway |
| Headless Linux server without a GUI client | Network 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.






