LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2020, 11:49 PM   #1
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 135

Rep: Reputation: 15
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 !
 
Old 02-28-2020, 12:36 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by robert644 View Post
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.
 
Old 02-28-2020, 09:48 AM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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.
 
1 members found this post helpful.
Old 02-28-2020, 09:58 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,244

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


Reply

Tags
vpn, vpnclient



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Cloud 5: Dissing private cloud, Hadoop in cloud, Shadow IT concerns LXer Syndicated Linux News 0 02-13-2015 01:00 PM
LXer: Cloud 5: GE all in on public cloud, IBM-SAP cloud partnership, Big data and the cloud LXer Syndicated Linux News 0 10-18-2014 04:41 AM
LXer: Cloud 5: Netflix's cloud-connected brain, 5 cloud myths and from cloud to fog LXer Syndicated Linux News 0 02-21-2014 02:20 PM
LXer: It's a cloud, cloud, cloud, cloud world LXer Syndicated Linux News 0 07-23-2013 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration