Forum Discussion

swjo_264656's avatar
swjo_264656
Icon for Cirrostratus rankCirrostratus
Jan 30, 2018

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.

 

  1. extension base port switching. -> exe, txt --> switching 8080 port.

     

  2. 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.

 

1 Reply

  • 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...

     

    1. Balance the initial FTP request to your pool as usual...
    2. Capture the initial user logon and any session information (e.g. port mode, etc.) for replaying to the individual FTP servers.
    3. Listen for any RETR commands (file download) and evaluate the contained file extension.
    4. LB::detach and reselect the node based on the file extension.
    5. Replay the initial user logon and session information to the new server.
    6. Replay the RETR (file download) command...
    7. Repeat at step 3.)

    Cheers, Kai