Skip to content

Instantly share code, notes, and snippets.

@cmer
Last active April 15, 2024 09:54
Show Gist options
  • Star 41 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save cmer/e58e90dbf820a850ff4f136f85697be0 to your computer and use it in GitHub Desktop.
Save cmer/e58e90dbf820a850ff4f136f85697be0 to your computer and use it in GitHub Desktop.
Simple, no bullshit TCP port forwarding using HAProxy
listen l1
bind 0.0.0.0:443
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 host.example.com:9443
@i5heu
Copy link

i5heu commented Jan 14, 2020

The config file is at path /etc/haproxy/haproxy.cfg

@Frankstar
Copy link

👍

@nuxeh
Copy link

nuxeh commented Jul 7, 2021

👍

@lwlwlwlw
Copy link

lwlwlwlw commented Nov 2, 2022

Great work!

@conterio
Copy link

thanks!

@SaeedDev94
Copy link

Simple, useful, thanks :)

@kcsinclair
Copy link

works, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment