Tips lukemftpd 질문에 대한 내 답변

2008.12.24 12:47

Shadow 조회 수:30235

안녕하세요. 도움이 되었다니 기쁘네요.
lukemftpd은 설정을 /etc/ftpd.conf 파일을 이용해서 합니다.
다음을 터미널에서 실행하시면 관련된 설명이 쭉~ 나옵니다.
man ftpd.conf


말씀하신 것들은 다음과 같이 ftpd.conf를 수정하시면 됩니다.


1. MAX upload download 속도를 제어를 하려고 하는데 설정 어디를 만져야 할지 잘 감이 오지 않아서요.

rateget class [rate]
  Set the maximum get (RETR) transfer rate throttle for class to rate
  bytes per second.  If rate is 0, the throttle is disabled.  If
  class is ``none'' or rate is not specified, disable this.

   An optional suffix may be provided, which changes the interpreta-tion interpretation
   tion of rate as follows:
     b    Causes no modification.  (Default; optional)
     k    Kilo; multiply the argument by 1024
     m    Mega; multiply the argument by 1048576
     g    Giga; multiply the argument by 1073741824
     t    Tera; multiply the argument by 1099511627776

rateput class [rate]
  Set the maximum put (STOR) transfer rate throttle for class to rate
  bytes per second, which is parsed as per rateget rate.  If class is
  ``none'' or rate is not specified, disable this.


모든 사용자에 대해 제한

형식 : rateget all [제한속도]
형식 : rateput all [제한속도]
(예제, 최대속도 512KB/s로 제한)
rateget all 512k
(예제, 최대속도 무제한)
rateget all 0 (기본값)

chroot 지정된 사용자만을 제한하고자 하실 때에는 all을 chroot로 하시면 됩니다.
get은 ftp에서 download를 의미하고 put은 ftp로 upload를 의미합니다.


2. 동시접속 수 제어하는 것 등도 설정을 하고 싶은데 어떻게 해야하나요?

limit class [count [file]]
  Limit the maximum number of concurrent connections for class to
  count, with `-1' meaning unlimited connections.  If the limit is
  exceeded and file is specified, display its contents to the user.
  If class is ``none'' or count is not specified, disable this.  If
  file is a relative path, it will be searched for in /etc (which can
  be overridden with -c confdir).


모든 사용자에 대해 제한

형식 : limit all [접속제한 수]
(예제, 동시 접속 16개로 제한)
limit all 16
(예제, 동시 접속 무제한)
limit all -1 (기본값)

이 부분 역시 chroot 지정된 사용자만을 제한하고자 하실 때에는 all을 chroot로 하시면 됩니다.


아래는 질문

세도우님 덕분에 ftp서버를 만들어서
잘 사용하고 있습니다.
먼저 감사의 말씀을 드리고 싶습니다.
다름이 아니오라 궁금한점이 하나 있어서 그런데요
MAX upload download 속도를 제어를 하려고 하는데 설정 어디를 만져야 할지 잘 감이 오지 않아서요.
그리고 동시접속 수 제어하는 것 등도 설정을 하고 싶은데
어떻게 해야하나요?

현제는 맥 오에스에서 기본적으로 제공하는 방법을 이용하여 ftp를 구성하였습니다.

미리 감사드립니다.

항상 많이 배우네요~

미리크르스마스~

번호 제목 글쓴이 날짜 조회 수
57 범인은 공유기... sukhyun 2008.04.25 22574
56 man ftpd.conf sukhyun 2008.04.25 20023
55 [펌] NFS exports and Mac OS X 10.5 Leopard sukhyun 2008.05.04 24249
54 [펌] Putty Proxy 우회하기(터널링) file sukhyun 2008.06.13 31166
53 Zip Test Script ( BASH ) sukhyun 2008.08.21 20567
52 [Script] the number of files (or directories) sukhyun 2008.08.25 19576
51 [Script] MAMP server backup sukhyun 2008.08.25 20468
50 Pure-ftpd sukhyun 2008.08.28 32170
49 Pure-ftpd : Virtual users sukhyun 2008.08.29 23561
48 boot-132 secret sukhyun 2008.08.30 448
47 [펌] An A-Z Index of the Apple OS X command line sukhyun 2008.08.30 25915
46 [Script] Netstat - Bash sukhyun 2008.08.31 21770
45 boot132 (2nd) secret sukhyun 2008.09.27 370
44 [펌] Create & delete user accounts from the command line on Mac OS X sukhyun 2008.10.01 21799
43 [펌] Creating & deleting system service agent accounts on Mac OS X sukhyun 2008.10.01 28182
42 (비밀글) x86osx - 글 백업 secret sukhyun 2008.10.08 302
41 [작성중] 홈 서버 구성 가이드 - 4. 웹서버를 시동해 보자 - MAMP ( MacOSX Apach + MySQL + PHP ) [3] file sukhyun 2008.11.13 47390
40 [작성중] 홈 서버 구성 가이드 - 1. 홈서버 시스템의 선택 [4] sukhyun 2008.11.14 29198
39 [작성중] 홈서버 구성 가이드 - 2. 네트워크 구성과 공유기 설정 file sukhyun 2008.11.15 31260
38 [작성중] 홈서버 구성 가이드 - 5. FTP를 이용한 파일서버 - LukemFTPd / PureFTPd [1] file sukhyun 2008.11.19 24799

사용자 로그인