ServerAliveInterval 30
1. This is normal. Connections terminate without a proper close all the time and the firewall needs to have some timeout to drop them from its table.2. You can try settingCode: [Select] ServerAliveInterval 30in your SSH config.
$ sudo tcpdump -n -i en12 port 22tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on en12, link-type EN10MB (Ethernet), capture size 262144 bytes15:07:45.811029 IP6 2003:a:827:2a00:4939:9c75:99d3:eef2.64078 > 2a00:b580:8000:13:921b:eff:fe63:ef77.22: Flags [P.], seq 113766925:113766977, ack 4169088554, win 2048, options [nop,nop,TS val 1946454705 ecr 3877894085], length 5215:07:45.830129 IP6 2a00:b580:8000:13:921b:eff:fe63:ef77.22 > 2003:a:827:2a00:4939:9c75:99d3:eef2.64078: Flags [P.], seq 1:29, ack 52, win 1036, options [nop,nop,TS val 3877924106 ecr 1946454705], length 2815:07:45.830212 IP6 2003:a:827:2a00:4939:9c75:99d3:eef2.64078 > 2a00:b580:8000:13:921b:eff:fe63:ef77.22: Flags [.], ack 29, win 2047, options [nop,nop,TS val 1946454725 ecr 3877924106], length 015:08:15.835059 IP6 2003:a:827:2a00:4939:9c75:99d3:eef2.64078 > 2a00:b580:8000:13:921b:eff:fe63:ef77.22: Flags [P.], seq 52:104, ack 29, win 2048, options [nop,nop,TS val 1946484729 ecr 3877924106], length 5215:08:15.852210 IP6 2a00:b580:8000:13:921b:eff:fe63:ef77.22 > 2003:a:827:2a00:4939:9c75:99d3:eef2.64078: Flags [P.], seq 29:57, ack 104, win 1036, options [nop,nop,TS val 3877954130 ecr 1946484729], length 2815:08:15.852260 IP6 2003:a:827:2a00:4939:9c75:99d3:eef2.64078 > 2a00:b580:8000:13:921b:eff:fe63:ef77.22: Flags [.], ack 57, win 2047, options [nop,nop,TS val 1946484746 ecr 3877954130], length 015:08:45.856870 IP6 2003:a:827:2a00:4939:9c75:99d3:eef2.64078 > 2a00:b580:8000:13:921b:eff:fe63:ef77.22: Flags [P.], seq 104:156, ack 57, win 2048, options [nop,nop,TS val 1946514751 ecr 3877954130], length 5215:08:45.875281 IP6 2a00:b580:8000:13:921b:eff:fe63:ef77.22 > 2003:a:827:2a00:4939:9c75:99d3:eef2.64078: Flags [P.], seq 57:85, ack 156, win 1036, options [nop,nop,TS val 3877984153 ecr 1946514751], length 2815:08:45.875349 IP6 2003:a:827:2a00:4939:9c75:99d3:eef2.64078 > 2a00:b580:8000:13:921b:eff:fe63:ef77.22: Flags [.], ack 85, win 2047, options [nop,nop,TS val 1946514769 ecr 3877984153], length 0^C9 packets captured169025 packets received by filter0 packets dropped by kernel