Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is a basic ProFTPD configuration file.
  2. # It establishes a single server and a single anonymous login.
  3. # It assumes that you have a user/group "nobody" and "ftp"
  4. # for normal/anonymous operation.
  5.  
  6. ServerName          "QDOS 1.0"
  7. ServerType          standalone
  8. DefaultServer       on
  9.  
  10. AuthPAM             off
  11. AuthPAMConfig       ftp
  12.  
  13. # Port 21 is the standard FTP port.
  14. Port                21
  15. # Umask 022 is a good standard umask to prevent new dirs and files
  16. # from being group and world writable.
  17. Umask               002
  18.  
  19. DefaultRoot         ~
  20.  
  21. # To prevent DoS attacks, set the maximum number of child processes
  22. # to 30.  If you need to allow more than 30 concurrent connections
  23. # at once, simply increase this value.  Note that this ONLY works
  24. # in standalone mode, in inetd mode you should use an inetd server
  25. # that allows you to limit maximum number of processes per service
  26. # (such as xinetd)
  27. MaxInstances            30
  28.  
  29. # Set the user and group that the server normally runs at.
  30. User                ftp
  31. Group               ftp
  32.  
  33. # This next option is required for NIS or NIS+ to work properly:
  34. #PersistentPasswd off
  35.  
  36. SystemLog           /var/log/proftpd.log
  37. TransferLog         /var/log/xferlog
  38.  
  39. #IdentLookups       off
  40. UseReverseDNS       off
  41.  
  42. # Normally, we want files to be overwriteable.
  43. AllowOverwrite      on
  44.  
  45. # Disallow the use of the SITE CHMOD command.
  46. <Limit SITE_CHMOD>
  47.   DenyAll
  48. </Limit>
  49.  
  50. # A basic anonymous FTP server configuration.
  51. # To enable this, remove the user ftp from /etc/ftpusers.
  52. <Anonymous ~ftp>
  53.   User              ftp
  54.   Group             ftp
  55.   # We want clients to be able to login with "anonymous" as well as "ftp"
  56.   UserAlias         anonymous ftp
  57.  
  58.   RequireValidShell off
  59.  
  60.   # Limit the maximum number of anonymous logins
  61.   MaxClients            30 "Sorry, user limit exceeded."
  62.   MaxClientsPerHost     5  "No more than 3 connections from one IP!"
  63.  
  64.   # We want 'welcome.msg' displayed at login, and '.message' displayed
  65.   # in each newly chdired directory.
  66.   DisplayLogin          welcome.msg
  67.   DisplayChdir          .message
  68.  
  69.   # Limit WRITE everywhere in the anonymous chroot
  70.   <Limit WRITE>
  71.     DenyAll
  72.   </Limit>
  73.  
  74.   # An upload directory that allows storing files
  75.   <Directory uploads/*>
  76.     AllowOverwrite      yes
  77.     AllowStoreRestart   yes
  78.  
  79.     <Limit STOR>
  80.       AllowAll
  81.     </Limit>
  82.  
  83.     <Limit MKD>
  84.       AllowAll
  85.     </Limit>
  86.  
  87.     <Limit SIZE>
  88.       AllowAll
  89.     </Limit>
  90.  
  91.     <Limit APPE>
  92.       AllowAll
  93.     </Limit>
  94.   </Directory>
  95. </Anonymous>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement