페도라4에서 proftpd 작동이 안됩니다.
버젼은 1.2.10 fc1이구요
/etc/proftpd.conf 설정은 다음과 같습니다.
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.ServerName "SNUJN Server (By Proftpd)"
ServerType standalone
DefaultServer on# Port 21 is the standard FTP port.
Port 100# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30# Set the user and group under which the server will run.
User nobody
Group nobody# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directoty># Bar use of SITE CHMOD by default
#<Limit SITE_CHMOD>
# DenyAll
#</Limit># A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/ftp>
User ftp
Group ftp
RequireValidShell off# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp# Limit the maximum number of anonymous logins
MaxClients 10# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message# Limit WRITE everywhere in the anonymous chroot
<Limit LOGIN>
AllowAll
</Limit><Limit WRITE>
DenyAll
</Limit><Directory /home/ftp/public>
Umask 000
AllowStoreRestart on
AllowRetrieveRestart on<Limit READ>
AllowAll
</Limit><Limit STOR>
AllowAll
</Limit><Limit MKD>
AllowAll
</Limit>
</Directory>
</Anonymous>
처음에 부팅 할 때는 실행 된다고 뜨는데, 나중에 /etc/rc.d/proftpd restart 하면 close 하는데 실패 합니다.
포트는 100번으로 쓰려고 하는거 맞구요, 설치파일은 inetd파일 말고 그냥 파일만 깔았습니다. (proftpd-1.2.10-1.fc1.i386.rpm)
그리고 iptables는 다음과 같은 구절이 포함되어 있습니다.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 100 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
http 서버는 작동이 되는데 ftp만 안되는건.... 왜 이런 걸까요... ㅜㅠ
참고로, 알FTP로 접속하면,
connecting to 147.46.102.XXX
connecting to 147.46.102.XXX
connecting to 147.46.102.XXX
이라고만 계속 뜨고 접속이 불가능합니다.
도와주세요 고수님들 ㅜㅠ
[code:1]-A RH-Firewall-1-INPUT -m state
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1024:65535 -j ACCEPT
추가해 보세요 라고 하고 싶은데...
좀 위험해 보이네요...
일단 로컬에서 ftp 로는 붙나요?
그럼 방화벽이 없는 곳(공인IP)에서 알FTP같은 것으로
active(능동)모드로는 접속이 되는지 알아 봅니다.
일단은 위의 설정으로는 되야 할 겁니다.
There is no spoon. Neo from the Matrix 1999.
로컬에서 접속한 결과입니다.
위에 적은 내용이 로컬에서 접속한 결과입니다.
리눅스 서버가 현재 인터넷 공유기로 작동하고 있고, 그 클라이언트에서 접속한 결과가 위와 같이 나옵니다.
active 모드로 접속을 한다는 게 무슨 뜻인지요? 지금은 패시브 모드로 접속하는데...
댓글 달기