Many hosting companies start on rented dedicated servers at providers like OVH and Hetzner. These servers usually come with one public IPv4 address, and the upstream switch only accepts traffic from the server's own MAC address. Bridging VMs straight onto the public network does not work. NAT VPS solve this.
How NAT VPS work#
- VMs connect to a private instance network on the host, for example 10.250.0.0/24.
- The host routes that network and masquerades outgoing traffic behind its public IP.
- Incoming services are published with port forwarding: public port 20022 on the host goes to port 22 of a VPS, and so on.
- Optional extra IPs (failover or additional subnets) are routed to the server and assigned to specific VMs.
Because every packet leaving the server uses the host's MAC address, the upstream switch is happy.
What to watch out for#
- Port ranges: give each VPS a predictable range so customers can host SSH, a web panel and a game server.
- Anti-spoofing: a VPS must only send from its own private IP.
- SMTP: block outbound port 25 by default to protect the host IP's reputation.
- Bandwidth: all VPS share the uplink, so per-VPS speed limits keep things fair.
- IPv6: often easier, because providers route a /64 or larger to the server.
Doing it with PikoStack#
NAT is the default network mode in PikoStack. The installer links the virtual bridge to the host with a veth pair, VMs get addresses straight from the instance pool with no tenant router, and the host masquerades them, with its rules in dedicated chains so they never clash with your own. Port forwarding and port speed limits are part of the VPS hosting package. See networking modes.