Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4724

HA Proxy Configure with multiple ports

$
0
0

@stevepe wrote:

Hi,

I am configuring HA Proxy for the setup, where HA proxy needs to check traffic on different ports on front end and route to back end on respective ports/ back end servers. while doing when the number of ports is increased more than one its failing.

Traffic from outside on ports like 443,2375,2376,2377 need to be routed to back end server on respective ports. Any help or link having the configuration to do this would help a lot.

Example: (worked)
global
log 127.0.0.1 local0
maxconn 4000
daemon
uid 99
gid 99

defaults
log global
timeout server 5s
timeout connect 5s
timeout client 5s

frontend https_frontend
bind *:443
mode tcp
default_backend web_server

backend web_server
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
server s1 xx.xxx.xx.xxx:443

<<<<<<Which is not working

global
log 127.0.0.1 local0
maxconn 4000
daemon
uid 99
gid 99

defaults
log global
timeout server 20s
timeout connect 20s
timeout client 20s

frontend https_frontend
bind *:443
mode tcp
default_backend web_server

frontend mgr_frontend
bind *:2376
mode tcp
default_backend mgr_server

backend web_server
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
server s1 xx.xxx.xx.xxx:443

backend mgr_server
mode tcp
balance roundrobin
stick-table type ip size 200k expire 30m
stick on src
server m1 xx.xxx.xx.xxx:2376

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4724

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>