-
Redirect traffic based on Destination IP
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 when CLIENT_ACCEPTED { if { [IP::addr [IP::remote_addr] equals 20.20.20.20] } { pool APACHE } } Test #2…
-
Url Redirect without url change
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://otherserver/site but we want to keep the url as https://bla.company.com I can get this working so that it'll…
-
URL redirection-rewrite using part of the URI
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/USER=toi&LANGUE=FM&AN_ATTRB=2022 Redirection works, problem is that is hard coded at this time. What I want is…
-
A10 vThunder ADC/SLB - Redirection based on URL
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 user goes to for whats described below? Or is this completely wrong and I should be looking for an…
-
Redirect 302 with aFlex
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 you can guide me: when HTTP_REQUEST { if {[HTTP::host] == "https://recargaweb.imperial.com/" } {…
-
Preserve Port on HTTP Redirect
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 (similar to a lot of posts on here) for 80 to 443 and it is working fine for several of our virtual servers:…
-
Redirect to other url
Can we redirect to external url when all real servers failed health check.
-
Server response redirected to other port.
Our team is looking for an aflex code that can rewrite the server response. We want to achieve in this aflex is to redirect first the traffic response from the server to 192.168.10.1:3013 for authentication login then after user successfully login redirect again to the other port 192.168.10.1:2011 which is the main…
-
Edit aFlex redirect rule to play a bit nicer with URL
Hello, I am hoping there is an aFlex solution for what I'm trying to do - I currently have an aFlex rule that is: when HTTP_REQUEST { if { not([HTTP::host] equals "www.mydomain.com")} { HTTP::respond 301 "Location" "http://www.mydomain.com" } } Basically saying that if the user does not type www., a hard redirect will…
-
add URI to request
How do I add a URI suffex to an HTTPS request using aFlex? https://domain.com (add /page/page1.htm) https://domain.com/page.page1.htm
-
Proxy Pass Rule
Hi guys, I need a proxy pass rule to send the connection from /PortalTransparencia to /PortalTransparencia/HomeTransparencia I can´t use HTTP::redirect
-
Using array of URLs to block access?
Hello I'm having issues with creating an aflex that has an array of urls that I want to block access to through the AX. I don't know how to handle the array correctly. I want to redirect to the site root whenever someone tries to access these urls. I've tried different variants of this script (that I tried to construct…