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

dial tls: unknown network tls #288

Closed
prologic opened this issue Jan 18, 2025 · 3 comments
Closed

dial tls: unknown network tls #288

prologic opened this issue Jan 18, 2025 · 3 comments
Labels
invalid This doesn't seem right

Comments

@prologic
Copy link

I'm getting this error:

{"level":"error","ts":1737189108.9878457,"logger":"layer4","msg":"handling connection","remote":"149.28.170.135:36404","error":"dial tls: unknown network tls"}

With this config:

                # IRC
                0.0.0.0:6697 {
                        route {
                                proxy {
                                        upstream 10.0.0.10:6697 {
                                                tls
                                                tls_insecure_skip_verify
                                        }
                                }
                        }
                }

Which doesn't really make a lot of sense to me as I'm reading the codebase to figure out how to configure things correctly. This shoudl be dialing 10.0.0.1:6697 with TLS and Skipping TLS verification right?

@mohammed90
Copy link
Collaborator

Can you run caddy adapt -p and post the result?

@prologic
Copy link
Author

IN the end I decided to do a straight tcp passthrough. I'll try to repro in a smaller test environment.

@mohammed90
Copy link
Collaborator

Just tried this config and it doesn't reproduce the issue. I don't see the same error.

{
	debug
	layer4 {
		# IRC
		0.0.0.0:6697 {
			route {
				proxy {
					upstream localhost:443 {
						tls
						tls_insecure_skip_verify
					}
				}
			}
		}
	}
}
localhost {
	respond "OK"
}

Share more details if you can reproduce it.

@mohammed90 mohammed90 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2025
@mohammed90 mohammed90 added the invalid This doesn't seem right label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants