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

NAPT with HAproxy

$
0
0

@darcosion wrote:

Greetings,

I’m using HAproxy for his capacity to do redirection of ports in a large range.

Basically, I have this type of configuration :
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
user haproxy
group haproxy
daemon

defaults
    log     global
    option  httplog
    option  dontlognull
    timeout connect 5000
    timeout client  50000
    timeout server  50000

frontend haproxy_front
  bind :6000-8000
  default_backend mee

backend redirect_sas
   server mee x.x.x.x

And I need to create multiple frontend and backend with an allocation of 2000 ports by backend. But one specifity : ports must be also redirected.

Which mean by example in my haproxy, ports 1-2000 are going to my machine 1 into it ports 1-2000, but ports in the range 2001 to 4000 must go to my machine 2 into ports 1-2000.

I’ve searched and I haven’t found basic solution or functionality into HAproxy for this case.

So my first question is “It is possible ?”. And the second : “They are a point about that in the documentation ?”.

Regards,
Darcosion.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



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