2
« kdy: 01. 09. 2010, 18:28:59 »
Bezelo to sice v pasivu, ale po zmene se to nejak vyrazne nezlepsilo. Otevirani a ukladani souboru trva cca 5s, coz je dost, kdyz kazdou chvili aktualizujete obsah souboru.
Zrusil jsem docasne vsechny pravidla ve firewallu, vlozil modul do jadra pro podporu FTP prenosu a upravil firewall.
Gentoo ~ # lsmod | grep ftp
nf_conntrack_ftp 5972 0
nf_conntrack 54717 7 xt_helper,nf_conntrack_ftp,nf_conntrack_ipv4,xt_state,xt_conntrack,xt_connmark,xt_CONNMARK
Gentoo ~ # iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -m helper --helper "ftp" -j ACCEPT
Soubor zde nelze vlozit, tak sem vlozim cely vypis. Prijde mi, ze je v nem zbytecne moc transakci (323)... (vstoupil jsem do slozky, otevrel/ulozil soubor a ukoncil spojeni).
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> PORT 93,94,245,125,168,60
< 200 PORT command successful
> TYPE A
< 200 Type set to A
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> PORT 93,94,245,125,199,131
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> PORT 93,94,245,125,169,116
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,197,201
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> PORT 93,94,245,125,200,158
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> PORT 93,94,245,125,220,118
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> PORT 93,94,245,125,205,64
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,188,104
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
> PORT 93,94,245,125,207,162
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
> PORT 93,94,245,125,211,34
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,223,193
< 200 PORT command successful
> TYPE I
< 200 Type set to I
> SIZE NewPassword.php
< 213 4291
> RETR NewPassword.php
< 150 Opening BINARY mode data connection for NewPassword.php (4291 bytes)
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,196,204
< 200 PORT command successful
> TYPE A
< 200 Type set to A
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
ftpfs: operation ftpfs_open failed because Operation not supported
ftpfs: operation ftpfs_open failed because Operation not supported
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,155,162
< 200 PORT command successful
> TYPE I
< 200 Type set to I
> SIZE NewPassword.php
< 213 4291
> RETR NewPassword.php
< 150 Opening BINARY mode data connection for NewPassword.php (4291 bytes)
< 226 Transfer complete.
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> PORT 93,94,245,125,155,105
< 200 PORT command successful
> TYPE A
< 200 Type set to A
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> PORT 93,94,245,125,181,29
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,222,237
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> PORT 93,94,245,125,148,141
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
> PORT 93,94,245,125,219,142
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,226,139
< 200 PORT command successful
> TYPE I
< 200 Type set to I
> STOR 4913
< 150 Opening BINARY mode data connection for 4913
> SITE CHMOD 644 4913
< 200 SITE CHMOD command successful
> PORT 93,94,245,125,210,151
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> SITE CHUID 0 4913
< 500 'SITE CHUID' not understood
ftpfs: operation ftpfs_chown failed because Operation not permitted
< 226 Transfer complete.
> QUIT
< 221 Goodbye.
> PORT 93,94,245,125,194,106
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> DELE 4913
< 250 DELE command successful
> PORT 93,94,245,125,180,141
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
> CWD /
< 250 CWD command successful
> RNFR htdocs/administration/NewPassword.php
< 350 File or directory exists, ready for destination name.
> RNTO htdocs/administration/NewPassword.php~
< 250 Rename successful
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,142,251
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
ftpfs: operation ftpfs_getattr failed because No such file or directory
< 220 ProFTPD 1.3.0 Server (hosting.domena2.cz) [178.72.xxx.xxx]
> USER username@domena.cz
< 331 Password required for username@domena.cz.
> PASS password
< 230 User username@domena.cz logged in.
> PWD
< 257 "/" is current directory.
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> PORT 93,94,245,125,130,187
< 200 PORT command successful
> TYPE I
< 200 Type set to I
> STOR NewPassword.php
< 150 Opening BINARY mode data connection for NewPassword.php
> SITE CHMOD 644 NewPassword.php
< 200 SITE CHMOD command successful
> PORT 93,94,245,125,183,85
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
< 226 Transfer complete.
> QUIT
< 221 Goodbye.
> PORT 93,94,245,125,152,73
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> SITE CHMOD 644 NewPassword.php
< 200 SITE CHMOD command successful
> PORT 93,94,245,125,149,212
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> PORT 93,94,245,125,224,10
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> PORT 93,94,245,125,180,107
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> CWD /
< 250 CWD command successful
> CWD htdocs
< 250 CWD command successful
> CWD administration
< 250 CWD command successful
> DELE NewPassword.php~
< 250 DELE command successful
> CWD /
< 250 CWD command successful
> PORT 93,94,245,125,235,35
< 200 PORT command successful
> LIST -a
< 150 Opening ASCII mode data connection for file list
< 226 Transfer complete.
> QUIT
< 221 Goodbye.