Tech Support: Not Reaching Domain via HTTPS Server Behind PfSense Firewall

Abstract: Resolve HTTPS domain resolution failures behind PfSense by fixing port forwarding, virtual host routing, and SSL certificate binding.

Created: 2026-10-18 by
Some domains fail to resolve via HTTPS when hosted behind a PfSense firewall due to misconfigured virtual host rules, missing port forwarding, or incorrect SSL certificate binding. This issue typically arises because the reverse proxy cannot correctly route incoming requests to the specific Spring Boot backend associated with each domain name.

Verify Port Forwarding and NAT Rules

The first step in troubleshooting is ensuring that traffic from the internet can actually reach your internal server. PfSense acts as a gateway, so if the correct ports are not forwarded, external requests will be dropped before they hit your application. You must verify that both HTTP (port 80) and HTTPS (port 443) are forwarded to the internal IP address of your Linux server hosting the Spring Boot application. Navigate to Firewall > NAT > Port Forward in the PfSense web interface. Ensure there is a rule for each protocol you intend to support. The destination should be your server's local IP, and the foreign address should be set to "any" unless you have a specific static public IP requirement. If you are using a dynamic DNS service, ensure that the WAN interface is correctly identified and that no conflicting aliases are blocking the traffic. Additionally, check the Firewall > Rules > WAN section. There must be an allow rule corresponding to the port forward rules created above. Without this explicit allow rule, the default deny policy will block the connection even if the NAT translation is correct. It is common to overlook this step when setting up new services, leading to intermittent connectivity issues where some domains work while others do not, depending on existing firewall configurations.

Configure Virtual Hosts and Reverse Proxy

Once network connectivity is established, the next layer of failure usually occurs at the application level. If you are running multiple domains on a single server, your web server (such as Nginx, Apache, or Traefik) must distinguish between them based on the Host header. If all domains point to the same IP but only one resolves correctly, it indicates that the reverse proxy is either defaulting to a single backend or failing to match the hostname. In your reverse proxy configuration, ensure that separate server blocks or location contexts exist for each domain. For example, in Nginx, you would define distinct server_name directives for each domain, routing them to different upstream ports or containers running your Spring Boot instances. Misconfiguration here often results in a "404 Not Found" or a generic error page for all domains except the primary one configured by default. If you are using a load balancer or a more complex setup, verify that the X-Forwarded-Proto and X-Forwarded-For headers are being passed correctly. Spring Boot relies on these headers to understand that the original request was HTTPS, especially when sitting behind a TLS-terminating proxy. Without these headers, your application might redirect HTTP traffic back to itself, creating a loop or causing mixed content errors that browsers reject.

Check SSL Certificate Binding

HTTPS requires valid certificates for each domain. If you are using a wildcard certificate, ensure that the domain names fall within the wildcard scope. If you are using individual certificates, such as those obtained from Let's Encrypt, verify that the certificate files are correctly linked to the virtual host configuration. A common pitfall is configuring the proxy to listen on port 443 but failing to specify the correct certificate path for a specific domain. When accessing a domain over HTTPS, the browser performs a handshake. If the server presents a certificate for example.com when the user requests api.example.net, the browser will display a security warning. In many cases, automated scripts or API clients may treat this as a failure, making the domain appear unreachable. Use tools like openssl s_client or online SSL checkers to verify that the correct certificate is being served for each domain. Furthermore, ensure that the certificate renewal process does not break the configuration. If you use Certbot or similar tools, verify that the hooks updating your web server configuration are executed successfully after renewal. A broken symlink or a permission issue on the private key file can cause the web server to fail to start or reload, taking down all associated domains simultaneously.

Debugging Network and Application Logs

If the above steps do not resolve the issue, you need to look deeper into the logs. On the PfSense side, enable packet capture (Diagnostics > Packet Capture) to see if packets are arriving at the WAN interface and being translated correctly. Look for SYN packets from your public IP addressing the forwarded port. If you see them but no return traffic, the issue lies within your Linux server's firewall or application configuration. On the Linux server, check the logs of your web server and the Spring Boot application. Web server logs will show whether the request reached the proxy and which virtual host matched. Spring Boot logs will reveal if the request was processed and what response was generated. Pay attention to any exceptions related to SSL context initialization or database connectivity, which might occur only under specific domain routing scenarios. You can also use curl -v https://domain.com from a machine outside your network to simulate a real user request. The verbose output will show the exact point of failure, whether it is a DNS resolution issue, a TCP handshake timeout, or an SSL handshake error. This diagnostic step provides concrete evidence to narrow down the scope of the problem.

Frequently Asked Questions

Why do some domains work while others fail?

This usually happens when the reverse proxy has a default server block that handles unmatched requests, while other domains lack proper configuration. Check your web server config to ensure every domain has a dedicated server block with correct server_name and upstream definitions.

How do I test if PfSense is forwarding traffic correctly?

Use the built-in packet capture tool in PfSense under Diagnostics. Filter for the public IP and port 443, then attempt to access the domain from an external network. If you see incoming SYN packets but no SYN-ACK responses, the issue is likely on the Linux server side.

Can a wildcard certificate solve multi-domain issues?

Yes, a wildcard certificate covers all subdomains of a base domain (e.g., *.example.com). However, it will not work for completely different root domains. Ensure your certificate matches the exact hostname requested by the client to avoid SSL handshake failures.

What headers must Spring Boot receive from the proxy?

Spring Boot needs X-Forwarded-Proto set to "https" and X-Forwarded-For to identify the real client IP. Configure your reverse proxy to inject these headers automatically, otherwise, redirects may loop or security checks may fail.

Is it safe to disable SSL verification for testing?

Disabling SSL verification is useful for debugging during development but poses significant security risks in production. Always use valid certificates and proper chain validation in live environments to prevent man-in-the-middle attacks and ensure browser compatibility.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More