For a virtual private server (VPS) rented in a data centre, the limit depends on the hosting provider's bandwidth and the distance from you. For home files, route only your home network through the tunnel; to appear online from your home address, you need a full tunnel.
Why Home Upload Matters
PiVPN installs and helps maintain WireGuard or OpenVPN: they create an encrypted tunnel. There is no separate "PiVPN maximum speed". The result depends on your connection, device, protocol and load.
For a UK connection with fibre to the street cabinet (FTTC), Openreach states download speeds of up to 76 Mbit/s and upload of up to 15 Mbit/s. These are "up to" figures, not national averages; speed also depends on the distance to the cabinet.
When downloading through a full tunnel, the route is: website → home → your phone. Data reaches you via your home upload, so a download speed of up to 76 Mbit/s will not produce that VPN speed when upload is up to 15 Mbit/s. Tunnel overhead and home traffic will leave you with even less.
Why Home Upload Matters
Data reaches you via your home upload, so a download speed of up to 76 Mbit/s will not produce that VPN speed when upload is up to 15 Mbit/s.
Tunnel overhead and home traffic will leave you with even less.
| Server location | What limits the speed | What to measure |
|---|---|---|
| At home | Home upload, the client's connection, device load | Upload without VPN, then tunnel speed from outside |
| On a VPS | Hosting bandwidth, distance and node load | Latency and throughput from your network |
Test the VPN over mobile internet. A test from your home network does not reflect the route you will use when away, and on some routers it does not work at all. WireGuard benchmarks do not promise you any particular speed.
Check Inbound Access and Address Changes
Network address translation (NAT) lets devices share a single external address. Carrier-grade NAT (CGNAT) adds such a layer at the provider. Home port forwarding does not get past it.
Compare the internet-facing address of your router with the external address as seen from the internet. The range 100.64.0.0/10 (from 100.64.0.0 to 100.127.255.255) is reserved for carrier NAT shared address space. Private addresses 10.x.x.x, 192.168.x.x and 172.16.x.x–172.31.x.x also indicate an extra layer of NAT, but it may be on a second router of your own.
With CGNAT, request a public address from your provider or move the server to a VPS. Accessing your home network from a VPS will require a separate tunnel. With two of your own routers, port forwarding is needed on each. Also read about home VPN security and hardware.
The domain name system (DNS) links a server's name to its address. Dynamic DNS (DDNS) updates the record when your home address changes. Enter the name in the Endpoint field of the profile. WireGuard itself does not re-read it periodically: after an address change, reconnect the client or set up a reresolve-dns script. DDNS does not eliminate CGNAT.
Route All Traffic Through the Server, or Only Home Traffic
For a full tunnel, AllowedIPs = 0.0.0.0/0 is set: this is a route for all Internet Protocol version 4 (IPv4) traffic. On the server you need packet forwarding and masquerade, which substitutes its outbound address. Treat Internet Protocol version 6 (IPv6) separately: the ::/0 route requires support on the server. Specify a DNS server reachable through the tunnel, otherwise name queries may go to your local network's DNS.
For access to your home network only, set your home subnet and the required WireGuard subnet in AllowedIPs. The local area network (LAN) connects your home devices; you can find its range in the router, for example 192.168.50.0/24. I recommend this mode for home files: the rest of your internet traffic goes direct. Your home and guest subnets must not overlap, otherwise routes may conflict.
For example, you need home files and video from the internet. With a home-only route, the files are accessible, while video does not consume your home upload.
The route client → home → external VPN → website preserves the home upload limit. The website sees the external VPN; the routes of the two tunnels must be reconciled. To help you decide, see your own server or a VPN service: where to start.
Route All Traffic Through the Server, or Only Home Traffic
The route client → home → external VPN → website preserves the home upload limit.
The website sees the external VPN; the routes of the two tunnels must be reconciled.
Find the Point of Failure in Order
Troubleshoot in order following the PiVPN documentation.
- Run
pivpn -don the server (checks for common errors). - Connect the client over mobile data (checks the external route).
- Use
tcpdumpto check whether packets arrive on the VPN port. - If no packets arrive, check CGNAT and port forwarding on each router. If they do arrive, check the key exchange, routes, DNS and forwarding.
The maximum transmission unit (MTU) limits the packet size on an interface. If websites hang, try MTU = 1420 in the client's [Interface] section, then reduce it in steps of 10 with a reconnection each time. This is a diagnostic technique.
| Symptom | Likely cause | How to check | What to do |
|---|---|---|---|
| Packets do not arrive | CGNAT, port forwarding, filtering | Compare addresses, check the chain of routers | Fix the port forwarding or obtain a public address |
| Websites hang | DNS, MTU, forwarding | Check name resolution, packet size and the gateway | Fix the parameter you find |
| Failure after an address change | The client remembers the old address | Compare the connection address with DNS | Reconnect the client |
| Failure after idle time | The NAT mapping has expired | Test the exchange after sending data | If necessary, enable keepalive packets |
PersistentKeepalive = 25 sends a packet every 25 seconds, keeping the NAT mapping alive. Enable it on the side behind NAT if that side needs to receive packets after idle periods. It is off by default: extra traffic drains the battery. It does not increase speed.
Frequently Asked Questions
Is a VPS in another city always faster than a home server?
No. A nearby city does not guarantee lower latency: compare connections from the network you will actually use.
Why is my home VPN slow only when I am away?
Check the local connection. If it is slow even without the tunnel, replacing the home server will not fix that cause.
Why does WireGuard work over mobile networks but not in a hotel or office?
Filtering is possible. WireGuard uses the user datagram protocol (UDP) to carry packets. It does not disguise the tunnel and does not work over the transmission control protocol (TCP). These are WireGuard's known limitations.
For a personal device on a network that permits VPNs, I suggest considering CitadelVPN. The service lists VLESS with TCP/gRPC/xhttp transports and Hysteria2 for difficult networks; if UDP is filtered, start with the VLESS-over-TCP option. Add the subscription link from your dashboard to a compatible client such as Hiddify, update the list and select the connection. Speed and operation on any particular network are not guaranteed. In the office, use the access method approved by your organisation.
Which Setup to Keep
For files, route your home subnets through the tunnel. To show your home address on websites, configure the full route, forwarding, masquerade and DNS. A VPS removes the home upload bottleneck, but do verify the speed. When something fails, first establish whether packets arrive at all: CGNAT and port forwarding should be checked before MTU.