vsftpd 에서 원격접속이 안됩니다...

best4net의 이미지

Redhat 8.0을 사용하고 있습니다...

현재 redhat 설치할때 같이 깔리는 vsftpd를 xinetd로 사용하고 있는데

netstat -a 해보면 ftp가 Listen 하고 있습니다...

콘솔에서 ftp 127.0.0.1 을 실행해보면 정상적으로 동작이 되는데

원격에서 접속을 하면 ftp 접속이 안됩니다... 어떻게 해야되죠??

원격에서 ping 도 잘 나가고 telnet 접속도 잘 됩니다...

그런데 ftp 접속만 되지 않네요...

어떻게 해야하나요??

weirdo96의 이미지

xinetd를 이용하신다면.. 항상 /etc/hosts.alllow, /etc/hosts.deny를 확인하시기 바랍니다.

/etc/hosts.alllow에 다음과 같은 내용을 넣으시면 될지도..

#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#

sshd:ALL
vsftpd:ALL

man page도 있습니다. 각각의 파일에 대해서요..

best4net wrote:
Redhat 8.0을 사용하고 있습니다...

현재 redhat 설치할때 같이 깔리는 vsftpd를 xinetd로 사용하고 있는데

netstat -a 해보면 ftp가 Listen 하고 있습니다...

콘솔에서 ftp 127.0.0.1 을 실행해보면 정상적으로 동작이 되는데

원격에서 접속을 하면 ftp 접속이 안됩니다... 어떻게 해야되죠??

원격에서 ping 도 잘 나가고 telnet 접속도 잘 됩니다...

그런데 ftp 접속만 되지 않네요...

어떻게 해야하나요??

best4net의 이미지

님께서 말씀해주신데로 hosts.allow 파일에 내용을 추가하고 xinetd 데몬을

재시작해도 마찬가지로 접속이 안되네요...

hosts.allow 파일의 내용 :

#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
sshd:ALL
vsftpd:ALL

hosts.deny 파일의 내용:
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

위와 같습니다...

세상 살기 힘들죠??

weirdo96의 이미지

음.. 지금 사용하시는 인터넷 라인이 상용 하나로나 KT에서의 뭐 그런 서비스라면 21번 포트는 막혀있어서.. 사용하실 수 없습니다.
다른 포트를 쓰셔야 하거든..
일단은 지금 쓰시는 인터넷 환경등이 정확히 올라와야 알 수 있겠네요.
안될 수 있는 상황이 너무 많은 지라..

best4net wrote:
님께서 말씀해주신데로 hosts.allow 파일에 내용을 추가하고 xinetd 데몬을

재시작해도 마찬가지로 접속이 안되네요...

hosts.allow 파일의 내용 :

#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
sshd:ALL
vsftpd:ALL

hosts.deny 파일의 내용:
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

위와 같습니다...

야흔의 이미지

vsftpd 설정은 어떻게 하셨나요?
제대로 하셨겠지만 혹시 모르니 여길 참고하시고 다시 점검해보시길...
데비안 문서이긴 하지만 설정하시는데는 도움이 되실듯.

http://debianusers.org/DebianWiki/vsftpd

천재태지서주영의 이미지

방화벽을 체크해보세요.
요즘은 리눅스를 설치하면 자동으로 방화벽이 작동되더라구요.
설마 ftp 포트를 기본적으로 막아뒀을리는 없겠지만 한번 체크해보시기 바랍니다.

천재태지서주영

문태준의 이미지

아래는 제가 SLES8 (redhat advanced server의 수세판이라고 생각하면 될듯)에서 정리했던 것중의 하나인데요. 아마 redhat advanced server 3.0에서도 vsftp를 쓰고 있을 것입니다. 아마도 local_enable에 기본 주석이 되어있어서 그런 문제가 발생할 확률이 가장 높지 않을까 생각되는군요. 새로운 프로그램을 쓴다면 일단 설정파일부터 좀 볼 필요가 있겠지요.

=======================================
ftp의 경우 SLES8은 기본 vsftp를 사용하며 몇가지 설정을 고쳐야함 (/etc/vsftpd.conf)
anonymous_enable=NO => 기본은 YES이며 익명 FTP를 제공하지 않는다면 NO로 해두어야 보안상 위험이 없다
local_enable=YES => 이에 대한 설정을 해야 운영체제 계정의 사용자가 FTP접속이 가능하다.
write_enable=YES => 이에 대한 설정을 하지 않으면 FTP접속후 다운로드만 가능하고 업로드는 불가능하다.

---------------------------
문태준
http://groups.google.co.kr/group/sysadminstudy 시스템어드민 공부모임
http://tunelinux.pe.kr
http://database.sarang.net

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.