Need you help again. I just realized recently that tcp connection from lan to public is always terminated after a few seconds despite ping works with no drop. For example, I run an SSH server on 10.0.0.164 and connect to it from 192.168.1.177. The initial connection is fine I can login and get authenticated and get the shell prompt. However after around 20 seconds the shell just hangs. The SSH server is still running and I can connect again without restarting the ssh server. The same problem happens when I try to print to a printer on public network from lan network, the printer will print about almost a quarter of the page before stopping. Please find below the last part of tcpdump capture of the ssh connection when it hangs:
15:07:40.196715 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5052:5168, ack 4140, win 1629, options [nop,nop,TS val 154798 ecr 5641639], length 116
15:07:40.196879 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5168, win 249, options [nop,nop,TS val 5641892 ecr 154798], length 0
15:07:40.690788 IP 192.168.1.177.45709 > 10.0.0.164.60805: Flags [FP.], seq 0:104, ack 1, win 249, options [nop,nop,TS val 5642016 ecr 146432], length 104
15:07:41.200863 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5168:5284, ack 4140, win 1629, options [nop,nop,TS val 154999 ecr 5641892], length 116
15:07:41.201023 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5284, win 249, options [nop,nop,TS val 5642143 ecr 154999], length 0
15:07:42.191301 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5284:5400, ack 4140, win 1629, options [nop,nop,TS val 155197 ecr 5642143], length 116
15:07:42.191454 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5400, win 249, options [nop,nop,TS val 5642391 ecr 155197], length 0
15:07:43.207483 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5400:5516, ack 4140, win 1629, options [nop,nop,TS val 155400 ecr 5642391], length 116
15:07:43.207640 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5516, win 249, options [nop,nop,TS val 5642645 ecr 155400], length 0
15:07:44.207775 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5516:5632, ack 4140, win 1629, options [nop,nop,TS val 155600 ecr 5642645], length 116
15:07:44.207940 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5632, win 249, options [nop,nop,TS val 5642895 ecr 155600], length 0
15:07:45.199236 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5632:5748, ack 4140, win 1629, options [nop,nop,TS val 155799 ecr 5642895], length 116
15:07:45.199407 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5748, win 249, options [nop,nop,TS val 5643143 ecr 155799], length 0
15:07:46.199007 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5748:5864, ack 4140, win 1629, options [nop,nop,TS val 155998 ecr 5643143], length 116
15:07:46.199173 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5864, win 249, options [nop,nop,TS val 5643393 ecr 155998], length 0
15:07:47.200189 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 156199 ecr 5643393], length 116
15:07:47.200356 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5643643 ecr 156199], length 0
15:07:47.414063 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 156240 ecr 5643393], length 116
15:07:47.414197 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5643696 ecr 156240,nop,nop,sack 1 {5864:5980}], length 0
15:07:47.823494 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 156322 ecr 5643393], length 116
15:07:47.823665 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5643799 ecr 156322,nop,nop,sack 1 {5864:5980}], length 0
15:07:48.639662 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 156486 ecr 5643393], length 116
15:07:48.639797 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5644003 ecr 156486,nop,nop,sack 1 {5864:5980}], length 0
15:07:50.284380 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 156815 ecr 5643393], length 116
15:07:50.284548 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5644414 ecr 156815,nop,nop,sack 1 {5864:5980}], length 0
15:07:53.572103 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 157472 ecr 5643393], length 116
15:07:53.572260 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5645236 ecr 157472,nop,nop,sack 1 {5864:5980}], length 0
15:08:00.154094 IP 10.0.0.164.60805 > 192.168.1.177.46016: Flags [P.], seq 5864:5980, ack 4140, win 1629, options [nop,nop,TS val 158788 ecr 5643393], length 116
15:08:00.154256 IP 192.168.1.177.46016 > 10.0.0.164.60805: Flags [.], ack 5980, win 249, options [nop,nop,TS val 5646881 ecr 158788,nop,nop,sack 1 {5864:5980}], length 0