Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Dave Cottlehuber
if you're able to help further I will open an issue on github to discuss
Dave Cottlehuber
dch@wintermute /r/gobetween> git commit -am 'hack FreeBSD support'
[master 40b5817] hack FreeBSD support
 1 file changed, 1 insertion(+)
dch@wintermute /r/gobetween> gsh
commit 40b5817fbe7825f815569e0e837291cc58ab7e25 (HEAD -> master)
Author: Dave Cottlehuber <dch@skunkwerks.at>
Date:   Fri Sep 7 10:56:05 2018 +0000

    hack FreeBSD support

diff --git a/Makefile b/Makefile
index 6976501..c729bc5 100644
--- a/Makefile
+++ b/Makefile
@@ -88,6 +88,7 @@ dist:
        @#             os    arch  cgo ext
        @for arch in "linux   386  1      "  "linux   amd64 1      "  \
                                 "windows 386  0 .exe "  "windows amd64 0 .exe "  \
+                                "freebsd 386  1      "  "freebsd amd64 1      "  \
                                 "darwin  386  0      "  "darwin  amd64 0      "; \
        do \
          set -- $$arch ; \
dch@wintermute /r/gobetween> gmake deps build
rm -rf ./vendor/src
rm -rf ./vendor/pkg
rm -rf ./vendor/bin
go get -v github.com/burntsushi/toml
github.com/burntsushi/toml (download)
go get -v github.com/miekg/dns
github.com/miekg/dns (download)
go get -v github.com/fsouza/go-dockerclient
github.com/fsouza/go-dockerclient (download)
github.com/docker/docker (download)
github.com/docker/go-units (download)
github.com/sirupsen/logrus (download)
Fetching https://golang.org/x/crypto/ssh/terminal?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ssh/terminal?go-get=1 (status code 200)
get "golang.org/x/crypto/ssh/terminal": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
github.com/Nvveen/Gotty (download)
# github.com/docker/docker/pkg/mount
vendor/src/github.com/docker/docker/pkg/mount/mountinfo_freebsd.go:40:24: undefined: p
gmake: *** [Makefile:62: deps] Error 2
Dave Cottlehuber
updating the docker/docker dependency in vendors just caused an explosion of go errors
Illarion Kovalchuk
I managed to build it for freebsd
just set cgo_enabled to 0, like this:
"freebsd 386 0 " "freebsd amd64 0 "
Dave Cottlehuber
illarion: I still get this (on master branch BTW)
../go/src/github.com/docker/docker/pkg/mount/mountinfo_freebsd.go:40:24: undefined: p
is it possible you've different stuff in vendor ?
Illarion Kovalchuk
I cleaned vendor
make clean
make deps
make dist
and I get freebsd build
Illarion Kovalchuk
But you're right, the freebds dependency has an error - it uses undefined variable 'p'
The question is why crosscompilation doesn't use it
bintut @bintut waves
Marvin Pascual
I wonder how to support multiple groups of backends in gobetween-0.6.0
Is it possible? Say, the first backend group is WordPress, the second backend group is nginx w/ static contents, and so on and so forth...
Illarion Kovalchuk
@bintut so what is your question?
Marvin Pascual
How to configure gobetween to be the reverse proxy for multiple groups of backend services?
Does gobetween support SNI for multiple backend services?
Illarion Kovalchuk
yes sni is supported
it should be described in documentation on gobetween.io and in wiki of github project
Marvin Pascual
I'm sorry but I can't find in the documentation how to configure multiple backends on a single gobetween
Illarion Kovalchuk
see discovery section
Marvin Pascual
gobetween will be listening on a single HTTPS port. How can I differentiate between different backend services? How gobetween decides that the incoming traffic is for backendA and not for backendB, and so on and so forth?
Illarion Kovalchuk
using sni

kind = "static"

static_list = [ # (required) [

"localhost:8000 weight=5", # "<host>:<port> weight=<int>" weight=1 by default

"localhost:8001 sni=www.foo.com" # ]


sorry for formatting, it is hard to copy paste examples using phone
take a look at config.toml
Dear community, i'm setting up GoBetween 0.6 under Win2012 r2 core. We have a issue in balancing 2 web servers ad the developer asked if possible to set affinty / persistence. can someone help with this item cos i did not find anything on GoBetween docs . Thank You in advance
Hilko Lantinga
I've got a TCP/UDP service with port sharing. Is there a way to let UDP follow the TCP persistence?
Hi, I'm proxying UDP, with no healthchecks and both client_ and backend_idle_timeouts set to 1m. I have two servers configured statically. I notice if I stop the service on one of them, gobetween notices within a few seconds and starts sending the traffic to the other one. The error logged is (udp/server/session): Failed to read from backend: read udp> read: connection refused. This is great, I'm just wondering what specifically the failover behavior is. Since it's UDP there's no session or ACKs, etc to keep track of at the transport layer, and I'm not sure what connection refused means in the context of UDP. Thanks.
I think I can answer my own question: the read from the udp connection failed because it received an ICMP port unreachable message on it, because traffic was being sent to the backend on the closed port, which responded with the icmp
which prompts gobetween to close that session and try again on the other server
Encountering an issue with debug logging statements in v0.6.1 yyyar/gobetween#202
Shantanu Gadgil
Yay! 0.7.0 released! :D
Question regarding tls termination: is mutual tls supporter? Are there plans to support certificate revocation lists?
I'm not seeing actual roundrobin UDP
with a stream- it looks like it picks a backend host and delivers all packets to it
I assume it thinks it is a stream and delivers to the first host it picks.
I'm wondering if I can force it to cycle destinations to do true load balancing rather than trying to some kind of session-based load balancing..
Craig Sayler
can gobetween be installed in a external LB infront of the master node API's?
Craig Sayler
My company is looking at using you as a load balancer for our internal k8s installation. i have a meeting soon and would love to get a answer!
Shantanu Gadgil
@csayler Gobetween can definitely used as frontend LB. By "external", I assume you mean "public facing" ?
BTW, have checked the wiki at: https://github.com/yyyar/gobetween/wiki
in case you have more queries, it would be good to know about your setup details :)
Eli Sarver
Hi. Has anyone had success with AMQP behind gobetween? I've tried using gb directly over three rabbitmq servers in hash1 mode, but I'm getting odd errors in response. I can proxy with amqproxy fine, but that solution doesn't handle multiple backends, so I thought I'd bridge the two to get some sort of HA to my proxy (running 3 nodes within a kubernetes cluster)