SDC Napisano Styczeń 7, 2009 Zgłoszenie Share Napisano Styczeń 7, 2009 Witam, na F9 mam zainstalowane i tak mi się wydaje że skonfigurowane Very Secure FTPD. Lokalnie po sieci loguje się bez problemów. Mam Ruter pentagram i nesotrade i nie mogę się zalogować z "zewnątrz", czyli poprzez internet. Podaje ip z rutera jakie przypisuje tpsa. Mam virtual serwer na ruterze dobrze skonfigurowany. Pojawia się monit o podanie użytkownika i hasła, więc łączy się z serwerem. Jednak przy próbie logowania dostaje info o błędnym userze lub jego haśle. A lokalnie działa. Co jest nie tak? sdc Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Gość _PaT Napisano Styczeń 8, 2009 Zgłoszenie Share Napisano Styczeń 8, 2009 Upewnij się, że po zmianie konfigów zrestartowałeś usługę FTP. Wklej konfigi. Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
SDC Napisano Styczeń 8, 2009 Autor Zgłoszenie Share Napisano Styczeń 8, 2009 # Example config file /etc/vsftpd/vsftpd.conf # nopriv_user=ftp anonymous_enable=NO local_enable=YES write_enable=YES # local_umask=022 #anon_upload_enable=YES #anon_mkdir_write_enable=YES dirmessage_enable=YES # Activate logging of uploads/downloads. xferlog_enable=YES # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/chroot/vsftpd chroot_list_enable=YES chroot_list_file=/var/chroot/vsftpd/vsftpd.chroot_list setproctitle_enable=YES text_userdb_names=YES max_clients=10 max_per_ip=3 # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. xferlog_file=/var/log/vsftpd/vsftpd.log # # If you want, you can have your log file in standard ftpd xferlog format. # Note that the default log file location is /var/log/xferlog in this case. xferlog_std_format=YES # # You may change the default value for timing out an idle session. idle_session_timeout=600 # # You may change the default value for timing out a data connection. data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that on some FTP servers, ASCII support allows a denial of service # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string: ftpd_banner=Welcome to blah FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd/banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd/chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES # # When "listen" directive is enabled, vsftpd runs in standalone mode and # listens on IPv4 sockets. This directive cannot be used in conjunction # with the listen_ipv6 directive. listen=YES # # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 # sockets, you must run two copies of vsftpd whith two configuration files. # Make sure, that one of the listen options is commented !! #listen_ipv6=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES use_localtime=YES Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Gość _PaT Napisano Styczeń 8, 2009 Zgłoszenie Share Napisano Styczeń 8, 2009 1) Używaj tagów code. Proszę wyedytuj poprzedniego posta. 2) Niestety nie widzę, gdzie może być błąd. Wklej jeszcze log z klienta ftp, którym próbujesz się połączyć. 3) Masz włączoną obsługę wrapperów tcp. Wklej pliki /etc/hosts.allow i /etc/hosts.deny 4) Hmm, Jesteś pewien, że na routerze wszystko dobrze skonfigurowałeś? Czy wiesz, że Twój ftp może losować porty do transportu danych z puli efemerycznych? Czy używa ip_conntrack_ftp i czy w Twoim routerze bez problemu przepuszczane są połączenia RELATED (nie jestem pewnien, ale chyba taki mają status)? Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
SDC Napisano Styczeń 8, 2009 Autor Zgłoszenie Share Napisano Styczeń 8, 2009 Wcześniej używałem (używam jeszcze) proftpd i tam używałem maskarady. Bez tego mi nie działał ftp. Ruter jest ok. Loga nie mam łączę się w wincmd, pokazuje komunikat o błędnym haśle lub użytkowniku: "530 Login incorrect." i to wszystko. Tak się tyko spytam co to Tagi Code? Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
SDC Napisano Styczeń 8, 2009 Autor Zgłoszenie Share Napisano Styczeń 8, 2009 Jednak to chyba coś z ruterem: Bo to on nie przepuszcza dalej tak jakby chciał znać usera i hasło. 220 router FTP version 1.0 ready at Thu Jan 08 17:26:09 2009 <-- to jest info rutera USER janek 331 Entering PASS command PASS *********** 530 User janek cannot log in Retry: Wait 5 sec Router jaki mam to Pentagram Cerbeus P 6331-42 Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
SDC Napisano Styczeń 8, 2009 Autor Zgłoszenie Share Napisano Styczeń 8, 2009 Temat zamknięty. Źle ustawiłem wcześniej router. Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się