LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-04-2006, 05:42 PM   #1
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Rep: Reputation: 15
Ftp Problem (500 Illegal Port Command)


Hi everybody!

Recently Iīve known that my ISP has blocked ports for connections towards port 21 for any clients on itīs network. I had an ftp server and it worked really fine. But with this new policy, I had to change the port.

So I changed the services file in /etc/ and changed ftp port 21 to 40740. Ok it receives connections normally. It authenticates users nicelly but keeps giving me this message when I type dir, for example...

500 Illegal Port Command.
425 Use PORT or PASV first.

It works neat from my Lan anyway. This problem only occurs when I try to entre the FTP through WAN.

Thanks a lot!

Last edited by Palula; 05-05-2006 at 08:30 PM.
 
Old 05-06-2006, 02:17 AM   #2
baboooss
LQ Newbie
 
Registered: May 2006
Posts: 11

Rep: Reputation: 0
Do u have a firewall ??
 
Old 05-06-2006, 02:47 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
Hello Palula,

Are you using FTP in active mode? Active mode FTP will get blocked if you are using a firewall. Try using the passive mode.

Thanks,,,
 
Old 05-08-2006, 08:49 AM   #4
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Original Poster
Rep: Reputation: 15
Yes I do have a Firewall!
But the connections are configured to be made as Passive already.

By the way, this config is only done on the client software right? Or is there a way for me to configure within the server config (I use vsftpd). Or does this have to be configured on both?

Anyway I still can't connect to the FTP server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables / FTP masquerading: Port command illegal radiowhiz Linux - Networking 1 03-23-2005 06:15 PM
ProFTPd- "Illegal PORT Command" JCdude2525 Linux - Networking 5 12-06-2004 06:42 AM
Port Forwarding on MN-500 The Pentium Guy Linux - Networking 6 10-18-2004 12:15 PM
vsftpd 500 illegal port command jglazner Linux - Software 3 09-30-2003 05:53 PM
VPN port 500 50 and 51 ollie Linux - Networking 2 01-16-2002 11:44 AM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration