How to send X-Forwarded-For Header with different IPv6 address based on Client Local IPv6 Range using K6 Tool
For Example:
If I have Local IPv6 Range say “fc00:172:22:0:5000::1-fc00:172:22:0:5000::14” having 20 IPv6 address which I will use it in this options --local-ips like
k6 run --insecure-skip-tls-verify -d 1200s --local-ips "fc00:172:22:0:5000::1-fc00:172:22:0:5000::14" --no-connection-reuse --no-vu-connection-reuse -u 500 /home/aviuser/K6JS/http.js
and if I want to have X-Forwarded-For Value set for each of the Client Local IPv6 address as follows shown in table for 20 IPv6 address:
Local IPv6 | X-Forwarded-For IPv6 |
---|---|
fc00:172:22:0:5000::1 | fc00:172:22:1::1 |
fc00:172:22:0:5000::2 | fc00:172:22:2::1 |
fc00:172:22:0:5000::3 | fc00:172:22:3::1 |
fc00:172:22:0:5000::14 | fc00:172:22:14::1 |
Please share any example script how can we achieve the same.