Solved

X session timeouts due to Firewall

Posted on 2002-07-19
8
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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 …
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…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

615 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