Forum Discussion

craig_lee10_177's avatar
craig_lee10_177
Icon for Nimbostratus rankNimbostratus
Aug 24, 2011

capturing the hostname

Hi

 

Does anyone know if it’s possible to create an irule that uses the TCP::collect or TCP::payload commands that captures the resolved hostname from the client making the request? I want to have multiple ftp services running on one virtual server and if a specific resolved hostname comes through then the traffic will be sent to different pools.

 

 

Example:

 

ftp.server1.com -> pool1

 

ftp.server2.com -> pool2

1 Reply

  • Hi Craig,

     

     

    Unfortunately, this isn't possible as FTP doesn't have a host header like HTTP. The FTP client resolves the hostname to an IP address and then connects to the IP without including any information on which hostname was used.

     

     

    Aaron