Solved

X session timeouts due to Firewall

Posted on 2002-07-19
8
535 Views
Last Modified: 2013-12-27
Hi,

I'm using Exceed version 6.1.  Currently our firewall times out inactive sessions after 20 minutes.  I can't get this changed.  So the result is, windows are going away after this time out, unless they are being used.  Is there any other X-server implementation that allows a keep alive to be configured?

I use Putty telnet, and it has one and it works great.

With the Win32 Exceed, I thought I was on to something... I took the latest fvwm2 code, built it, and cloned the console module, called it FvwmIdle.  I then changed it to sleep 10 minutes then do a 'refresh' all in a loop.  I thought this might cause enough traffic to keep the sessions alive, but it did not seem to work.

Any pointers or ideas would be really appreciated.

Thanks

Chris
0
Comment
Question by:sads
  • 3
  • 3
  • 2
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7166424
> Is there any other X-server implementation that allows a keep alive ..
as you described yourself, the firewall is the culprit, so another X-Server won't help much.

To get around the timeout problem you might try on of following:

     ping -c 100 -w 900 remote-host
     xclock&
0
 
LVL 40

Expert Comment

by:jlevie
ID: 7167193
A very simple solution that will keep the session from timing out is to start any of the clock display appication on the remote. Personally I use 'xclock -digital' to keep X sessions open through a firewall that times out idle sessions.
0
 

Author Comment

by:sads
ID: 7168434
Hy guys.  I have tried the xclock thing.  Actually, that was my first attempt.  The second was the modification to FVWM, and I thought that had it for sure, since it forced a refresh to all the windows.

I just got an email from  WinaXe X server product. They sent me the following, and it looks promissing:

"Beginning from WinaXe 6.3 our products provides a keep alive possibility. If you are using this version (or WinaXe+ 7.0),you can add manually into the section [NETWORK] (if this section is absentplease create it)
of the "xwp.ini" file the line:

KeepAlive=1

After this all package's facilities will send KeepAlive TCP/IP messages."

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:jlevie
ID: 7168584
If an Xclock didn't keep the connection it would sound like the firewall isn't doing a simple idle timer. When you have a gui app like xclock running there is traffic in both directions at least every minute, so an idle timer would be reset every minute. Perhaps the newer version of the app sending KeepAlive's will prevent the timeout.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 300 total points
ID: 7168953
hat's the purpose of WinaXe's KeepAlive: to send keep-alive packets, or to check if the X-connection is still alive (means that there are packets transfered)?
0
 

Author Comment

by:sads
ID: 7169276
I'm testing the new X-server this morning to see how it works.  When I did use X-clock, the X-Clock window was still active, but any xterm or other window that was idle, was dead, even the window manager.  When I made the FVWM change, then the window manager stayed around as well.

I let you know how the test goes with the winaXe.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7169857
> .. X-Clock window was still active, but any xterm or other window that was idle,

hmm, this is probably due to a TCP/IP timeout on the remote system, not for the X-connection, but the telnet/rlogin/ssh session.
0
 

Author Comment

by:sads
ID: 7174253
So far so good with the new xserver and the ini set as indicated above.  This seems to have fixed the problem.

Chris
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question