# aFleX

**URL:** https://community.a10networks.com/c/product-discussions/aflex/19.md

[Latest](https://community.a10networks.com/latest.md) · [Categories](https://community.a10networks.com/categories.md) · [Tags](https://community.a10networks.com/tags.md)

---

## [About the aFleX category](https://community.a10networks.com/t/about-the-aflex-category/930)

<div class="topic-metadata">

**Author:** [@system](https://community.a10networks.com/u/system)\
**Replies:** 0\
**Last updated:** [July 4, 2025, 12:57pm UTC](https://community.a10networks.com/t/about-the-aflex-category/930 "2025-07-04T12:57:23Z")

</div>

---

## [Url Redirect without url change](https://community.a10networks.com/t/url-redirect-without-url-change/448)

<div class="topic-metadata">

**Author:** [@mbarry](https://community.a10networks.com/u/mbarry)\
**Replies:** 14\
**Last updated:** [October 11, 2025, 7:11pm UTC](https://community.a10networks.com/t/url-redirect-without-url-change/448 "2025-10-11T19:11:43Z")

</div>

We are trying to write a script that redirects a user when they enter a url, but keeps the url the same. We have the url - https://bla.company.com When a user enters this url we want to redirect them to - https://other…

---

## [aFlex for log mail from,to, on STARTTLS/TLS mails in ssl-proxy port](https://community.a10networks.com/t/aflex-for-log-mail-from-to-on-starttls-tls-mails-in-ssl-proxy-port/546)

<div class="topic-metadata">

**Author:** [@alberto](https://community.a10networks.com/u/alberto)\
**Replies:** 3\
**Last updated:** [April 21, 2025, 8:42pm UTC](https://community.a10networks.com/t/aflex-for-log-mail-from-to-on-starttls-tls-mails-in-ssl-proxy-port/546 "2025-04-21T20:42:50Z")

</div>

Hi, i’m new in this forum and with a10 aFlex. Device: A10 thunder 3030s Os: 2.7.2-P11(build: 77) I’ve configured a SMTP service in one VIP with two ports: 25 - SMTP 2530 - STARTTLS/TLS (port with ssl-client template in m…

---

## [How to inject Server Name Extension (SNI) on server-side based on HTTP Host](https://community.a10networks.com/t/how-to-inject-server-name-extension-sni-on-server-side-based-on-http-host/884)

<div class="topic-metadata">

**Author:** [@Miyuko](https://community.a10networks.com/u/Miyuko)\
**Replies:** 0\
**Last updated:** [December 24, 2024, 3:02am UTC](https://community.a10networks.com/t/how-to-inject-server-name-extension-sni-on-server-side-based-on-http-host/884 "2024-12-24T03:02:04Z")

</div>

We are replacing the F5 load balancer. Could you please let me know how to implement this iRule using aflex or other methods? he client request SSL packet header does not contain SNI, and it needs to be extracted from t…

---

## [How to perform a case-insensitive match of the requested URL path.](https://community.a10networks.com/t/how-to-perform-a-case-insensitive-match-of-the-requested-url-path/863)

<div class="topic-metadata">

**Author:** [@anfovar](https://community.a10networks.com/u/anfovar)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 6:53pm UTC](https://community.a10networks.com/t/how-to-perform-a-case-insensitive-match-of-the-requested-url-path/863 "2024-08-08T18:53:01Z")

</div>

Hello, How can I perform a case-insensitive match for the requested URL path? For example: when HTTP\_REQUEST { if { \[HTTP::path\] equals “/NotificationServer” } { pool example\_service-group } } And a case-sensitive…

---

## [Snat in NHLD with alternate server](https://community.a10networks.com/t/snat-in-nhld-with-alternate-server/828)

<div class="topic-metadata">

**Author:** [@anfovar](https://community.a10networks.com/u/anfovar)\
**Replies:** 2\
**Last updated:** [March 12, 2024, 5:39pm UTC](https://community.a10networks.com/t/snat-in-nhld-with-alternate-server/828 "2024-03-12T17:39:31Z")

</div>

Hi I have this scenario in a client´s infrastructure where they have 2 Internet links in active pasive mode slb server LINK-1 20.20.20.1 alternate LINK-2 port 0 tcp port 0 udp slb server LINK-2 30.30.30.1 port 0…

---

## [Redirect traffic based on Destination IP](https://community.a10networks.com/t/redirect-traffic-based-on-destination-ip/823)

<div class="topic-metadata">

**Author:** [@anfovar](https://community.a10networks.com/u/anfovar)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 8:48pm UTC](https://community.a10networks.com/t/redirect-traffic-based-on-destination-ip/823 "2024-02-08T20:48:28Z")

</div>

Hi guys I´m trying to redirect traffic based on destination IP using an Aflex, for example if a internal user sends traffic to 20.20.20.20 the A10 will redirect the traffic to a specified service group Aflex: Test #1 …

---

## [No Server Certificate Validation](https://community.a10networks.com/t/no-server-certificate-validation/782)

<div class="topic-metadata">

**Author:** [@HaroldUrrego](https://community.a10networks.com/u/HaroldUrrego)\
**Replies:** 3\
**Last updated:** [December 19, 2023, 8:20pm UTC](https://community.a10networks.com/t/no-server-certificate-validation/782 "2023-12-19T20:20:04Z")

</div>

Hello Team I currently have a server that does not load the page because it has an expired certificate. I was asked to pass this service through the balancer and have the A10 not validate the server certificate and loa…

---

## [Maintain session with ChatID object](https://community.a10networks.com/t/maintain-session-with-chatid-object/818)

<div class="topic-metadata">

**Author:** [@rodrigosh](https://community.a10networks.com/u/rodrigosh)\
**Replies:** 0\
**Last updated:** [November 28, 2023, 7:37pm UTC](https://community.a10networks.com/t/maintain-session-with-chatid-object/818 "2023-11-28T19:37:31Z")

</div>

Hello, I need to know if an aFlex can be created that maintains the session with the ChatID object, this object is the ID of the chats that clients have with executives, which close the session before the client ends the…

---

## [Create Rewrite](https://community.a10networks.com/t/create-rewrite/812)

<div class="topic-metadata">

**Author:** [@rodrigosh](https://community.a10networks.com/u/rodrigosh)\
**Replies:** 1\
**Last updated:** [October 13, 2023, 11:56pm UTC](https://community.a10networks.com/t/create-rewrite/812 "2023-10-13T23:56:48Z")

</div>

Dear, I need your help to create an aFlex with a rewrite that does the following: sucusales.mydomain.com to chile.localisti.co Thanks a lot

---

## [Simple URL Change](https://community.a10networks.com/t/simple-url-change/118)

<div class="topic-metadata">

**Author:** [@danguijun](https://community.a10networks.com/u/danguijun)\
**Replies:** 4\
**Last updated:** [July 28, 2023, 11:26am UTC](https://community.a10networks.com/t/simple-url-change/118 "2023-07-28T11:26:51Z")

</div>

Posted by danguijun Good day Folks, I am looking for a way to change all requests that will arrive at Virtual Server ‘VIP\_Example’ to add/ change the whole URL. I believe we could do the trick sing simple aFlex, but i ne…

---

## [URL redirection-rewrite using part of the URI](https://community.a10networks.com/t/url-redirection-rewrite-using-part-of-the-uri/771)

<div class="topic-metadata">

**Author:** [@pinla11](https://community.a10networks.com/u/pinla11)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 12:47pm UTC](https://community.a10networks.com/t/url-redirection-rewrite-using-part-of-the-uri/771 "2023-07-25T12:47:00Z")

</div>

Hello, I been working on an aflex to do redirection of a web site. Here’s what I’ trying to achieve: Src host: mySRCsite.com Src path: /services/?app=test&annee=2022 Dst host: myDSTsite.com Dst path: /test/app1/USE…

---

## [HTTP Origin header not matching the base\_url.](https://community.a10networks.com/t/http-origin-header-not-matching-the-base-url/777)

<div class="topic-metadata">

**Author:** [@anilperumandla](https://community.a10networks.com/u/anilperumandla)\
**Replies:** 7\
**Last updated:** [July 25, 2023, 12:41pm UTC](https://community.a10networks.com/t/http-origin-header-not-matching-the-base-url/777 "2023-07-25T12:41:35Z")

</div>

Wedsite owner getting below error related to revrse proxy header below is te aFLEX rule which we had added on on A10, do we required any addition rules to this work ?? X-Forward ?? when HTTP\_REQUEST { set URI \[str…

---

## [Redirect IP Public](https://community.a10networks.com/t/redirect-ip-public/783)

<div class="topic-metadata">

**Author:** [@rodrigosh](https://community.a10networks.com/u/rodrigosh)\
**Replies:** 6\
**Last updated:** [May 31, 2023, 10:04pm UTC](https://community.a10networks.com/t/redirect-ip-public/783 "2023-05-31T22:04:17Z")

</div>

Hello, I need your guide for a query I have. I want to perform a redirect to block access to a public IP that I have in the balancer + URI, but I can’t create aFlex. Can this be done?

---

## [A10 vThunder ADC/SLB - Redirection based on URL](https://community.a10networks.com/t/a10-vthunder-adc-slb-redirection-based-on-url/775)

<div class="topic-metadata">

**Author:** [@wtegga10](https://community.a10networks.com/u/wtegga10)\
**Replies:** 3\
**Last updated:** [May 9, 2023, 6:12pm UTC](https://community.a10networks.com/t/a10-vthunder-adc-slb-redirection-based-on-url/775 "2023-05-09T18:12:03Z")

</div>

Hello, I will try to do more research to see if this was already covered in another post, but so far haven’t been able to find exactly what I’m looking for. Is it possible to do a redirect based on which URL the end u…

---

## [Gracefully down](https://community.a10networks.com/t/gracefully-down/773)

<div class="topic-metadata">

**Author:** [@Harishankar](https://community.a10networks.com/u/Harishankar)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 4:45pm UTC](https://community.a10networks.com/t/gracefully-down/773 "2023-04-26T16:45:47Z")

</div>

How to make a virtual server / server down gracefully ?

---

## [CPU AVAREGE](https://community.a10networks.com/t/cpu-avarege/761)

<div class="topic-metadata">

**Author:** [@Causin](https://community.a10networks.com/u/Causin)\
**Replies:** 0\
**Last updated:** [January 24, 2023, 11:37am UTC](https://community.a10networks.com/t/cpu-avarege/761 "2023-01-24T11:37:01Z")

</div>

Hello, Can you help me to create a script with aflex to get cpu avarege and at the same time create a file?

---

## [Persistence issue with aflex](https://community.a10networks.com/t/persistence-issue-with-aflex/702)

<div class="topic-metadata">

**Author:** [@leburton](https://community.a10networks.com/u/leburton)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 7:19pm UTC](https://community.a10networks.com/t/persistence-issue-with-aflex/702 "2022-10-13T19:19:53Z")

</div>

Hi, I have a very simple script handling redirection to an outage server if my primary servers aren’t available (see below). I have however got an issue that when persistence is applied (source-ip or cookie persistence),…

---

## [F5 automap feature](https://community.a10networks.com/t/f5-automap-feature/739)

<div class="topic-metadata">

**Author:** [@Arturo](https://community.a10networks.com/u/Arturo)\
**Replies:** 4\
**Last updated:** [August 3, 2022, 8:29am UTC](https://community.a10networks.com/t/f5-automap-feature/739 "2022-08-03T08:29:28Z")

</div>

Hi, I have one F5 with irule contain “automap snat”, this functionality allows changing the IP when the destination is local to one of the F5 in order to prevent asymmetric routing. The automap options tells to BIG-IP to…

---

## [Retrieve the highest number of requests](https://community.a10networks.com/t/retrieve-the-highest-number-of-requests/730)

<div class="topic-metadata">

**Author:** [@waiwaileung](https://community.a10networks.com/u/waiwaileung)\
**Replies:** 0\
**Last updated:** [June 22, 2022, 8:32am UTC](https://community.a10networks.com/t/retrieve-the-highest-number-of-requests/730 "2022-06-22T08:32:01Z")

</div>

If I want to add one more rule which is to black list the highest number of DNS query when the total number of DNS queries exceed the threshold value (i.e. $totalcount). How can I retrieve the IP address which has the hi…

---

## [Routing Traffic Via Inactive VRRP-A Machine](https://community.a10networks.com/t/routing-traffic-via-inactive-vrrp-a-machine/727)

<div class="topic-metadata">

**Author:** [@invia\_itops](https://community.a10networks.com/u/invia_itops)\
**Replies:** 2\
**Last updated:** [June 8, 2022, 7:03pm UTC](https://community.a10networks.com/t/routing-traffic-via-inactive-vrrp-a-machine/727 "2022-06-08T19:03:14Z")

</div>

Hello everyone, since we’re seeing weird timeouts to external services with any of the more recent versions greater than 5.2.1-p2, support suggested to set up some sort of debug environment for them to check. Is it pos…

---

## [Redirect 302 with aFlex](https://community.a10networks.com/t/redirect-302-with-aflex/726)

<div class="topic-metadata">

**Author:** [@rodrigosh](https://community.a10networks.com/u/rodrigosh)\
**Replies:** 6\
**Last updated:** [June 7, 2022, 5:38pm UTC](https://community.a10networks.com/t/redirect-302-with-aflex/726 "2022-06-07T17:38:54Z")

</div>

Hello, I need your help and knowledge on A10 with aFlex. I am trying to create a 302 redirect for a site that is published on the internet but when testing the redirect it does not execute it, this is my code so that yo…

---

## [health check service testing vs host logging](https://community.a10networks.com/t/health-check-service-testing-vs-host-logging/676)

<div class="topic-metadata">

**Author:** [@bseppanen](https://community.a10networks.com/u/bseppanen)\
**Replies:** 3\
**Last updated:** [September 13, 2021, 3:12pm UTC](https://community.a10networks.com/t/health-check-service-testing-vs-host-logging/676 "2021-09-13T15:12:58Z")

</div>

We are in the process of load balancing radius with ACOS 4.1.4-GR1-P2 with Direct Server return. The load balancing works well, and now I have some awkward consequences I need to deal with. The failover works when a…

---

## [aflex script requirement to evaluate host status](https://community.a10networks.com/t/aflex-script-requirement-to-evaluate-host-status/675)

<div class="topic-metadata">

**Author:** [@bseppanen](https://community.a10networks.com/u/bseppanen)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 4:25pm UTC](https://community.a10networks.com/t/aflex-script-requirement-to-evaluate-host-status/675 "2021-09-10T16:25:13Z")

</div>

I am working on load balancing radius auth/acct to two MS NPS servers. The load balancing works and with radius there is a need to persist a radius client with the server that it happens to communicate with. The star…

---

## [Scripiting questions (Aflex)](https://community.a10networks.com/t/scripiting-questions-aflex/669)

<div class="topic-metadata">

**Author:** [@lsmxlt](https://community.a10networks.com/u/lsmxlt)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 4:43pm UTC](https://community.a10networks.com/t/scripiting-questions-aflex/669 "2021-08-11T16:43:31Z")

</div>

We are planing to use the TCP traffic to autenticate the UDP traffic on our TPS, but we have no idea how to proceed due to lack of documentation Its possible to do something like: when UDP\_REQUEST { if { \[TCP::con…

---

## [How to use the a10.acos\_axapi.a10\_file\_aflex module in Ansible](https://community.a10networks.com/t/how-to-use-the-a10-acos-axapi-a10-file-aflex-module-in-ansible/659)

<div class="topic-metadata">

**Author:** [@AC2000](https://community.a10networks.com/u/AC2000)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 12:33pm UTC](https://community.a10networks.com/t/how-to-use-the-a10-acos-axapi-a10-file-aflex-module-in-ansible/659 "2021-06-14T12:33:16Z")

</div>

Hello, I am trying to deploy aflex scripts to an a10 load balancer in Ansible with the a10\_file\_aflex python module in the a10.acos\_axapi Ansible collection. However, everytime I run my script, there are some weird err…

---

## [DNS CAA record response](https://community.a10networks.com/t/dns-caa-record-response/642)

<div class="topic-metadata">

**Author:** [@mcyork](https://community.a10networks.com/u/mcyork)\
**Replies:** 1\
**Last updated:** [January 19, 2021, 6:48pm UTC](https://community.a10networks.com/t/dns-caa-record-response/642 "2021-01-19T18:48:58Z")

</div>

I am doing things like this: set rr1 \[DNS::rr $name 0 IN TXT “some text here”\] DNS::answer insert $rr1 Now I need to return a CAA record and can’t find a way to format the entry to do this. A CAA record looks like th…

---

## [Preserve Port on HTTP Redirect](https://community.a10networks.com/t/preserve-port-on-http-redirect/572)

<div class="topic-metadata">

**Author:** [@gprintz](https://community.a10networks.com/u/gprintz)\
**Replies:** 1\
**Last updated:** [July 14, 2020, 7:05pm UTC](https://community.a10networks.com/t/preserve-port-on-http-redirect/572 "2020-07-14T19:05:22Z")

</div>

Hi Everyone: We have an interesting issue we’re trying to tackle. We have a Virtual Server with multiple virtual ports (http:80, https:443, https:4444, https:4445, etc). We currently have a working redirect script (si…

---

## [is aflex has similar features like lb::detach](https://community.a10networks.com/t/is-aflex-has-similar-features-like-lb-detach/601)

<div class="topic-metadata">

**Author:** [@edson0227](https://community.a10networks.com/u/edson0227)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 4:30am UTC](https://community.a10networks.com/t/is-aflex-has-similar-features-like-lb-detach/601 "2020-06-13T04:30:10Z")

</div>

Hello everyone, we are trying migrate from F5 to A10, but we encountered some problems there is part of our using irule , when HTTP\_REQUEST { if { \[string tolower \[HTTP::uri\]\] starts\_with “/aaa/bbb/ccc/” } { i…

---

## [Monitoring via XML File GET](https://community.a10networks.com/t/monitoring-via-xml-file-get/512)

<div class="topic-metadata">

**Author:** [@shocko](https://community.a10networks.com/u/shocko)\
**Replies:** 2\
**Last updated:** [February 22, 2020, 1:03pm UTC](https://community.a10networks.com/t/monitoring-via-xml-file-get/512 "2020-02-22T13:03:14Z")

</div>

Hi guys, I have a web service that provides a URI that return XML indicating the health of the system. Is it possible to get this XML and parse it and make a load balancing decision based on this.

[Next page](https://community.a10networks.com/c/product-discussions/aflex/19.md?page=1)
