Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2005-08-17 07:29:13

  Usnar - Członek DUG

Usnar
Członek DUG
Zarejestrowany: 2005-02-14

proFTPd, o co chodzi?

Czolem.

Nie wiem co jest grane z tym moim proftpd, klientem wszystko jest dobrze az do momentu:

LIST -la

wtedy sie zatrzymuje na jakas chwile i zaczyna od nowa, potwierdzenie usera i hasla jest poprawne ale potem cos sie dzieje nie tak. oto co mi wypisuje flashget:
Wed Aug 17 07:18:43 2005 Connecting 193.193.1.4 [IP=193.193.1.4:21]
Wed Aug 17 07:18:43 2005 Socket connected, Waiting for welcome message.
Wed Aug 17 07:18:53 2005 220 ProFTPD 1.2.10 Server (Debian) [193.193.1.4]
Wed Aug 17 07:18:53 2005 USER usnar
Wed Aug 17 07:18:53 2005 331 Password required for uzi.
Wed Aug 17 07:18:53 2005 PASS ********
Wed Aug 17 07:18:53 2005 230 User uzi logged in.
Wed Aug 17 07:18:53 2005 Login Successful
Wed Aug 17 07:18:53 2005 REST 100
Wed Aug 17 07:18:53 2005 350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer
Wed Aug 17 07:18:53 2005 This site can resume broken downloads.
Wed Aug 17 07:18:53 2005 REST 0
Wed Aug 17 07:18:53 2005 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
Wed Aug 17 07:18:53 2005 PWD
Wed Aug 17 07:18:53 2005 257 "/home/uzi" is current directory.
Wed Aug 17 07:18:53 2005 TYPE A
Wed Aug 17 07:18:53 2005 200 Type set to A
Wed Aug 17 07:18:53 2005 PASV
Wed Aug 17 07:18:53 2005 227 Entering Passive Mode (193,193,1,4,4,34).
Wed Aug 17 07:18:53 2005 LIST -la
Wed Aug 17 07:19:14 2005 Error occured!
Wed Aug 17 07:19:14 2005 Wait 5 second for retry

Oto moj plik konfiguracyjny:

Kod:

ServerName                      "Debian"
ServerType                      standalone
DeferWelcome                    off

ShowSymlinks                    on
MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
AllowOverwrite                  on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                "-l"

DenyFilter                      *.*/

#DefaultRoot                    ~
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd               off

# Port 21 is the standard FTP port.
Port                            21

# 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 that the server normally runs at.
User                            nobody
Group                           nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask                         022  022

  AllowOverwrite                on
</Directory>

Czy ktos z was wie co jest grane?

Offline

 

#2  2005-08-17 08:41:55

  zlyZwierz - Moderator

zlyZwierz
Moderator
Zarejestrowany: 2005-02-18
Serwis

Re: proFTPd, o co chodzi?

moze wpusc na firewallu porty "passive"

Kod:

# Port 21 is the standard FTP port.
Port                            21
PassivePorts 49152 49999

Offline

 

#3  2005-08-17 09:25:24

  Usnar - Członek DUG

Usnar
Członek DUG
Zarejestrowany: 2005-02-14

Re: proFTPd, o co chodzi?

nie pomoglo, dalej go cos boli, dziwi mnie to bo nigdy wczesniej nie mialem takiego problemu, zawsze podstawowa konfiguracja dzialala.



OK juz wiem o co chodzi. Moj firewall wpuszcza tylko 22, 21, 80 port, a blokuje reszte. Jak wpuscilem wszystko to dziala. Kiedys czytalem taki artykul ze jak sie jakis komputer zaloguje na port 21 to iptables otwiera na czas sesji port ktory zada serwer ftp, lub cos w tym stylu i faktycznie zawsze to dzialalo a teraz nie. Powiedzcie mi w takim razie jak to obejsc na firewallu, wpuszczac porty ktore ustawie w proftpd.conf jako passive?

Offline

 

#4  2005-08-24 14:31:47

  jata - Użytkownik

jata
Użytkownik
Skąd: Poznań
Zarejestrowany: 2004-10-14

Re: proFTPd, o co chodzi?

dorzuc w regulki cos takiego..:

Kod:

iptables -A INPUT -p tcp --sport 1024: --dport 21 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

poza tym zauwazylem, ze proftpd w nowej wersji szybko zrywa mi polaczenia..
pomoglo dopisanie w konfigu:

Kod:

DelayEngine off

pzdr!


jata aka algol vel MaDfReAk

Offline

 

#5  2005-08-25 14:12:02

  Usnar - Członek DUG

Usnar
Członek DUG
Zarejestrowany: 2005-02-14

Re: proFTPd, o co chodzi?

Dzieki za pomoc, wlasciwie to dalem sobie spokoj z proftpd.

Teraz uzywam ssh. Ten programik ma w sobie sftp i jest duzo bezpieczniejszy od zwyklego ftp. A klient na windowsa jest tutaj http://download.chip.pl/download_123839.html

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)