Server
Proftpd 계정별 MaxClient (동시 접속 제한) 설정
EcusE
2009. 2. 12. 15:53
IfDefine을 이용 유저별 각종 설정이 가능합니다.테스트 결과 잘 되는것 같습니다.
ifuser또는 ifgroup을 적절히(?)조합하면 다양한 설정도 가능해 보입니다.
ifuser를 사용하기 위해서는 mod_ifsession이 모듈로 컴파일 되었거나 포함되어 있어야 합니다.
또는 proftpd 1.3.2이상에 포함된 prxs를 이용 proftpd 설치이후(proftpd의 소스없이) 모듈을 설치할 수 있습니다.
http://forums.proftpd.org/smf/index.php/topic,3739.0.html
설정 예제: 유저별 접속가능 횟수를 설정
user1는 10번 접속가능, user2는 1번만 접속가능
<IfUser user1>
MaxClientsPerUser 10 "Sorry, %m hosts allow per one user"
</IfUser>
<IfUser user2>
MaxClientsPerUser 1 "Sorry, %m hosts allow per one user"
</IfUser>
MaxHostsPerUser의 설정파일내 위치
server config, <Anonymous>, <VirtualHost>, <Global>
참고링크 :
http://proftpd.org/docs/directives/linked/config_ref_IfDefine.html
http://proftpd.org/docs/directives/linked/config_ref_MaxClientsPerUser.html
http://proftpd.org/docs/directives/linked/config_ref_MaxClientsPerHost.html
http://forums.proftpd.org/smf/index.php/topic,583.0.html