fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.26k stars 616 forks source link

Crash: [FATAL] 1.5.13. strconv.ParseUint: parsing ":1883;PROTO=TCP-DYNAMIC": invalid syntax #826

Closed sbrl closed 3 years ago

sbrl commented 3 years ago

Hello,

I'm trying to get Fabio to proxy tcp traffic for an MQTT server, but Fabio doesn't seem to like the examples in the documentation. For example, I've tried this:

proxy.addr = :80;proto=http,:443;proto=https;cs=ssl;tlsmin=tls12,:1883;proto=tcp-dynamic,:8883;proto=tcp-dynamic;cs=ssl;tlsmin=tls12

My MQTT server is registered via Nomad → Consul. There I have the following service tags attached:

urlprefix-:1883 proto=tcp
urlprefix-:8883 proto=tcp

System info:

I have also tried tcp instead of tcp-dynamic, but the outcome is the same.

Port 1883 is intended to be a simple TCP proxy, but Fabio doesn't appear to like this. Where am I going wrong?

sbrl commented 3 years ago

Never mind, it was an missing quote. I omitted in the above my tls ciphers list, which was not surrounded properly by double quotes.