Skip to content

Commit dbe919b

Browse files
sbruesekeSwen BrüsekeDaanHoogland
authored
Add documentation regarding SystemVMs load-balancing and SSL-Offloading (#299)
Co-authored-by: Swen Brüseke <s.brueseke@office-fra1.proio.local> Co-authored-by: dahn <daan.hoogland@gmail.com>
1 parent 5e13b4d commit dbe919b

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

source/adminguide/systemvm.rst

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ communication with SSL:
258258

259259
- Set up a SSL wild-card certificate and domain name resolution
260260

261-
- Set up SSL certificate for specific FQDN and configure load-balancer
261+
- Set up SSL certificate for specific FQDN and configure a load-balancer with optional ssl offloading.
262262

263263

264264
Changing the Console Proxy SSL Certificate and Domain
@@ -372,17 +372,46 @@ are still in default PEM format (no URL encoding needed here).
372372
After editing the database, please restart management server, and destroy SSVM and CPVM after that,
373373
so the new SSVM and CPVM with new certificates are created.
374374

375-
Load-balancing Console Proxies
376-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
375+
Load-balancing Console Proxies / Secondary Storage VMs
376+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
377377
An alternative to using dynamic DNS or creating a range of DNS entries
378378
as described in the last section would be to create a SSL certificate
379379
for a specific domain name, configure CloudStack to use that particular
380380
FQDN, and then configure a load balancer to load balance the console
381-
proxy's IP address behind the FQDN. As the functionality for this is
382-
still new, please see
381+
proxy's IP address behind the FQDN. When using a load balancer it is
382+
also possible to perform SSL-Offloading, so no certificate needs to be
383+
configured on CloudStack itself. For further information please see
383384
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Realhost+IP+changes
384385
for more details.
385386

387+
These ports needed to be configured for load-balancing:
388+
389+
- 443 to 443 (to CPVM)
390+
- 8080 to 8080 (to CPVM)
391+
- 443 to 443 (to SSVM)
392+
393+
SSL-Offloading with Load-balancing for Console Proxies / Secondary Storage VMs
394+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
395+
To implement SSL-Offloading you need 2 public IP addresses (one for Console Proxy and one for Secondary Storage VM) which
396+
each of them resolve to a different FQDN and terminate at the load balancer. Also 3 global settings need to be edited.
397+
398+
- The setting ‘consoleproxy.url.domain’ to the FQDN used by the certificate (For example: cpvm.company.com)
399+
- The setting ‘secstorage.ssl.cert.domain’ to the FQDN used by the cerrificate (For example: ssvm.company.com)
400+
- The setting ‘secstorage.encrypt.copy’ to true
401+
402+
.. warning::
403+
For sake of security you should block direct public access to the IP of Console Proxy and Secondary Storage VM. It is also
404+
possible to add a fake public IP range to CloudStack which uses internal IP addresses for SystemVM use only. Please
405+
be aware that the load balancer needs access to the used IP addresses to forward traffic.
406+
407+
After edited global settings mentioned above you need to recreate both System VMs by destroying them. CloudStack will recreate
408+
them with the new settings automatically.
409+
410+
When using SSL-Offloading you need to configure following ports on the load balancer after adding the correct certificate to the public IP of each FQDN:
411+
412+
- lb-publicip1:443 to CPVM:80
413+
- lb-publicip1:8080 to CPVM:8080
414+
- lb-publicip2:443 to SSVM:80
386415

387416
Virtual Router
388417
--------------

0 commit comments

Comments
 (0)