Solved

X session timeouts due to Firewall

Posted on 2002-07-19
8
534 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is the meaning of filesystem loop detected? 7 1,149
removing nim resources 5 62
Shell script errors 10 141
Skill Development 15 183
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

838 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