OPNsense Forum

English Forums => General Discussion => Topic started by: Just on January 11, 2020, 06:27:16 PM

Title: [Solved] TCP errors for some websites
Post by: Just on January 11, 2020, 06:27:16 PM
Hello guys,

I hope this is the right thread for it. Anyway I recently switched from pfSense to opnSense and I face a kinda annoying problem.
For some websites I get alot of "TCP Dup ACK" and "Ignored Unknown Record" messages while tracing the traffic with wireshark. For some sites it makes no difference in performance, they just load fine but for some others they take like 40-60 seconds to finish loading.

For example reddit.com needs like 50 seconds until it finished loading. My wireshark trace looks most of the time like this.
(https://i.ibb.co/3mS5SFK/wireshark.png) (https://ibb.co/3mS5SFK)

My current setup is the following

ISP <-> FRITZBOX 7490 <-> OPNsense

FRITZ!Box 7490
OPNsense
Info about OPNsense
How do I know it must be an issue related to the firewall?
What did I already do?
I hope anybody can help me out, since I have absolutly no idea what I can do about it.

Best regards
Just
Title: Re: TCP errors for some websites
Post by: Just on January 11, 2020, 10:50:05 PM
I am not 100% sure if I solved this mystery, but I'll try to explain what I found out.

This issue seems to be an DNS problem in combination with Unbound and DNS-over-TLS using Quad 9 servers (I didn't test any other servers). I used the following guide (https://stafwag.github.io/blog/blog/2018/12/09/configure-dns-tls-on-opnsense/) for DNS over TLS and this worked fine (no DNS issues at all and there was TLS traffic on port 853).
But if I use these custom options, I have the loading problem I described in my original post. If I remove these, the problem is gone. Even when I send the queries directly to 9.9.9.9 instead to the firewall the issue is still there if I haven't removed the custom options for DNS-over-TLS .

My workaround is to use normal DNS for now, but maybe someone knows a different solution, since I would like to keep using DoT.