I'm in the process of changing ISP. The new provider is cheaper and faster, but they don't provide a real IP. What would be the best way to redirect traffic from a real IP to a server behind NAT?

· · Web · 4 · 4 · 0

I've migrated to the following setup:

* A virtual machine in Linode cloud
* The VM runs wireguard and redirects traffic from the ports that I care about
* My server connects to Wireguard

The trick is to initial a connection from the server to the VM when a WG interface is up. As it's the server that is able to connect to the VM (not the other way round).

The solution I came up was to ping VM after a wg0 interface is up. I basically have this:

PostUp = ping X.Y.Z.Z -c 10

Use a Dynamic IP provider like

I use them for my security cameras since my provider doesn't provide static IP's
It is simple to setup and works well. I have been using them for over 2 years now.


Note some routers has their client already built in like TP-Link - all you have to do is put in your username and password for your noip account and it does everything else. The you simple got to a provided website. it will be in the form of or another of your choice.

This is from my Linux machine, which I do not have the plugin setup as I normally use my cell phone to view the cameras, but it will give you a idea. Hope it helps out

@youcantoo this would work for me, if I had a dynamic real IP. I got assigned a private IP which is not accessible from the Internet.


Oh snap, sorry about that. I have no idea then

@youcantoo My idea is to run a virtual machine in the cloud that has a real IP.

I'll set up VPN between my home PC and the virtual machine. This will allow me to redirect traffic from VM to PC

@tomasino thanks. I've ended up setting up Wireguard to a VM in the cloud

Sign in to participate in the conversation Mastodon Instance

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!