<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Lightner, Jeffrey" <JLightner@dsservices.com><br><b>To: </b>"Chris Fowler" <cfowler@outpostsentinel.com>, "Atlanta Linux Enthusiasts" <ale@ale.org>, neal@mnopltd.com<br><b>Sent: </b>Wednesday, July 31, 2019 11:01:40 AM<br><b>Subject: </b>RE: After 15 years, Nohup is sttll broken???<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div class="WordSection1"><p class="MsoPlainText">I gather you're doing an ssh from one system to another. I wonder if your shell default on either the system you're coming from or the second system has TMOUT variable set and it is thinking the session is idle due to lack of output. If so, doing an unset TMOUT might solve it. Note I have seen issues where firewall devices will timeout sessions such as VPN but I can full them by running a while loop in another window to just display data to the screen every 5 minutes.</p></div></blockquote><div>Nope, this is typical of these firewalls. If no packets are send after N minutes the firewall deletes the connection from its tracking table. This behavior is consistent, reliable, and repeatable. Once I tweaked KAs all these issues went away.<br></div><div><br></div><div>I keep the KAs tight and on my distributed systems I use libkeepalive as LD_PRELOAD to FORCE KA on all TCP sockets. Regardless of what the programmer of that program wanted. It may be extreme, but in the past I communicated with these systems via IP over modem or their ethernet and I had sessions that would hang forever causing all sorts of problems. Especially with modems. To test that I had rectified the symptoms over modems I would simply open a TCP socket in perl to a remote system from a box in my lab that had a modem. The modem would dial and then the socket would connect. I'd then do a read on the socket, making sure that the read would be blocking and then I'd pull the phone line from my simulator or the real AT&T. I waited to see how the read would respawn. I also had issues with APIs that did select() with no timeout forever blocking due to no KA on the TCP socket. libkeepalive solved all those issues. The problematic program that forced use of libkeepalive was using SOAP in perl.<br></div><div><br></div><div>I've spent hours dealing with NAT issues and when op said "Sonic Firewall" the alarms went off in my head. SSH does not need libkeepalive. It only needs those options I sent earlier. libkeepalive is for programs that have no options or you can not change.</div><div><br></div><div><br></div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[root@localhost]# ka-test </span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">SO_KEEPALIVE is OFF</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[root@localhost]# env LD_PRELOAD=libkeepalive.so ka-test</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">SO_KEEPALIVE is ON</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TCP_KEEPCNT = 3</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TCP_KEEPIDLE = 60</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TCP_KEEPINTVL = 10</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[root@localhost]#</span><br><div><br></div><div><br></div><div>"</div><div><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p data-marker="__HEADERS__" style="margin: 0px;" data-mce-style="margin: 0px;"><strong>From: </strong>"Lightner, Jeffrey" <JLightner@dsservices.com><br><strong>To: </strong>"Chris Fowler" <cfowler@outpostsentinel.com>, "Atlanta Linux Enthusiasts" <ale@ale.org>, neal@mnopltd.com<br><strong>Sent: </strong>Wednesday, July 31, 2019 11:01:40 AM<br><strong>Subject: </strong>RE: After 15 years, Nohup is sttll broken???<br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">I gather you're doing an ssh from one system to another. I wonder if your shell default on either the system you're coming from or the second system has TMOUT variable set and it is thinking the session is idle due to lack of output. If so, doing an unset TMOUT might solve it. Note I have seen issues where firewall devices will timeout sessions such as VPN but I can full them by running a while loop in another window to just display data to the screen every 5 minutes.</p><p style="margin: 0px;" data-mce-style="margin: 0px;">Nope, this is typical of these firewalls. If no packets are send after N minutes the firewall deletes the connection from its tracking table. This behavior is consistent, reliable, and repeatable. Once I tweaked KAs all these issues went away.<br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">I keep the KAs tight and on my distributed systems I use libkeepalive as LD_PRELOAD to FORCE KA on all TCP sockets. Regardless of what the programmer of that program wanted. It may be extreme, but in the past I communicated with these systems via IP over modem or their ethernet and I had sessions that would hang forever causing all sorts of problems. Especially with modems. To test that I had rectified the symptoms over modems I would simply open a TCP socket in perl to a remote system from a box in my lab that had a modem. The modem would dial and then the socket would connect. I'd then do a read on the socket, making sure that the read would be blocking and then I'd pull the phone line from my simulator or the real AT&T. I waited to see how the read would respawn. I also had issues with APIs that did select() with no timeout forever blocking due to no KA on the TCP socket. libkeepalive solved all those issues. The problematic program that forced use of libkeepalive was using SOAP in perl.<br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">I've spent hours dealing with NAT issues and when op said "Sonic Firewall" the alarms went off in my head. SSH does not need libkeepalive. It only needs those options I sent earlier. libkeepalive is for programs that have no options or you can not change.</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p data-marker="__QUOTED_TEXT__" style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[root@localhost]# ka-test </span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">SO_KEEPALIVE is OFF</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[root@localhost]# env LD_PRELOAD=libkeepalive.so ka-test</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">SO_KEEPALIVE is ON</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TCP_KEEPCNT = 3</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TCP_KEEPIDLE = 60</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">TCP_KEEPINTVL = 10</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[root@localhost]#</span><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;">"With most NAT devices, the NAT session limit is bound by the available memory in the device. Each NAT translation consumes about 160 bytes in the device's memory. As a result, 10,000 translations (a lot more than would normally be handled by a small router) will consume about 1.6 MB of memory. Therefore, a typical routing platform has more than enough memory to support thousands of NAT translations but in practice the story (as always) is different.</p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;">Typically on smaller Cisco routers, e.g 700, 800, 1600 series, that have an IOS with NAT capabilities, the number of NAT sessions they are able to track is around 2000 without much trouble but this also depends on the NAT mode being used. Pump that up to something like 3000 to 4000 sessions and you start having major problems as the NAT table gets too big for the router's CPU to manage. As you see, it's not only a memory issue :) This is when you start to see big delays in ping replies and eventually an exponential increase in packet loss.</p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;"><br data-mce-bogus="1"></p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;">We've actually seen Cisco routers having some problems while handling NAT translations (<span style="background-color: rgb(255, 255, 0);" data-mce-style="background-color: #ffff00;">NAT Overload mode in particular</span>). This was also confirmed by Mike Sweeney - a good friend of Firewall.cx, so keep in mind that the earlier Cisco IOS (pre v12.4.5) seems sometimes to behave a bit weird with NAT.</p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;"><br data-mce-bogus="1"></p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;">The larger router models and dedicated gateway/firewall appliances are able to track a lot more connections simultaneously (8000 to 25000), which makes them ideal for large corporations that need such capacity."</p><p style="text-align: justify; margin: 0px;" data-mce-style="text-align: justify; margin: 0px;"><br></p></div><br></div></div></body></html>