LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-09-2003, 03:38 PM   #1
wkm001
LQ Newbie
 
Registered: Jul 2003
Location: Virginia
Distribution: Red Hat 7.3, 8, 9
Posts: 23

Rep: Reputation: 15
Red Hat 7.3, FTP, and ipchains help


I am having some trouble FTPing out of a Red Hat 7.3 box. Can anyone give me a hand with the rules I need to use in order to ftp out of the box. As of right now I can ftp out but when I try to do a "ls" it says entering into passive mode and freezes. Here are the rules I have now.

:input DENY
:forward ACCEPT
utput ACCEPT

-A input -p tcp -s 0/0 ftp -d 0/0 1024:65535 -j ACCEPT
-A input -p tcp -s 0/0 ftp-data -d 0/0 1024:65535 -j ACCEPT
-A input -p tcp -s 0/0 1024:65535 -d 0/0 ftp-data -j ACCEPT


Thanks for your help,
Casey
 
Old 10-10-2003, 09:12 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I am having some trouble FTPing out of a Red Hat 7.3 box.
With passive FTP the client starts both control and data connections. The server responds setting the serverside data port not to TCP/20 but to any unprivileged port.
So, speaking input chain, you need "to here:any from there:21" and "to here:any from there:any".

-A input -p tcp -d 0/0 1024:65535 -s 0/0 21 -j ACCEPT
-A input -p tcp -d 0/0 1024:65535 -s 0/0 1024:65535 -j ACCEPT
 
  


Reply



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
ftp on Red Hat 3.0 ashley75 Linux - General 3 06-16-2005 04:55 PM
Configuring FTP in Red Hat AmdMhz Linux - Software 7 02-04-2004 11:11 AM
ftp server using red hat 9. preetam Linux - Networking 1 11-14-2003 11:37 PM
red hat 6.1 ftp issue tumblin_dice Linux - Networking 1 09-20-2003 03:56 PM
FTP server in Red Hat 7.3 Enzo Linux - Software 2 07-15-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:34 PM.

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
Open Source Consulting | Domain Registration