Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am searching for it on Google, but i didn't find anything. Is there a way tho set up proftpd that it will only accept a connection on ftp.website.ext and not on website.ext or test.website.ext

I am running proftpd on Debian 5

Tom

share|improve this question
2  
In your example does ftp.website.ext and test.website.ext map to different IP addresses? –  Zoredache Jan 20 '10 at 17:50
    
no, to the same –  Timo Jan 21 '10 at 13:07

2 Answers 2

I think the last part of this article may help? It discusses listening only on specific IP addresses.

From other repsonses you've made, it seems you want it to be hostname based, and the IP addresses for these hosts are all the same. The answer is, no, you cannot do that, sorry. FTP is an old, old protocol and does not handle hostnames. The client doesn't have any mechanism to send the requested hostname along, and the server has no facility to accept it.

share|improve this answer
2  
the article seems to point to using different IP address's, rather than host names. If all the hostnames are on the same IP then I don't think it will work. –  BuildTheRobots Jan 20 '10 at 18:17
    
FTP is address based. It can't be made hostname based as the server does not know what hostname the client is requesting. I will update my answer to mention this. –  Michael Graff Jan 20 '10 at 19:06

Use a combination of VirtualHost and Default Address blocks much in the same way you'd do Apache:

http://proftpd.org/docs/directives/linked/config_ref_VirtualHost.html
http://proftpd.org/docs/directives/linked/config_ref_DefaultAddress.html

DefaultAddress 1.2.3.4 ftp.website.com

<VirtualHost website.com www.website.com>
 ...config stuff...
 <Limit LOGIN>
  Order allow,deny
  Allow from none
  Deny from all
 </Limit>
</VirtualHost>

<VirtualHost ftp.website.com>
  ...do FTP configs...
</VirtualHost>

Untested by me but looks like it should work.

share|improve this answer
    
is should try thank you! –  Timo Jan 21 '10 at 13:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.