@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:
- if ipv6 is prefered instead ipv4, in backend 0.0.0.0:0 cannot handle this case.
- 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