LinuxQuestions.org
Help answer threads with 0 replies.
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 04-28-2002, 08:39 PM   #1
nm6man
LQ Newbie
 
Registered: Apr 2002
Posts: 2

Rep: Reputation: 0
Question apache and ftp security


I have just installed redhat 7.2 and the ipchains commands have me going crazy. I can get my apache and my ftp to work correctly by using

# ipchains -F

But this is wide open. I want to be more specific.

I want to accept ftp from only one IP and want to open up my HTTP to allow the world to see my page. I would appreciate any help.

Thanks
 
Old 04-28-2002, 09:30 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
I'd like to suggest you try reading the Linux IPCHAINS-HOWTO first. Then try to work out the script as you would like to have it.
When that doesn't work, just post the contents.

That's a good starting point IMO for us to help you help yourself...
 
Old 04-29-2002, 09:30 AM   #3
nm6man
LQ Newbie
 
Registered: Apr 2002
Posts: 2

Original Poster
Rep: Reputation: 0
# ipchains -F
# ipchains -p TCP -d 0.0.0.0/0 www
# ipchains -p TCP -y -s xxx.xxx.xxx.xxx/xx ftp-data

Will this allow my apache to serve and allow my FTP from one address only?
 
Old 04-29-2002, 08:11 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
Basically it'll look something like this (barring any errors, ok this just top of my head right now)

ANY="0.0.0.0/8"
UNPRIV_PORTS="1024:60000"
ipchains -A INPUT -b -i eth0 -p tcp -s $ANY $UNPRIV_PORTS -d <fill in your IP address> 80 -j ACCEPT

FTP_ALLOW=<fill in the allowed IP address>
ipchains -A INPUT -b -i eth0 -p tcp -s $ALLOW_FTP $UNPRIV_PORTS -d <fill in your IP address> 20:21 -j ACCEPT

Reminds me the Ipchains howto kinda sucks. Gotta find a better URI.
 
  


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 security msamuels Linux - General 3 06-01-2005 12:58 AM
ftp security spate Linux - Software 1 01-19-2003 07:04 PM
FTP Security?? Milkman00 Linux - Software 3 08-11-2002 12:10 AM
FTP security ! chuck77 Linux - General 4 03-05-2002 01:09 AM
FTP security vcheah Linux - Security 6 01-06-2002 05:13 AM

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

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