Firewall Issues - ssh_dispatch_run_fatal errors during SSH

Just upgraded to Sequoia and noticed a lot of issues with the firewall while using ssh.


After ssh'ing into a local server on my network, after a few minutes I get this error:


Bad packet length 2489765067.

ssh_dispatch_run_fatal: Connection to 192.168.30.2 port 22: Connection corrupted


I can trigger it by ssh'ing into pretty much any server or computer on my network and then executing a command like:


ping google.com


within 10 - 30 seconds, the connection drops.


Happens with IPv4 and IPv6. Happens with Terminal and iTerm apps.


Disabling the firewall fixes the issue. In this case, my Mac is running statically in my local network and safely behind an upstream firewall. So, it's annoying to have to disable the firewall every time I have to ssh in anywhere, but not the end of the world. Obviously, that isn't a long term fix, however.


Anyone else seeing similar?

Mac Studio

Posted on Sep 17, 2024 6:35 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 6, 2024 6:28 PM

Whilst this is true that Apple cannot fix the problem caused by others, however, this issue should not be ignored. MacOS 15.0.x borks TCP connections. See Little Snitch blog about Sequoia on TCP, Firewall issues https://obdev.at/blog/should-i-upgrade-to-macos-sequoia-now/


Disabling all third-party Network Filters will alleviate the issue temporarily (until, hopefully a fix on 15.1). macOS Firewall set to **block** all incoming connections (with the exception of some internal processes) works for me as well (you can set this to allow all and fine-tune the setting per third-party application).


As for VPN, well, I use Firefox connected to VPN via Windscribe and it works, so far so good. I have yet to run a VPN for all network connections, perhaps I will do this soon to test.


MacOS 15.0 is new, let's give Apple time to fix it -- also hoping that beta testers report this bug. As for us, let's continue filing bug reports, the more, the better, so Apple gets to prioritize it.


For the meantime, if you are from corporate IT, it is your responsibility to evaluate and certify new software before your users are allowed to download and install it. And if a user installs Sequoia, knowing that there is this bug AND if it is mission critical, then get them to revert back to macOS 14. :)


78 replies
Question marked as Top-ranking reply

Oct 6, 2024 6:28 PM in response to etresoft

Whilst this is true that Apple cannot fix the problem caused by others, however, this issue should not be ignored. MacOS 15.0.x borks TCP connections. See Little Snitch blog about Sequoia on TCP, Firewall issues https://obdev.at/blog/should-i-upgrade-to-macos-sequoia-now/


Disabling all third-party Network Filters will alleviate the issue temporarily (until, hopefully a fix on 15.1). macOS Firewall set to **block** all incoming connections (with the exception of some internal processes) works for me as well (you can set this to allow all and fine-tune the setting per third-party application).


As for VPN, well, I use Firefox connected to VPN via Windscribe and it works, so far so good. I have yet to run a VPN for all network connections, perhaps I will do this soon to test.


MacOS 15.0 is new, let's give Apple time to fix it -- also hoping that beta testers report this bug. As for us, let's continue filing bug reports, the more, the better, so Apple gets to prioritize it.


For the meantime, if you are from corporate IT, it is your responsibility to evaluate and certify new software before your users are allowed to download and install it. And if a user installs Sequoia, knowing that there is this bug AND if it is mission critical, then get them to revert back to macOS 14. :)


Sep 21, 2024 10:19 PM in response to mikeloiterman

I spent 2 days debugging my Debian server until I realised this might be a problem on the client side. then I looked over the logs and


2024-09-22T07:53:26.484700+03:00 TheBrain sshd[285596]: Received disconnect from 192.168.0.180 port 56574:11: disconnected by user
2024-09-22T07:53:26.484948+03:00 TheBrain sshd[285596]: Disconnected from user user 192.168.0.180 port 56574
2024-09-22T07:53:26.485790+03:00 TheBrain sshd[285590]: pam_unix(sshd:session): session closed for user user
2024-09-22T07:53:26.491402+03:00 TheBrain systemd-logind[468]: Session 309 logged out. Waiting for processes to exit.
2024-09-22T07:53:26.493102+03:00 TheBrain systemd-logind[468]: Removed session 309.
2024-09-22T07:53:59.923525+03:00 TheBrain sshd[285605]: Connection closed by 192.168.0.180 port 56575
2024-09-22T07:53:59.923785+03:00 TheBrain sshd[285605]: Close session: user user from 192.168.0.180 port 56575 id 0 


so it's on the client side. And I solved this by disabling LuLu.

Sep 18, 2024 10:06 AM in response to mikeloiterman

Hi Mike,


After a dreadful morning with all sorts of weird connection problems, found your post here, and thanks to it I found out the culprit (at least for me).


If you happen to be using a content filter or proxy, disable it (at least temporarily). I was using Microsoft Defender and as soon as I turned it filter off in Network > Filters all issues gone. No need to turn off Firewall.


HTH.



Oct 2, 2024 9:42 AM in response to mikeloiterman

Hi everyone, I'm having the same problem too.

I'm using LAN connection (Home) and WiFI (Office) and the Issue having with both.


Today the SSH connection was constantly interrupted and after a few seconds or even minutes and I couldn't work.


