» »

problem z proftpd

problem z proftpd

rok_p ::

imam debian 4, shorewall in proftpd. ko se hočem povezat na ftp server mi v filezilli javi tole:


Status: Connecting to 192.168.0.1 ...
Status: Connected with 192.168.0.1. Waiting for welcome message...
Response: 220 FTP Server @ 1xx.xxx.xxx.xxx
Command: USER ftpserver
Response: 331 Password required for ftpserver.
Command: PASS ******
Response: 230 User ftpserver logged in.
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: 211 End
Command: SYST
Response: 215 UNIX Type: L8
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/home/ftpserver" is current directory.
Command: TYPE A
Response: 200 Type set to A
Command: PASV
Response: 227 Entering Passive Mode (192,168,0,1,159,98).
Command: LIST
Error: Transfer channel can't be opened. Reason: No connection could be made because the target machine actively refused it.
Error: Could not retrieve directory listing
Command: TYPE I

V shorewallu imam dodano naslednje pravilo:
ACCEPT net $FW tcp 21
ACCEPT loc $FW tcp 21
rok

OmegaBlue ::

Stvar ti preklopi na passive mode, poglej kako imaš nastavljeno v proftpd za passive in odpri še tiste porte na firewallu (ker trenutno imaš zaprte). Ali pa nastavi clienta na active mode.

Edit.
V proftpd.conf imaš "PassivePorts lowport highport", dodaj še te v firewall.
Seveda lahko spremeniš tiste po defaultu.
Never attribute to malice that which can be adequately explained by stupidity.

Zgodovina sprememb…

rok_p ::

V proftpd.conf imam sledeče:

# Port 21 is the standard FTP port.
Port 21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
#PassivePorts 2100 2101

po takšnem bi mogli biti passiveporti zaprti, ali?
rok

OmegaBlue ::

ne ;) samo sam jih izbere. Potem clientu nastavi naj uporablja active mode, če tega ne želiš.
Never attribute to malice that which can be adequately explained by stupidity.

rok_p ::

aaaaa:) hvala za pomoč
rok


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

FileZilla ftp strežnik

Oddelek: Omrežja in internet
245510 (3414) vice boy
»

ProtFtp Passive mode in iptables

Oddelek: Programska oprema
252219 (2041) SasoS
»

FTP dostop Bulletproof server

Oddelek: Omrežja in internet
351855 (1604) kunigunda
»

Osnovna varnost

Oddelek: Omrežja in internet
291993 (1508) iNN
»

Problem z FTP dostopom

Oddelek: Omrežja in internet
71151 (1059) 64202

Več podobnih tem