LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2018, 11:20 AM   #1
Easy lx
LQ Newbie
 
Registered: Jan 2018
Posts: 4

Rep: Reputation: Disabled
How to enable ssl on all ports in a linux Virtual machine


Hi, i set up a linux VM on Microsoft azure, opened some ports and installed applications(horizon, stellar-core) that listens on those ports.

I need to access the urls e.g(http://domainname.com:8000) - to those ports from a secure server. so i had to install ssl certificate on my linux VM remotely. i used the Nginx certbot to install an ssl certificate.

When i type the url of the virtual machine e.g domainname.com, it loads as an https://domainname.com but when i visit domainname.com:8000, it does not load as https.

How can i make all ports on this VM load as https? Thanks
 
Old 01-11-2018, 12:09 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178Reputation: 3178
Ordinarily, you would not open "port 8000" to external access: you would open only ports #80 and #443.

You can specify the Apache's mod_ssl should (also) service other port-numbers, but this is not commonly done.

If the server is to be externally accessible, I strongly recommend that you should use only the well-known port numbers and none other. "You are in Rome. Do as the Romans do." If you use another port-number, you're basically creating a back door. (And yes, it will be found.)

Port-numbers greater than 1024 are routinely used for development servers because non-privileged programs (by convention ...) can't use lower-numbered ports.

Last edited by sundialsvcs; 01-11-2018 at 12:13 PM.
 
Old 01-11-2018, 03:19 PM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,234

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
... building on sundials' advice,

... port forwarding would seem to me to be the way to go here, if you want to maintain port 8000 for whatever reason. You would need some router / device to do the port forwarding with a public facing IP, but I don't suppose that should be a showstopper. I am not very familiar with Azure, other than that the company I work for uses it as its corporate cloud infrastructure, so I can't really help you with further details.

Good luck and cheers !
 
Old 01-12-2018, 02:14 AM   #4
Easy lx
LQ Newbie
 
Registered: Jan 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Alright. Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to setup virtual machine in a host that uses different ports? dedec0 Linux - Networking 7 06-10-2015 02:42 PM
How do i find SSL enabled ports or SSL instances Doknik Linux - Software 1 12-10-2011 04:29 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 02:04 PM
How do I enable USB on Fedora Core 3 as Virtual Machine Guest reuseapc Linux - Hardware 2 12-11-2007 12:52 AM
Apache SSL - how to virtual host two or more secure websites on the same machine? bjoshi Linux - Networking 0 08-30-2001 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration