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 man hdiutil sukhyun 2008.04.04 136697
56 OSX에 설치형 웹하드를 설치해 보자! [5] [1062] file Shadow 2009.06.07 129298
55 XQuartz [5570] Shadow 2009.01.03 127841
54 com.apple.boot.plist & bootloader [6505] Shadow 2009.01.03 121375
53 [펌] CFGetHostUUIDString: unable to determine UUID for host. Error: 35 [5772] Shadow 2009.01.03 121219
52 MacBookPro 13" with Samsung S470 SSD [601] file Shadow 2011.01.20 87721
51 스노우 레퍼드 64bit 부팅 [3] [566] file Shadow 2009.09.07 81508
50 wget [364] Shadow 2009.04.29 81285
49 Snow Leopard에서 macports를 이용한 mplayer 설치 [202] Shadow 2009.09.09 57271
48 enblend-enfuse-3.2 on MacOSX [216] file Shadow 2009.03.19 52077
47 rox-filer [555] file Shadow 2009.04.14 51463
46 [작성중] 홈 서버 구성 가이드 - 4. 웹서버를 시동해 보자 - MAMP ( MacOSX Apach + MySQL + PHP ) [3] file sukhyun 2008.11.13 47390
45 [펌] 맥미니에 소요된 부품 목록 Administrator 2008.03.30 45270
44 [펌] PC에서 맥FTP서버로 접근시 한글 깨짐문제. [1] sukhyun 2008.04.06 38590
43 MacOSX System Configurations - MyConf! Shadow 2009.01.04 35925
42 [펌] 도구 없이 wire만으로 맥미니 분해하기!! [2] sukhyun 2008.03.30 35531
41 [펌] Tryout Mac Mini as Fileserver Administrator 2008.03.30 34190
40 [펌] Tutorial: Using what's new in Leopard's Accounts and File Sharing Preferences sukhyun 2008.04.07 32755
39 Pure-ftpd sukhyun 2008.08.28 32170
38 [작성중] 홈서버 구성 가이드 - 2. 네트워크 구성과 공유기 설정 file sukhyun 2008.11.15 31261

사용자 로그인