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

Trying to (reverse)proxy different domains on the same port #24

Open
ThisIsTenou opened this issue Apr 10, 2020 · 0 comments
Open

Trying to (reverse)proxy different domains on the same port #24

ThisIsTenou opened this issue Apr 10, 2020 · 0 comments

Comments

@ThisIsTenou
Copy link

I'm trying to proxy tcp traffic to different servers depending on which domain has been used. Basically a simple tcp reverse proxy.
When not specifying a domain, this works great - but only for a single server:

proxy :25565 192.168.14.10:25565 {
  host test1.domain.com
  tls off
}

This also, despite having "host" configured as a single domain, proxy's all traffic hitting the WAN-IP with port 25565.

Now, when trying to proxy different domains to different servers like this:

proxy test1.domain.com:25565 192.168.14.10:25565 {
  host test1.domain.com
  tls off
}

I'm getting the following error: Listen: listen tcp [WAN-IP-HERE]:25565: bind: cannot assign requested address
Since the host-directive doesn't seem to do anything, stuff like

proxy :25565 192.168.14.10:25565 {
  host test1.domain.com
  tls off
}

proxy :25565 192.168.14.11:25565 {
  host test2.domain.com
  tls off
}

also doesn't work: Listen: listen tcp :25565: bind: address already in use

Have I just done something wrong or is there an issue with the proxy?

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