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

2.0 new option: do-resolve problems

$
0
0

@yick wrote:

frontend fe
    bind 10.0.0.1:3128 transparent
    mode tcp
    tcp-request content do-resolve(txn.myip,mydns,ipv4) req.hdr(host),lower
    default_backend be

backend be
    tcp-request content reject if { var(txn.myip) -m ip 127.0.0.0/8 10.0.0.0/8 }
    tcp-request content set-dst var(txn.myip)
    server clear 0.0.0.0:0

Here are 2 problems:

  1. if ipv6 is prefered instead ipv4, in backend 0.0.0.0:0 cannot handle this case.
  2. Because var(txn.myip) is randomly selected, is it still possible to use “source IP affinity” to keep session persistent? E.g. client 10.0.0.2 connects to example.com(IP1,IP2,IP3). Within 2.0.3 version, all 3 IPs would be load-balanced, but in fact only one of them should be picked up.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4722

Trending Articles



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