Forum Discussion
LeonSmirnov
Nimbostratus
Nov 05, 2020I iRule
We are creating new wildcard virtual server with source and destination 0.0.0.0/0 and service port * (any). We will need to forward traffic with client IP address (no Source Address Translation...
Dario_Garrido
Noctilucent
Nov 08, 2020Hello Leon.
You can use this iRule:
when CLIENT_ACCEPTED {
set client_ip [clientside {IP::remote_addr}]
set client_port [clientside {TCP::remote_port}]
set vs_ip [clientside {IP::local_addr}]
set vs_port [clientside {TCP::local_port}]
if { ([ IP::addr $vs_ip eq 172.168.1.11 ]) && ($client_port eq "5555") } {
if { [ IP::addr $client_ip eq 10.11.0.0/16 ] } {
pool Pool1
} else {
pool Pool2
}
}
if { ([ IP::addr $vs_ip eq 10.1.1.1 ]) && ($client_port eq "4444") } {
pool Pool3
}
}WildCard-Pool should be assigned to the defaul pool configuration in the VS settings.
Regards,
Dario.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
