We have recently experienced constant disconnects on users' WS sessions. All PC users have a WS session file to connect to our AS/400. We have recently installed a ServGate M30 sercuity device/firewall. Aftewards, sessions constantly disconnect after periods of inactivity. All PCs are running XP pro, SP 2. All users are connected to our internal network. There are 2 users connected to our DMZ that do not experience this problem.
My troubleshooting has included the following:
1. A constant ping to the IP of the AS/400 shows no communication loss.
2. I created a KeepAliveTime DWORD in the registry (LocalMachine\CurrentControlSet\Services\TcpIp\Parameters\ and set it to 3600000 seconds (decimal)
3. I created a startup script at login - CWBCOPWR /KA:1 /MKA:60,3600
I have looked navigated through the ServGate device and do not see anything that would cause the disconnect because of inactivity.
Any help or suggestions is much appreciated.
If so I would suggest that you capture the packets to verify what is going on.
I am assuming that you can predict how long after the session starts and there is no activity that it will end. If so, then I would suggest capturing two traces on each side. Trace 1 is the session setup to make sure that the session/connection is starting correctly. Trace two you would start just prior to when you think the connection is going to drop and capture the drop.
I just thought of something, some stateful firewalls have a timer value on how long they will keep track of a conneciton. I may be that your session is lasting longer than this and the firewall is deleting the information it has for the connection.
Also you have the keepalive timer set to 3600000 in the registry which is in ms, in seconds this is 3600, or 1 hour. Do you really want to send the keepalive packet ever hour?