LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   I'd like to use a cloud instance as a public IP for webserver on a private network (https://www.linuxquestions.org/questions/linux-networking-3/id-like-to-use-a-cloud-instance-as-a-public-ip-for-webserver-on-a-private-network-4175670422/)

robert644 02-27-2020 11:49 PM

I'd like to use a cloud instance as a public IP for webserver on a private network
 
Hi.

I'm trying to use a cloud based instance as a public IP that provides access to a private webserver.

So, my cloud is running softether bridge ? server ? and when I connect to my cloud computer's IP, what I'm looking at is a webserver running on a remote network.

I have a small PC running a webserver that shows screenshots from a webcam. This setup is about 10 miles away from me. It's not a public IP, and that's not an option.

I have a cloud instance with a public IP and I'd like to connect to that and be redirected to the remote LAN.

I'm having difficulty finding information about this. Specifically, what the correct term to describe this is. I've been working with SoftEther and I'm under the impression that I have to set up a VPN server on the remote LAN, and then a bridge on the cloud computer ?

Anyways, any direction would be appreciated. My google-fu is working well

Thanks !

berndbausch 02-28-2020 12:36 AM

Quote:

Originally Posted by robert644 (Post 6095027)
I have a small PC running a webserver that shows screenshots from a webcam. This setup is about 10 miles away from me. It's not a public IP, and that's not an option.

If the PC is connected to the internet, you do have a public IP. If not, there is no way you can access it over the internet.

I strongly suspect it is on the internet. You have a router that faces the internet and has a public IP, and also faces the internal network of the PC's location, probably with a private address range like 192.168.1.0/24.

Let's assume a few addresses to make this discussion easier.
Router's public IP: 1.2.3.4
PC's address: 192.168.1.123

If the router features port forwarding like most routers, pick a port number like 1234 and configure it so that port 1234 is forwarded to the correct port on your PC, for example 192.168.1.123:80. Then you can access your PC from the internet through the address 1.2.3.4:1234.

Most home router's public addresses are not fixed. If that is so in your case, find a DDNS provider that maps a domain name to the current public IP address. As an example, no-ip.com is free of charge. Then, you can access your webcam with your-name.ddns.net:1234.

The problem with the above setup is lack of security. Anybody who knows about your port 1234 can access your PC. To avoid that, use VPN software such as OpenVPN or a VPN provider. Instructions are on the internet.

scasey 02-28-2020 09:48 AM

Think the other way: Configure the remote PC to push the images to the public server. I've done that, but I don't recall exactly how, and it would have been a Windows PC at the time, anyway.

That's how video doorbells work. They are connected to a home network that has internet access. They push their images to the public server, then the app or browser retrieves the images from that server.

dugan 02-28-2020 09:58 AM

If it's Amazon, you want to set up a VPC (Virtual Private Cloud).


All times are GMT -5. The time now is 12:02 PM.