Forum Discussion
Fluidetom_12222
Jul 10, 2018Cirrus
Transparent port redirect
Hey Guys,
I've received a request to setup a VS listening on port 443, as well as on a range from 18500 to 18550 included. If a request comes in on port 443 it must be passed to the backend server ...
- Jul 10, 2018
Ok I've found a way to do this.
I'm using 2 different pools.
- MyPool is configured with node1'sIP:8443, node2'sIP:8443 etc...
- MyPool_18500 is configured with node1'sIP:0, node2'sIP:0 etc...
This is my code, which is working fine ... yeah!
I had to enable port translation on the VS for this setup to work.
when CLIENT_ACCEPTED { if {([TCP::local_port] equals 443 )} { pool MyPool } elseif {([TCP::local_port] >= 18500 ) && ([TCP::local_port] <= 18550)} { pool MyPool_18500 } else reject }
Fluidetom_12222
Jul 10, 2018Cirrus
Ok I've found a way to do this.
I'm using 2 different pools.
- MyPool is configured with node1'sIP:8443, node2'sIP:8443 etc...
- MyPool_18500 is configured with node1'sIP:0, node2'sIP:0 etc...
This is my code, which is working fine ... yeah!
I had to enable port translation on the VS for this setup to work.
when CLIENT_ACCEPTED {
if {([TCP::local_port] equals 443 )} {
pool MyPool
} elseif {([TCP::local_port] >= 18500 ) && ([TCP::local_port] <= 18550)} {
pool MyPool_18500
} else reject
}
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