Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Configurable Session Timeouts Per Target #429

Closed
wolveix opened this issue Oct 21, 2022 · 7 comments
Closed

Support Configurable Session Timeouts Per Target #429

wolveix opened this issue Oct 21, 2022 · 7 comments

Comments

@wolveix
Copy link

wolveix commented Oct 21, 2022

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?

@nullneutron
Copy link

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.

@Eugeny
Copy link
Member

Eugeny commented Oct 30, 2022

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.

@nullneutron
Copy link

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

@nullneutron
Copy link

nullneutron commented Oct 31, 2022

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!

@notnooblord
Copy link
Contributor

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.

@markusglaetzner
Copy link

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.

@wolveix
Copy link
Author

wolveix commented Oct 23, 2024

Seems this was closed by #990 :)

@wolveix wolveix closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants