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

http redirect's initial connection won't connect #385

Open
oliv3r opened this issue Jun 9, 2023 · 0 comments
Open

http redirect's initial connection won't connect #385

oliv3r opened this issue Jun 9, 2023 · 0 comments

Comments

@oliv3r
Copy link
Contributor

oliv3r commented Jun 9, 2023

When start sslh, and having a configuration such as:

listen: ( { host: "0.0.0.0"; port: "8080"; } )
protocols: { name: "http"; host: "<ip>"; port: "80"; }, )

The first connection just hangs (e.g. wget --spider -q http://localhost:8080). While all is running, coming from an outside host (somewhere around the world), it gets an immediate reply, but also 'unhangs' the first one.

Doing it the other way around, connecting from around the world, the connection hangs. Connecting internally, also hangs, but it unblocks the external connection which now gets a reply. The internal one this time, sits there trying, until the external is up again, which then unblocks the internal one. This both 8080, but also 443.

So in short;
localhost -> external: hang, but release
external -> localhost: hang, hang, release

btw, only external host can connect over any (configured) port to unhang the internal connection. Probably some firewall rule shenanigans, where the external access triggers a 'new,established' thing ...

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