Skip to content

How to configure TCP correctly (proxy.addr, ...) #283

@kopax

Description

@kopax

Hi everyone!

Thanks for sharing Fabio, I have heard good thing about it.
I am following the project since it has been integrated in PanteraS

I wanted to try Fabio because it now has a TCP proxying mode.
I am configuring my services by registering them in consul and adding env tag to my docker containers :

urlprefix-mysite.com/                              # host specific catch all route
urlprefix-:587 proto=tcp                          # route external port 587

I wasn't able to use the tcp proxying without playing with proxy.addr in fabio.properties

  1. Do I have to configure proxy.addr in fabio.properties everytime I am adding a new tcp proxied port ?
  2. If yes, how can I add multiple port ? I see my configuration with a very long line in it.
  3. I have consul running, isn't it possible to get this value configured automatically ?
  4. I use to proxy a mail-server on HAproxy using 4 TCP ports : 25, 143, 587, 993
  • I have tried to send an email from thunderbird with proto=tcp,:587;proto=tcp and I have:

    Sending of the message failed.
    An error occurred while sending mail: Unable to establish a secure link with Outgoing server (SMTP) mail.kopaxgroup.com using STARTTLS since it doesn't advertise that feature. Switch off STARTTLS for that server or contact your service provider
    
  • I have tried to send an email from thunderbird with proto=tcp,:587;proto=tcp+sni it connect but I wait a very long time and I have a time out error.

I didn't had to configure anything for proxying these services before. I can see I can configure ssl keystore and tls header value. I am not sure which is the right direction. Maybe you will have any idea why it is different ?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions