OPNsense Forum

English Forums => General Discussion => Topic started by: vivekmauli14 on January 13, 2025, 05:34:21 PM

Title: Alias-Hosts Not Fully Resolving Websites: long load,Styles and Scripts Missing
Post by: vivekmauli14 on January 13, 2025, 05:34:21 PM
Hi,

I have configured an Alias (Hosts type) in the firewall to allow access to specific websites such as Stack Overflow and GeeksforGeeks, while blocking all other network traffic. However, when attempting to access these sites under this configuration, I observe the following issues:

Slow Response Time: Unlike unrestricted access, the websites take significantly longer to load.
Partial Page Rendering: Only the HTML body is rendered, while CSS stylesheets and JavaScript resources fail to load.
Domain Resolution Issue: External dependencies (e.g., CDNs, scripts, styles from third-party domains) are not being resolved correctly when using the Alias-based allow rule.

What additional configurations are required to ensure that websites load fully when using Alias (Hosts type) filtering in OPNsense? Could this be a DNS resolution or firewall handling issue?

Looking forward for a solution

Thanks,
Best,
VivekSP
Title: Re: Alias-Hosts Not Fully Resolving Websites: long load,Styles and Scripts Missing
Post by: cookiemonster on January 13, 2025, 06:09:59 PM
Most likely the page is calling other URIs, which aren't also whitelisted. You could use Ctrl+Shift+I on various web browsers to see it in the networking tab of that tool.