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

Connection reset by peer despite using --stay-alive #14

Open
parski opened this issue Oct 12, 2023 · 0 comments
Open

Connection reset by peer despite using --stay-alive #14

parski opened this issue Oct 12, 2023 · 0 comments

Comments

@parski
Copy link

parski commented Oct 12, 2023

First of all, forgive my ignorance on TCP.

I use tcptunnel to proxy traffic from one PC to another on my LAN that is connected to a VPN to piggyback off that VPN connection. I route two tunnels: HTTP and git over ssh and it works remarkably well. Until it doesn't.

Seemingly spontaneously the connection will break and I will have to reset it. Sometimes it won't do this for hours and other times it happens every few minutes. This is the Mac version of tcptunnel installed via Homebrew on an Apple Silicon machine.

The output is always the following:

use_tunnel: recv(rc.client_socket): Connection reset by peer

I route the HTTP traffic by starting the tunnel like this:

// VPN connected machine LAN IP = 1.2.3.4
// IP of machine only accessible with VPN = 4.3.2.1
$ sudo tcptunnel --bind-address=1.2.3.4 --local-port=443 --remote-host=4.3.2.1 --remote-port=443 --stay-alive &

Same thing with different ports for git over ssh.

I thought the --stay-alive argument would prevent this from happening but evidently it does not.

Is it obvious to somebody what I am doing wrong?

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

1 participant