I disabled the "Limit IP Address tracking" option and so far (barring surprises, and I'll keep you updated it seems to have disappeared) I haven't disabled firewalls and other programs.



I've been ssh'd for about an hour now and am having no problems. Let's hope so.

Oct 5, 2024 2:03 PM in response to Zilentbob

Guys, this is a very old and erratic bug in the Network Extension (I believe). Here are some references:



The problem with this issue is that it comes and goes. It becomes more severe if you have a docking station with ethernet, VPN or a network filter (little snitch or lulu). Apple developers have been ignoring this issue deliberately for years. YEARS. The internet is FLOODED with people complaining about this (networking timeouts), but because this issue is not easily reproducible, and even worse, because this issue can at times only affect the speed of the connection (which can be blamed on other factors), no one hammered Apple to take it seriously. I know many people who abandoned Mac because of this.


If you want to know whether this issue is happening, while the internet/network is slow, just run a ping on your router. You'll get something like this:


$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 164 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=2306.502 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1300.413 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=295.091 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.242 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1830.929 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=2687.323 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=1685.573 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=680.508 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.857 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.929 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=197.700 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=2764.140 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=1762.121 ms
64 bytes from 192.168.1.1: icmp_seq=13 ttl=64 time=756.605 ms
64 bytes from 192.168.1.1: icmp_seq=14 ttl=64 time=0.983 ms
64 bytes from 192.168.1.1: icmp_seq=15 ttl=64 time=2152.170 ms
64 bytes from 192.168.1.1: icmp_seq=16 ttl=64 time=1150.504 ms
64 bytes from 192.168.1.1: icmp_seq=17 ttl=64 time=1859.144 ms
64 bytes from 192.168.1.1: icmp_seq=18 ttl=64 time=854.277 ms
64 bytes from 192.168.1.1: icmp_seq=19 ttl=64 time=0.943 ms
64 bytes from 192.168.1.1: icmp_seq=20 ttl=64 time=0.790 ms
64 bytes from 192.168.1.1: icmp_seq=21 ttl=64 time=0.545 ms
64 bytes from 192.168.1.1: icmp_seq=22 ttl=64 time=1.522 ms
Request timeout for icmp_seq 2564 bytes from 192.168.1.1: icmp_seq=23 ttl=64 time=3073.333 ms
64 bytes from 192.168.1.1: icmp_seq=24 ttl=64 time=3373.110 ms


Meaning, you'll get timeouts and unstable networking randomly. Notice how the time value goes up and down like crazy. This is why your internet is slow!


A restart might solve the problem temporarily. Another reason why many people just shrug it off.


I would've built the networking kernel module and debugged it myself, but this seems to be an issue with the Network Extension (since it's related to the OS firewall, filters, etc)... which is not open source! If it were open source, I swear I would happily build it in debug mode and fix it myself... this is how bad this is!


I think the only question that matters here is: How can we push Apple to do something about this? I'm happy to run a debug session with a developer to fix this... but they don't seem to want to take this seriously! Wtf do we do?!


[Edited by Moderator]

Oct 30, 2024 5:27 AM in response to SamWantsYouToChill

This depends on whether the issue got completely fixed or just improved. It seems that many people here are reluctant to do the ping tests multiple times per day to see these spikes I talk about. Note that disabling the firewall *improves* these spikes, it doesn't remove them completely. Meaning: The issue you're claiming was fixed in 15.1 is just a symptom of a bigger problem. Congratulations to you, since you seem to have a setup, for which this is working for you. But I do implore those who have things working for them to be more understanding and not dismiss the bigger issue for those who have a more complex setup. I have all kinds of friends and colleagues that are facing networking problems in different severities, ranging from once per month blocked networking to every day.

In summary: If you want to check whether the issue is fixed, ping your router every few hours, and if you have zero spikes in response time (whether small or big), then the issue is fixed for you. If the spikes become so large that they lead to timeouts, then you'll face all the problems everyone talked about in this post, including ssh disconnections, internet lags and connectivity problems, etc.


Since I'm the original poster in this thread, I know quite well what the problem is, how to test if it's still there, and what kinds of things cause it to reoccur.


15.1 fixes the issue that started this thread.


Your decision to lump other issues into this discussion only serves to confuse yourself and others.

Oct 29, 2024 1:04 PM in response to unitof

Let us know if 15.1 "fixed" the issue for you.


For me, I no longer see " ssh_dispatch_run_fatal errors during SSH" errors. I have been SSH'd to my Linux server for the past hour and no ssh issues. Network packet drops is another issue all together, IMHO.


And as I have posted earlier - disabling Network Filters (Little Snitch), keeping the built-in firewall ON, Limit IP address to ON and Private WiFi to OFF worked for me prior to 15.1.



Oct 29, 2024 11:18 AM in response to SamWantsYouToChill

As far as I know the bug reported in this thread: ssh_dispatch_run_fatal errors during SSH, has been fixed. This same bug also seemed to affect RDP/3389. That also seems to be fixed. I've seen no reports of either behavior since 15.1 beta was out. The longest I went without getting kicked off of either after upgrading to 15.0 was something like 15 minutes, more frequently it would be within a minute or so with ssh and even more quickly with RDP.

I spend most of my working life in ssh and RDP and since the upgrade I've not been kicked off. There are other network bugs—my connections stall a few times an hour, but that looks to be due to some other issue.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Firewall Issues - ssh_dispatch_run_fatal errors during SSH

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.