Intermittent Connectivity Issues with specific sites on pfSense – Need Help with NAT/MTU/MSS Troubleshooting
-
Hi everyone,
I'm experiencing intermittent connectivity issues with certain websites when routing traffic through my pfSense firewall (version 2.7.0-RELEASE). For example, sites like "www.detran.rs.gov.br" and some Microsoft properties sometimes load very slowly or only partially (e.g., missing CSS files), and at other times they don’t load at all.
Here’s what I’ve already tried:
MTU Adjustments: Lowered the WAN MTU to 1350 and 1400. MSS Clamping: Set MSS to 1360 (calculated as MTU minus 40 bytes). Hardware Offloading: Disabled Hardware Checksum Offload, TCP Segmentation Offload (TSO), and Large Receive Offload (LRO). Firewall Optimization & Scrub Options: Switched to Conservative optimization and toggled the Scrub settings. NAT/State Resets: Reviewed outbound NAT rules and performed state resets. Direct Testing on the pfSense Box: Running curl -v https://www.detran.rs.gov.br from the pfSense shell returns a successful connection with a proper TLS handshake. Packet Captures: Captures (via Wireshark) show repeated SYN retransmissions, suggesting the handshake isn’t completing reliably. The issue doesn’t seem to be due to oversized packets (none exceeding 1500 bytes). Other Checks: Verified that no proxies, pfBlockerNG, IDS/IPS, or additional filtering services are active. DNS resolution is functioning correctly. Attempted temporarily disabling the firewall with pfctl -d (which caused loss of connectivity, so it wasn’t a viable option).
Despite all these efforts, the issue remains intermittent and seems isolated to specific destinations, while other sites load normally.
Has anyone experienced a similar problem or have any suggestions for further troubleshooting steps? Any insight into what might be causing these issues—be it in the NAT processing, possible hardware/driver quirks, or external factors—would be greatly appreciated.
Thanks in advance for your help!
-
Could be an IPv6 vs v4 issue. Do you have any IPv6 enabled at all?
Do these sites fail consistently? Always resolving to the same IP?
That site also fails to load completely for me but that's coming from the UK. It may have some geoblocking.
-
@stephenw10 Hi,
Thanks for your response. I have IPv6 completely disabled on my network, so everything is running over IPv4 only. The problematic sites consistently resolve to the same IP address (for example, www.detran.rs.gov.br always resolves to 200.198.128.227).I'm experiencing this issue from within Brazil, and it's intermittent even on sites that don't seem to have geoblocking applied (detran.rs it's a brazilian site).
-
@marcos20 said in Intermittent Connectivity Issues with specific sites on pfSense – Need Help with NAT/MTU/MSS Troubleshooting:
(for example, www.detran.rs.gov.br
Not a good example. This is a gov.br site ( ! ), so normally they should not produce web site with that much 'syntax errors'.
More then 120 seconds are needed to load the file, and I know, I'm in from, but it was the site having a hard time outputting the info, not the transatlantic fiber cables.I tend to think your pfSense has no issues. It's just a fact that some web sites are ... well .... less well build
-
@Gertjan Hi,
Thanks for your input I totally agree that ideally they should be built better. However, I also manage another company that uses Pfsense with nearly identical configurations, and we’re encountering similar issues accessing Microsoft sites. Moreover, when I bypass the firewall, those sites, although sometimes slow, perform much better than they do behind the firewall.
This leads me to believe that there might be something in our configuration contributing to the problem, or maybe it's just a packet routing problem, even though the two Pfsense setups are on different ISPs. Any further insights would be greatly appreciated!
Best regards.
-
Your own 'ancient' PC with two NICs using 2.7.2, or a small box like this using 24.11, with default settings (change only the password) will work out of the box without issues.
If you see differently, I'm very confident the issue isn't pfSense.Tell us more about your setup.
-
-
Same. But only on the second attempt. Seems to be badly coded! Maybe firefox use is very low in Brazil? Been a while since I've seen something like that. Browser specific failures usually only hit Internet Explorer.
Do you have a different example site @marcos20?
-
Try mtupath
mtupath www.detran.rs.gov.brI have had similar problems some time ago, this was happening with IPv6 enabled but some sites were ipv4 only, so after mtupath discovery I have changed the MSS to 1352
BTW I have
zeroproblems opening www.detran.rs.gov.br in firefox also, but not in edge.