Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Monitor Load Balancing on HTTPS

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y Offline
      Yann Richard
      last edited by

      Hello,

      I've got an architecture such as this :
                          NGINX 1
                      /
      PFSENSE
                      \    NGINX 2

      NGINX1 and NGINX2 are listening both on 80 and 443. Port 80 redirects automatically on 443 with :

      
      server {
              listen 80;
              location / {
      	rewrite ^ https://$server_name$request_uri? permanent;
      	}
      }
      

      I defined 4 load balancing pools :
      NGINX1_HTTP,
      NGINX2_HTTP,
      NGINX1_HTTPS,
      NGINX2_HTTPS

      And 2 virtual servers :
      HTTP, which uses NGINX1_HTTP as master and NGINX2_HTTP as failover and listen on port 80
      HTTPS, which uses NGINX1_HTTPS as master and NGINX2_HTTPS as failover and listen on port 443

      My question is : how can i set pfsense to monitor https on my load balancing pools ?

      It works great for http but since my local IP and the URL of my certificate are not the same, I think pfsense see my two HTTPS as down.

      curl from pfsense says :

      curl: (51) SSL: no alternative certificate subject name matches target host name '192.168.1.2'
      

      Maybe there is something smarter to do for the whole pfsense conf ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.