Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I prevent NAT timeouts on idle SSH and telnet connections?

idle NAT SSH telnet timeouts
0
Posted

How do I prevent NAT timeouts on idle SSH and telnet connections?

0

I’ve been able to verify that the BEFSR41 will tear down idle connections after 7200 seconds (2 hours). This is a fairly common practice with various brands of “personal” router/firewalls. The reason is that the router’s NAT (Network Address Translation) logic must maintain a table to keep track of each outgoing connection, and it doesn’t want this table to grow too large, so it will “reap” connections that have been idle for too long as a sort of “housekeeping” measure. Regardless of how justified this is, it can be quite annoying if, for example, you use ssh to stay logged in to your work, or are running a background job, etc. The bad news is that there is no way to change the timeout value or turn it off using the setup screens. The good news is that there are several different ways to defeat NAT timeouts. The first is to exploit “TCP KeepAlive”. All operating systems that have TCP/IP networking have the ability to send special packets at a certain interval to check if a connection

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123