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

inactive TCP connections are dropped #26

Closed
olaulau opened this issue Mar 29, 2018 · 3 comments
Closed

inactive TCP connections are dropped #26

olaulau opened this issue Mar 29, 2018 · 3 comments

Comments

@olaulau
Copy link

olaulau commented Mar 29, 2018

Expected Behavior

like when using direct WAN, inactive TCP connections (such as SSH with keepalive activated) should not disconnect.

Actual Behavior

inactive SSH sessions are quickly disconnected, I would say 2 minutes.

Steps to Reproduce the Problem

  1. open a SSH session to an outside host which has keepalive active
  2. don't do anything on this terminal for a few moment
  3. the connection disconnects

Specifications

  • OpenMPTCProuter version: v0.12-1-gfe1fbe2
  • OpenMPTCProuter VPS version: 0.8
  • Platform: rPi 3 / Debian 9
@Ysurac
Copy link
Owner

Ysurac commented Mar 29, 2018

You should update OpenMPTCProuter and OpenMPTCProuter VPS to latest versions.

Inactive TCP connections are disconnected to don't have too many opened connections between the VPS and OpenMPTCProuter.

You can increase sysctl tcp_keepalive_time on both VPS and OpenMPTCProuter or use SSH ServerAliveInterval setting.

@Scaff31
Copy link

Scaff31 commented Jun 19, 2018

every minute my sshfs connection drop with tcp_keepalive_time = 36000 how can I fix this?

@Ysurac
Copy link
Owner

Ysurac commented Jun 20, 2018

No problem when tested with latest OMR version. You can also set SSH ServerAliveInterval setting on your client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants