Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Os kernel การปรับแต่ง เพิ่มเติม ลงโปรแกรม บน OS และ ControlPanel Directadmin,Cloud server => Topic started by: golfreeze on มีนาคม 05, 2015, 09:38:17 AM

Title: proFtpd configuration / tuning on directadmin
Post by: golfreeze on มีนาคม 05, 2015, 09:38:17 AM
proFtpd configuration / tuning

- If you want to block certain types of files to be uploaded, add this directive in /etc/proftpd.conf:

    PathDenyFilter "\\.(bas|bat|cmd|com|hta|lnk|pif|scr|exe)$"

- If you want to limit the proftpd cpu/memory usage (High Recommended), use (in this example, 10% of cpu and 4mb of memory):

    RLimitCPU session 10
    RLimitMemory session 4096

- If you want to limit the max upload / download file size, use:

    MaxStoreFileSize 30 Mb
    MaxRetrieveFileSize 30 Mb


#/etc/init.d/proftpd restart

special thank to : http://forum.directadmin.com/showthread.php?t=9348 (http://forum.directadmin.com/showthread.php?t=9348)