Re: who does session disconnects



Here is a sample of some of the timeout commands from a Cisco ASA firewall:

timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00
timeout mgcp-pat 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute

timeout xlate 0:05:00
timeout conn 0:50:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225
1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute

Almost the same layout for PIX or ASA, accounting for differences in
platform and image version.
To go beyond this default set of commands for a connection timeout, a class
map can be configured for a certian type of network traffic. For example,
an access-list can be entered into the class map permitting any any traffic
destined for TCP port 22. That class map can then be used to configure a
specific timeout for that traffic class.

access-list SSHtraffic extended permit any any eq 22
class-map SSHconnections
description Any SSH network traffic
match access-list SSHtraffic
policy-map SSHtimeout
class SSHconnections
set connection timeout tcp 00:05:00 reset
service policy SSHtimeout interface outside

--

===========
Scott Perry
===========
Indianapolis, Indiana
________________________________________
"Erik Dahle" <erikda@xxxxxxxxx> wrote in message
news:46bde21a$1@xxxxxxxxxxxxxxxxxxxx
Barry Margolin wrote:
In article <46bc60f7$0$21249$39cecf19@xxxxxxxxxxxxxxxxxx>,
"Scott Perry" <scottperry@aciscocompany> wrote:

I really seriously doubt it. My first answer is to say no, that there
is no way that a Cisco PIX firewall will terminate your SSH session
after a period of inactivity for you.
Think of it like this: The SSH session is secure shell - an encrypted
connection. How is the PIX to know when it is active or inactive?
There will be TCP keepalives going back and forth and perhaps some data
from the SSH server to the client, but the PIX would not know what is in
the SSH data.

I don't know PIX, but many firewalls have the ability to terminate idle
connections of any type. The firewall should be able to tell the
difference between TCP keepalives and actual data packets. It can't tell
what's IN the data packets if they're encrypted, but why would it need
to? All it needs to know is whether any application-layer data is being
transmitted over the connection.


Indeed, every stateful firewall has the ability to terminate idle
connections. They must have, if not the state table would never stop
growing.
Whenever a packet that matches a state-table entry goes through the
firewall, it will reset that entry's timer.
If an entry has not been in use for say 1 hour, a process will declare
that connection dead, and erase it.
Many applications avoid this by sending keep-alive packets.

On pix this timeout is set by "timeout xlate".
I don't know pix very well, but one some firewalls, you can adjust the
timeout pr port basis. So you can say that the default timeout is 1 hour,
but for port 22 tcp, it's 24 hours.

--
Erik


.



Relevant Pages

  • Re: PPTP Clients loose connection to cisco PIX 506E after a while..
    ... A customer of mine have just gotten a new Cisco Pix 506E, ... I've heard is that they loose connection after a while, ... pdm location 213.179.57.7 255.255.255.255 outside ... timeout xlate 0:05:00 ...
    (comp.dcom.sys.cisco)
  • Pix 515 - upgrade from 635 to 722 - sendmail breaks
    ... Last night I installed more RAM and upgraded the PIX to 7.22. ... sendmail logs and I was receiving these messages: ... read timeout on connection from m4.campaignmonitor.com, ...
    (comp.dcom.sys.cisco)
  • Pix 515 - upgrade from 635 to 722 - sendmail breaks
    ... Last night I installed more RAM and upgraded the PIX to 7.22. ... sendmail logs and I was receiving these messages: ... read timeout on connection from m4.campaignmonitor.com, ...
    (comp.dcom.sys.cisco)
  • Re: General connection timeout
    ... TCP connection timeout can be tunned using sysctl and the variable is ... > I have a problem where connecting to some machines on our ... > connected to has a firewall. ...
    (Fedora)
  • Re: Using SSH as a simple VPN: timeouts?
    ... down the connection after a certain period without traffic over it. ... The second one is the firewall of the university where my server is located. ... I don't have much information about this firewall (and possible timeout settings). ...
    (alt.os.linux)