LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 04: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, 10:12 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,675
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
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


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


All times are GMT -5. The time now is 03:13 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