LinuxQuestions.org
Review your favorite Linux distribution.
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 05-08-2004, 07:52 AM   #1
i_am_so_kittle
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
trusted ip address access to ftp server


Dear friends

i have configured iptables for Redhat Linux 9.0.
ftp server must pemit trusted ip to connect to ftp server.
i have done configuration below:

iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 21 -j DROP
iptables -A INPUT -p tcp -s <your trusted pucblic ip> -d 0/0 --dport 21 -j ACCEPT

but it closes connection between clients and ftp server!!!!!!!

what is the problem????????

 
Old 05-08-2004, 09:24 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
You may want to try reversing the order of those rules. Iptables handles the packet according to the first rule that matches, so the packet may get trapped by your -s 0/0 rule.
 
Old 05-08-2004, 09:30 AM   #3
i_am_so_kittle
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
now what can i do?
 
Old 05-08-2004, 10:41 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Quote:
now what can i do?
You are going to have to be more specific. Did you change the rule order? If you did, what is happening? Have you checked the logs?

Posting single sentences doesnt' give anyone enough information to help you.
 
  


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(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
Sending WAN IP address to FTP server sloik2000 Linux - Networking 2 02-08-2005 02:59 PM
ftp server not finding my ip address fideli Linux - Software 7 02-18-2004 11:47 AM
FTP Server IP address problem johnk Linux - Networking 2 08-21-2003 03:40 PM
How can I access 'trusted' binaries for chkrootkit? jack101 Linux - Security 5 08-18-2003 06:41 PM

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

All times are GMT -5. The time now is 05:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration