Forum Discussion
samir_110997
Nimbostratus
Oct 29, 2007Redirect traffic based on tcp port
Hi,
please can any one help me to create a i-rules so as to:
1. Redirect user http and ftp traffic to routeur ISP1
2. Redirect vpn traffic and smtp traffic to routeur IS...
hoolio
Cirrostratus
Oct 30, 2007You would still define the same pools and then use switch on TCP::local_port to select which pool to send the request to. Here's a simple example:
when CLIENT_ACCEPTED {
Check the requested port
switch [TCP::local_port] {
21 { pool isp1_router_pool }
25 { pool isp2_router_pool }
80 { pool isp1_router_pool }
443 { pool isp1_router_pool }
default { pool isp1_isp2_router_pool }
}
}This might not handle FTP traffic though if the server needs to open a data connection back to the client. This is handled automatically with a VIP and FTP profile though.
Aaron
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
