LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 01-07-2004, 07:31 AM   #1
steve_babbage
LQ Newbie
 
Registered: Jul 2003
Location: Australia
Distribution: redhat9
Posts: 23

Rep: Reputation: 15
Question 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!!
 
Old 01-07-2004, 03:46 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Do you have a line like this in the firewall?

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


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
unable to mount /home dir in a client machine abhishek124 Linux - Networking 18 06-06-2005 07:57 AM
Cannot list dir via FTP Ephracis Linux - Software 7 12-11-2004 06:24 PM
howto have the client home dir on a server green-ears Linux - Networking 7 09-25-2003 07:17 PM
FTP Users Go to There Home Dir FS2003 Linux - Networking 1 07-11-2003 01:28 PM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 03:51 AM


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

Main Menu
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