Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. ServerType standalone
  2. DefaultServer on
  3. MultilineRFC2228 on
  4. UseReverseDNS off
  5. MaxInstances 30
  6. #IdentLookups off
  7. RootLogin off
  8. User ftp
  9. Group ftp
  10. RequireValidShell off
  11. ShowSymlinks on
  12. DefaultAddress 192.168.0.1 111.111.11.111
  13. TimeoutLogin 120
  14. TimeoutIdle 600
  15. TimeoutNoTransfer 900
  16. TimeoutStalled 3600
  17. DeleteAbortedStores on
  18. AllowStoreRestart on
  19. Umask 002
  20. AllowOverwrite off
  21. DefaultRoot ~
  22. SystemLog /var/log/proftpd/proftpd.log
  23. SysLogLevel info
  24. TransferLog /var/log/proftpd/transef.log
  25. ExtendedLog /var/log/proftpd/read-write.log read,write
  26. ExtendedLog /var/log/proftpd/auth.log AUTH
  27.  
  28. <IfModule mod_lang_c>
  29. LangEngine on
  30. LangDefault en_US
  31. UseEncoding on
  32. UseEncoding UTF8 CP1251
  33. </IfModule>
  34.  
  35. <VirtualHost domain.ru>
  36. ServerName "domain.ru_sftp"
  37. RequireValidShell off
  38. ShowSymlinks on
  39. TimeoutLogin 120
  40. TimeoutIdle 600
  41. TimeoutNoTransfer 900
  42. TimeoutStalled 3600
  43. SFTPEngine on
  44. SFTPHostKey /etc/ssh/ssh_host_dsa_key
  45. SFTPHostKey /etc/ssh/ssh_host_rsa_key
  46. PassivePorts 49241 49260
  47. DeleteAbortedStores on
  48. ShowSymlinks on
  49. AllowStoreRestart on
  50. Port 2122
  51. DefaultRoot ~
  52. Umask 002
  53. MaxClients 20 "Sorry, max %m users -- try again later"
  54. MaxClientsPerHost 5 "Sorry, max 5 connection per host"
  55. MaxLoginAttempts 3 "Sorry, max 3 login -- try again later"
  56. DenyFilter \*.*/
  57. <IfModule mod_sftp.c>
  58. SFTPEngine on
  59. SFTPLog /var/log/proftpd/sftp.log
  60. Port 2122
  61. SFTPHostKey /etc/ssh/ssh_host_rsa_key
  62. SFTPHostKey /etc/ssh/ssh_host_dsa_key
  63. SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
  64. SFTPCompression delayed
  65. MaxLoginAttempts 6
  66. </IfModule>
  67. <Limit LOGIN>
  68. Order allow,deny
  69. Allow from all
  70. </Limit>
  71. <GLOBAL>
  72. AllowOverwrite no
  73. </GLOBAL>
  74. </VirtualHost>
  75.  
  76. <VirtualHost domain.ru>
  77. ServerName "domain.ru_ftp"
  78. ShowSymlinks on
  79. RequireValidShell off
  80. TimeoutLogin 120
  81. TimeoutIdle 600
  82. TimeoutNoTransfer 900
  83. TimeoutStalled 3600
  84. SFTPEngine off
  85. PassivePorts 49221 49240
  86. DeleteAbortedStores on
  87. ShowSymlinks on
  88. AllowStoreRestart on
  89. Port 21
  90. DefaultRoot ~
  91. Umask 002
  92. MaxClients 20 "Sorry, max %m users -- try again later"
  93. MaxClientsPerHost 10 "Sorry, max 5 connection per host"
  94. MaxLoginAttempts 3 "Sorry, max 3 login -- try again later"
  95. DenyFilter \*.*/
  96. AllowOverwrite off
  97. <Limit LOGIN>
  98. Order allow,deny
  99. Allow from all
  100. </Limit>
  101. <GLOBAL>
  102. AllowOverwrite no
  103. </GLOBAL>
  104. </VirtualHost>
  105.  
  106. <VirtualHost 192.168.0.1>
  107. ServerName "local_ftp"
  108. ShowSymlinks on
  109. RequireValidShell off
  110. TimeoutLogin 120
  111. TimeoutIdle 600
  112. TimeoutNoTransfer 900
  113. TimeoutStalled 3600
  114. SFTPEngine off
  115. PassivePorts 49201 49220
  116. DeleteAbortedStores on
  117. ShowSymlinks on
  118. AllowStoreRestart on
  119. Port 21
  120. DefaultRoot ~
  121. Umask 002
  122. MaxClients 20 "Sorry, max %m users -- try again later"
  123. MaxClientsPerHost 10 "Sorry, max 5 connection per host"
  124. MaxLoginAttempts 3 "Sorry, max 3 login -- try again later"
  125. DenyFilter \*.*/
  126. <Limit LOGIN>
  127. Order allow,deny
  128. Allow from all
  129. </Limit>
  130. <GLOBAL>
  131. AllowOverwrite no
  132. </GLOBAL>
  133. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement