warpgate icon indicating copy to clipboard operation
warpgate copied to clipboard

Support Configurable Session Timeouts Per Target

Open wolveix opened this issue 3 years ago • 6 comments

Hey guys. Loving using Warpgate, but I frequently leave a connection open to a target for extended periods of time (20 minutes - 60 minutes), and have noticed that Warpgate closes the connection much sooner. Would it be possible to make this timeout configurable?

wolveix avatar Oct 21 '22 21:10 wolveix

I would also love this. The connection close after 60 seconds which is really too small. I can't seem to find the variable inside the code to change it globally even.

erd05 avatar Oct 28 '22 01:10 erd05

What SSH clients are you using? SSH times out on the server side and this is normally circumvented by keepalive messages. Warpgate doesn't send its own, but will forward keepalive messages if the client sends any.

Eugeny avatar Oct 30 '22 16:10 Eugeny

OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n 15 Mar 2022

erd05 avatar Oct 31 '22 00:10 erd05

Added: Host * ServerAliveInterval 30 ServerAliveCountMax 2

To my ~/.ssh/config (30 sec between keepalive message and 2 messages max before declaring dead) and now it's working great thank you!

erd05 avatar Oct 31 '22 00:10 erd05

I also tried setting server side parameter

        ClientAliveInterval 45
        ClientAliveCountMax 10

But seems like warpgate do not forward these keepalives to client, so those have no effect. Maybe would be good to add some option that is similar to ssh server, that never drops tcp socket? Even if there is no data on wire.

notnooblord avatar Sep 13 '23 15:09 notnooblord

I use warpgate together with xpipe and I only can set configs on my jump-servers (warpgate runs on my jump-servers) and the target servers, but with no effect. I would likt to set the above parameters in "~/.ssh/config" on the jump-servers, but the Account is the one from warpgate (admin) and there is no userhome for this account. It would be helpfull, if the parameter could be set in the web-portal of warpgate.

markusglaetzner avatar Jan 29 '24 11:01 markusglaetzner