LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   cant ls,dir with ftp client (https://www.linuxquestions.org/questions/linux-security-4/cant-ls-dir-with-ftp-client-132355/)

steve_babbage 01-07-2004 07:31 AM

cant ls,dir with ftp client
 
One ive been trying for ages... and its doin my head in!!

I have a redhat 9 box running vs FTP server.

I have it on the same lan ( simple 4 port hub) as my windows box, but when i use a dos prompt to ftp to my redhat box, i can log in ok, but cant do an 'ls' or 'dir' ??

Ive tried an ftp client on my windows box, and tried both passive and active modes, but still cant see files. I can create directories!!

On the redhat box, i can ftp 'localhost' and all works fine in a terminal window.


I know this is a firewall problem as when i do an 'iptables -f' , it works fine.

I have ports 20 and 21 set-up in the firewall, but they must be wrong, or some high port is not getting through.

I need some help to set the rules up correctly to get this working. Can anyone help??

Basically i only want the ftp and ssh services runnig, everything else to be rejected and the box to be stealthy.

There is no firewall between the boxes, no firewall on the PC, just iptables on the redhat box, (same box as vs ftp)

much appreciated!!

homey 01-07-2004 03:46 PM

Do you have a line like this in the firewall?

# Some basic state-matching.
$IPTABLES -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT


All times are GMT -5. The time now is 07:16 PM.