Right then, mini-guide time. My cheapo Hostinger VPS finally ran out of IPv4s—apparently I was the last customer to notice they oversold the /26. Rather than pay Vultr's ransom prices for another address, I bodged together an IPv4-over-IPv6 tunnel using a $2/mo HostHatch box with a proper /64.
The cursed setup:
- HostHatch runs tayga for NAT64
- Hostinger VPS connects via SIT tunnel (ip tunnel add mode sit remote...)
- Default route via the tunnel interface
- iptables MASQUERADE because I am lazy and this is temporary
It works. 45 Mbps, 18 ms observed to the tunnel endpoint. My little web server is reachable again. Is it elegant? Absolutely not. Will it survive a reboot? I forgot to add the ip tunnel to rc.local, so no.
Cheers lads, someone please tell me there's a less awful way before I forget this exists and it breaks at 3 AM.