LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Blocked FTP port 21, Why? (https://www.linuxquestions.org/questions/linux-networking-3/blocked-ftp-port-21-why-568075/)

immortaltechnique 07-10-2007 07:27 AM

Blocked FTP port 21, Why?
 
Hi guys,
Now this is really annoying cuz i cant ftp my server. My firewall is disabled (bad idea though) and i have opened the ports via iptables.
Am running red hat 9 AS.

bsdunix 07-10-2007 08:09 AM

Are you able to connect via localhost? Does your ISP block incoming FTP? Is there another firewall/router between your box and the WAN?

immortaltechnique 07-10-2007 08:34 AM

yeah its between two machines on the same network and theres no ISp in between. I can connect on localhost

bsdunix 07-10-2007 08:49 AM

Does the connecting client have firewall turned off? If on, is the firewall configured to allow related connections for passive FTP? Are you seeing any connection errors on console or in logs?

michaelnel 07-10-2007 12:57 PM

tcpwrappers issue maybe? Check /etc/hosts.deny

immortaltechnique 07-11-2007 01:43 AM

Well both machines have their firewalls disabled and they both are not in /etc/hosts.deny.
I just cant figure out why i cant transfer files from one of the machines.
is there a second party ftp client i could probably use?

haxpor 07-11-2007 01:57 AM

It might be about Passive and Active FTP setting.

In active, your FTP server is the a boss that will connect back to client with the port depend on what port which client connect for the first time. This usually block by a firewall of the client side.

In passive, your client instead is a boss, that will connect to ftp server with random port depend on what port server generate and send back to client. This can solve the problem in active setting but give you more configuration for the server side to allow the range of incoming ports from client, that let you to set for FTP's configuration file also to generate that range of port.

Link to more description about Active VS Passive FTP

See the document or man page to find how to config FTP.

Hope that help.


All times are GMT -5. The time now is 04:21 PM.