Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th July 2008, 12:20
colk colk is offline
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Centos 5.2 FTP Problem

Hi all

I have a NAS drive that works like an FTP server and i want to use it to backup file from the Centos 5.2 box. Under windows i can connect to the NAS but under Centos i open terminal up and open an FTP connection i get the following:-

ftp> open
(to) xxx.xxx.xxx.xxx
Connected to xxx.xxx.xxx.xxx
220 NET Disk FTP Server ready.
500 Syntax error, command unrecognized.
500 Syntax error, command unrecognized.
KERBEROS_V4 rejected as an authentication type
Name (xxx.xxx.xxx.xxx:root): XXXXXXXXXXX
331 User name okay, need password.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (xxx.xxx.xxx.xxx,88,198)

status
c421 Service not available, remote server has closed connection
ftp> ftp> Not connected.
No proxy connection.
Hash mark printing: off; Use of PORT cmds: on
Verbose: on; Bell: off; Prompting: on; Globbing: on
ftp>

Any help would be apreaseated

Colin
Reply With Quote
Sponsored Links
  #2  
Old 28th July 2008, 14:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Do you use a firewall on the CentOS system?
What's the output of
Code:
iptables -L
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th July 2008, 16:46
colk colk is offline
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[root@localhost ~]# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp
flags:ACK/ACK
ACCEPT all -- anywhere anywhere state
ESTABLISHED
ACCEPT all -- anywhere anywhere state
RELATED
ACCEPT udp -- anywhere anywhere udp
spt:domain dpts:1024:65535
ACCEPT icmp -- anywhere anywhere icmp
echo-reply
ACCEPT icmp -- anywhere anywhere icmp
destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp
source-quench
ACCEPT icmp -- anywhere anywhere icmp
time-exceeded
ACCEPT icmp -- anywhere anywhere icmp
parameter-problem
ACCEPT tcp -- anywhere XX-XXX-XX-X
tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp
dpt:auth
ACCEPT icmp -- anywhere anywhere icmp
echo-request
ACCEPT tcp -- anywhere anywhere tcp
dpt:http
ACCEPT tcp -- anywhere anywhere tcp
dpt:https
ACCEPT tcp -- anywhere anywhere tcp
dpt:smtp
ACCEPT tcp -- anywhere XX-XXX-XX-X
tcp dpts:ftp-data:ftp
ACCEPT tcp -- anywhere anywhere tcp
dptop3
ACCEPT tcp -- anywhere anywhere tcp
dpt:imap
ACCEPT tcp -- anywhere XX-XXX-XX-X
tcp dpts:ndmp:10010
ACCEPT tcp -- anywhere XX-XXX-XX-X
tcp dpt:dnp
ACCEPT tcp -- anywhere XX-XXX-XX-X
tcp dpt:5900

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost ~]#
Reply With Quote
  #4  
Old 29th July 2008, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Please switch off the firewall and try FTP again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 20th August 2008, 18:43
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

you need the FTP connection tracking module loaded.

Code:
modprobe ip_conntrack_ftp
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP and SFTP using CENTOS 5.0 mofu_45 Installation/Configuration 2 28th July 2008 17:35
support for centos 5.2 henk Maarse Feature Requests 14 9th July 2008 21:19
Centos 5 Installation problem (hanging) pesja Installation/Configuration 7 27th June 2007 18:47
FTP very slow in LAN, "fast" from WAN-> Firewall problem? Pasco Server Operation 6 7th March 2006 15:17
Problem with MAC on FTP connection donaldblake General 7 22nd February 2006 10:15


All times are GMT +2. The time now is 06:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.