OPNsense Forum

English Forums => General Discussion => Topic started by: fiR3W4LL87 on March 15, 2024, 08:49:44 AM

Title: First request takes 20sec
Post by: fiR3W4LL87 on March 15, 2024, 08:49:44 AM
Dear Community,

I'm encountering an issue with my browser and I'm hoping to seek assistance from you all. My browser takes approximately 20 seconds to process the first request after it's launched. I'm running an OPNsense firewall and self-hosting AdGuard for DNS resolution on the Opnsense.

Interestingly, when I modify my browser's DNS settings, for example, to 1.1.1.1, requests are processed immediately upon browser startup, without the long delays.

Could you please help me troubleshoot and resolve this issue? Any assistance would be greatly appreciated!

Thank you in advance.
Title: Re: First request takes 20sec
Post by: bartjsmit on March 15, 2024, 12:55:58 PM
Run WireShark on the computer that hosts the browser and see what it is doing in those 20 seconds. https://www.wireshark.org/

Hint: it's DNS (it's always DNS)

Bart...
Title: Re: First request takes 20sec
Post by: franco on March 15, 2024, 02:53:01 PM
No way it's DNS! :D
Title: Re: First request takes 20sec
Post by: fiR3W4LL87 on March 28, 2024, 10:50:42 AM
I've noticed that too. Now, I don't really understand where the problem could be. I'm having trouble getting to the bottom of it with Wireshark; it's somehow too complicated for me. Maybe I'll just have to live with it, but it's really frustrating sometimes... That's why I thought I'd ask in the community; maybe someone else has had this issue before :
Title: Re: First request takes 20sec
Post by: franco on March 28, 2024, 12:41:28 PM
Most of the time you get served an IPv6 IP for the requested domain, but your IPv6 doesn't work for no particular reason and only after x seconds it sees the timeout and falls back to IPv4 use...

Try to disable IPv6 on your WAN as a first step.


Cheers,
Franco
Title: Re: First request takes 20sec
Post by: fiR3W4LL87 on March 28, 2024, 12:50:19 PM

Hi Franco,

It was my mistake. I realized that I had entered the wrong setting under System -> Settings -> Domain. Consequently, the system was attempting to resolve a domain to which it had no access.

I have corrected this, and now the initial requests should be processed directly.

Please accept my apologies for my oversight, and thank you for your patience and time.

Best regards,
Title: Re: First request takes 20sec
Post by: franco on March 28, 2024, 01:29:39 PM
No worries, happy to have this sorted :)


Cheers,
Franco