Forum Discussion

lanew_53401's avatar
lanew_53401
Icon for Nimbostratus rankNimbostratus
Jan 04, 2010

FTP and HTTPs on same public ip address

Cant seem to get this to work. I am trying to use a single public ip (virtual server for both HTTP and FTP.

 

 

Am using the following irule:

 

when CLIENT_ACCEPTED {

 

if { [TCP::client_port] == 21 } {

 

pool POOL_TESTFTP

 

} else {

 

pool POOL_XFTP

 

}

 

}

 

 

https works fine, however I cannot get the FTP to work. from an ftp client it reports Connection established, waiting for welcome message..but will not complete the connection.....FTP client does connect on the internal address.

2 Replies

  • I'd suggest configuring two separate virtual servers. On the FTP VIP, you can add an FTP profile which should pass active and passive FTP. On the HTTP(s) VIP(s), you can configure an HTTP and/or a client SSL profile. This would be much simpler than trying to handle both (or all three?) protocols on the same VIP.

     

     

    Aaron
  • You might also double check that the ports you have opened up are the ports that the FTP server is configured to use. There will be a difference in your setup depending on which method of FTP the server is using (passive or active?). Here is a good link on that subject: http://www.slacksite.com/other/ftp.html