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?
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
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 xxxxxxx.ddns.net 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.
@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
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!