DNAT with iptables over wireguard hosted on a VPS to host services behind a firewall/GNAT.
This is a short description of how to host services, using STORJ node as an example, on a host behind GNAT, or otherwise restrictive firewall, by forwarding packets through WireGuard endpoint on a relatively fast nearby VPS. This is not specific to Storj, and can be adopted to hosting other services.
As an example we will use an Oracle Cloud instance. Free tier still provides 10TB of monthly traffic that is sufficient for most node operators. Just make sure to create an account in a closest datacenter to minimize extra latency.
Notes on configuring the cloud instance
- Create the oracle compute instance (ideally, Ampere, because they are awesome, but if that is not availabe, any other will do too).
- Pick any OS you prefer, here we'll describe Ubuntu, as a most popular one.