HAProxy community

How to forward all ports from source to destination dynamically?

#1

Hello everyone, I’m Felix as a newbie.

I’d like to implement NFS over HAproxy,
I’ve redirected port 2049,111 but it’s been not working, it seems like NFS protocol is using some of radom ports based on RPC that I could not specific them.

What I think to do is that, it’s possible to dynamically map a fixed source IP to a fixed destination IP? such as 192.168.1.1:any to 192.168.2.1:any(all forwarding)

Thank in advance!!

0 Likes

#2

You can specify port ranges and you can load-balance based on the source-IP hash.

Also do consider that haproxy does not support UDP so you can only use NFS in TCP mode. I’m not sure if load-balancing NFS is a good idea … you will have to research it well.

0 Likes