Forum Discussion
FTP LB & content switching base on file extension(exe mov etc).
Hi guys.
I`m planning to FTP content switching.
I simply know FTP LB. using standard type and use FTP profile.
My new client request below things. but it seems require i-Rule.
I would really appreciate your advice.
-
extension base port switching. -> exe, txt --> switching 8080 port.
-
extension base gateway selection. -> DOC, MOV --> forward to L3-1 -> MP4, jpg --> forward to L3-2
these requests are similar to URI and URL switching.
but I`m not clearly know which i-Rule syntax support those.
thank you.
Hi swjo,
I see a chance for you to write an iRule to balance the request based on the requested ressource. Below are some ideas for your project...
- Balance the initial FTP request to your pool as usual...
- Capture the initial user logon and any session information (e.g. port mode, etc.) for replaying to the individual FTP servers.
- Listen for any RETR commands (file download) and evaluate the contained file extension.
- LB::detach and reselect the node based on the file extension.
- Replay the initial user logon and session information to the new server.
- Replay the RETR (file download) command...
- Repeat at step 3.)
Cheers, Kai
Recent Discussions
Related Content
* 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