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를 구성하였습니다.

미리 감사드립니다.

항상 많이 배우네요~

미리크르스마스~

번호 제목 글쓴이 날짜 조회 수
77 mounting a linux nfs server on mac os x 10.6 [17712] Shadow 2011.02.15 758652
76 MacOSX에 ufraw를 설치하자~ [1] [886] file Shadow 2009.01.03 635902
75 Winclone 부트캠프 백업/복원 어플입니다 [3] [10660] guriii 2009.08.28 394669
74 Carbon Copy Cloner [14197] Shadow 2009.05.04 382783
73 맥북에어 2013 - VMware Fusion 5.x 사용시 화면 깜빡임 해결 방법 [13380] Shadow 2013.07.19 336519
72 screen saver [9091] file Shadow 2013.08.21 307220
71 freetype [1] [10007] Shadow 2009.04.29 277427
70 MacBookAir 11" 2013-mid 256GB SSD 성능 [10865] file Shadow 2013.07.27 276425
69 Chrome Extentions (Bookmarks Menu) Scroll Bar Bug Fix [4367] file Shadow 2013.01.02 232772
68 맥이 아닌 machine에서 맥에 SSH 접속시 한글 표시법 [9665] Shadow 2009.02.10 231111
67 Macbook Air 11inch 128GB SSD performance [11906] file Shadow 2010.11.28 226910
66 eXtplorer 2.0.1 한글 패치 (on MacOSX 다운로드, 표시) 버전 [2] [8710] file Shadow 2010.04.30 210175
65 디스크에 문제가 발생했을 때 [10406] Shadow 2010.12.30 204032
64 file managers based on x11 (supported by MacPorts) [1] [8166] Shadow 2010.02.16 203448
63 gpac (mp4box) [10595] Shadow 2009.04.29 201135
62 MacOSX 10.7 Lion - TRIM 지원 [7] [1402] file Shadow 2011.07.06 170976
61 remote X11forwarding from OSX to Windows [6277] Shadow 2009.01.03 151122
60 rar [823] Shadow 2009.04.29 145304
59 PureFTPd Update! (1.0.22) [7169] Shadow 2009.04.29 144413
58 [펌] PureFtpd - Mysql-auth per user connection limit feature [6633] Shadow 2009.02.25 136875

사용자 로그인