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 ISP 2
3. Load balance the other traffic between the two isp (ISP1, ISP2)
thanks for you help
- hoolio
Cirrostratus
Typically, you would create virtual servers to handle this functionality. You can create a pool each for the ISP1 and IPS2 routers. You can then reference those pools in specific port virtual servers. To handle the remaining traffic not destined for a specific port virtual server, you can create a pool of both routers (each defined on port 0) and create a wildcard virtual server pointing to that pool. - samir_110997
Nimbostratus
hi hoolio - hoolio
Cirrostratus
You 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 } } }
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