Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
You’re on the right track, but there are a few steps that might need tweaking to achieve what you want.
Ensure Correct IP Routing:
Make sure your VPS is correctly routing the traffic back to your local machine over the WireGuard interface.
You should have something like this in your WireGuard configuration on the VPS:
[Peer]
PublicKey = <Your_Local_Machine_Public_Key>
AllowedIPs = <Your_Local_Machine_WG_IP>/32
AllowedIPs setting should be set to 0.0.0.0/0 if you want all traffic to go through the VPS.Port Forwarding:
iptables or a similar firewall tool.sudo iptables -A FORWARD -i wg0 -o eth0 -p tcp --syn --dport <port> -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport <port> -j DNAT --to-destination <Your_Local_Machine_WG_IP>:<port>
sudo iptables -A POSTROUTING -t nat -o wg0 -p tcp --dport <port> -d <Your_Local_Machine_WG_IP> -j MASQUERADE
<port> with the specific port you’re trying to open and <Your_Local_Machine_WG_IP> with the WireGuard IP address of your local machine.Check Firewalls:
telnet <VPS_IP> <port> from a different machine.Game and NAT Type: