External URL Setup w/ SSL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mholtaftac
Posts: 36
Joined: Mon May 13, 2013 10:05 am

External URL Setup w/ SSL

Post by mholtaftac »

Linux Distribution and version? CentOS 6.6
32 or 64bit? 64 bit
VMware Image or Manual Install of XI? VMware Image
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? Using SSL
**If you are encountering multiple issues that may not be related, start a thread for each issue

I have SSL working with the program URL that is set to a name that resolves to an internal IP address (I used configuring SSL for Nagios XI to do this). I have a second URL that I want to set to resolve to an external IP on the firewall and redirect to the NagiosXI server for external access, however, I want to use an additional SSL cert that I have for the second URL.

So basically:
Program URL - SSL - https://nagiosUrl/nagiosxi
External URL - SSL - https://nagiosUrlExt/nagiosxi

Do I set this up in the external URL section under Admin - Manage System Config? And it so that can't be the only step.
You do not have the required permissions to view the files attached to this post.
mholtaftac
Posts: 36
Joined: Mon May 13, 2013 10:05 am

Re: External URL Setup w/ SSL

Post by mholtaftac »

Update:

So, we set up an external IP to tie to the ExtUrl and it forwards internally and therefore, I can access the Nagios instance from external. Now I just need to know the steps for getting SSL to work. Right now I get a hostname mismatch for the SSL.

Program URL - SSL - https://nagiosUrl/nagiosxi
External URL - SSL - https://nagiosUrlExt/nagiosxi

Do I:

1. Modify my SSL certificate request to include nagiosUrl and nagiosUrlExt

or

2. Load an additional SSL cert for nagiosUrlEx, and if so, how do I load an SSL cert for a secondary, external URL?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: External URL Setup w/ SSL

Post by ssax »

Are you using a self-signed certificate, one signed by your local certificate authority, or one signed by a recognized certificate authority?
mholtaftac
Posts: 36
Joined: Mon May 13, 2013 10:05 am

Re: External URL Setup w/ SSL

Post by mholtaftac »

Thank you for your reply. I've finally figured out what I needed to do. My problem was solved by ordering an SSL certificate with a SAN for the other name. This worked for me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: External URL Setup w/ SSL

Post by rkennedy »

Great to hear! Are we good to mark this thread as resolved then?
Former Nagios Employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: External URL Setup w/ SSL

Post by WillemDH »

You could also protect your external available Nagios XI with Apache config directives:

Code: Select all

<Directory "/usr/local/nagiosxi/html">
                Options None
                AllowOverride None
                Order deny,allow
                Deny from all
                Allow from 79.54.38.229 127.0.0.1 ::1 212.71.234.84 2a01:75e0::f03c:933:fe18:6141 fe80::2232:09e4:fe18:674c
                Require all granted
                Redirect permanent / https://outsideit.net/
</Directory>
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: External URL Setup w/ SSL

Post by hsmith »

Thanks Willem :)
Former Nagios Employee.
me.
Locked