Forum Discussion

Charles_Stalyon's avatar
Charles_Stalyon
Icon for Nimbostratus rankNimbostratus
Apr 22, 2008

New guy - help please!

I currently have a 1500 series LTM demo from F5. I have a little working knowledge of the device, but I am attempting to use the LTM as a traffic cop and have no idea how to use an iRule. I would like to direct traffic hitting a shared network drive to a particular server based on the example below:

 

 

When someone maps to \\shareddrive\users I want traffic directed to a pool with server "users"

 

When someone maps to \\shareddrive\data I want traffic directed to a pool with server "data"

 

 

I assume this is very vague and little to work with, but from what I can tell from the forums most folks use iRules for http(s) traffic. Has anyone had experience with directing traffic to/from network (shared) drives? What port would the VIP listen on?

 

 

Thank you for any assistance you can offer.

 

 

 

 

 

 

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi there,

     

     

    The BIG-IP doesn't parse SMB traffic natively, so to determine the requested share name, you'd need to collect the TCP payload in the request, parse the share and then select the pool based on it. You can use the TCP::collect (Click here) command to collect the payload. The wiki page for TCP::collect has an example to get you started.

     

     

    SMB shares should be accessible on TCP port 445. Here's one place you can get more info on the "protocol" (Click here).

     

     

    Aaron