LinuxQuestions.org
Visit Jeremy's Blog.
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 06-22-2003, 07:13 AM   #1
initpcsys
LQ Newbie
 
Registered: Jun 2003
Location: USA
Distribution: RH, Mandrake
Posts: 9

Rep: Reputation: 0
Firewall Ipchains


Hello,

I'm using RH 6.2 which has a mail server (pop and imap) and a web server runnig directly connected to the internet and I want to protect my system with ipchains.
All the services that I don't need are disabled and I have portsentry doing my dirty job.
I decided to implement ipchains which I did with the following rules:


ipchains -N mynet

ipchains -A mynet -p tcp -d 192.84.219.128 smtp -j ACCEPT
ipchains -A mynet -p tcp -d 192.84.219.128 pop3 -j ACCEPT
ipchains -A mynet -p tcp -d 192.84.219.128 imap -j ACCEPT
ipchains -A mynet -p udp -d 192.84.219.128 domain -j ACCEPT
ipchains -A mynet -p tcp -d 192.84.219.128 domain -j ACCEPT
ipchains -A mynet -p tcp -d 192.84.218.128 www -j ACCEPT
ipchains -A mynet -j DENY -l

ipchains -D input 1
ipchains -D forward 1
ipchains -D output 1

ipchains -P input DENY



My question are:
Is this the right configuration to have?
How is the mynet chain read by ipchains?
What should be the forward and ouput chain configuration?

Thank you in advanced,
F.
 
Old 06-22-2003, 05:35 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,390
Blog Entries: 55

Rep: Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563
Check out TLDP's ipchains howto.
 
  


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
ipchains firewall question tomdkat Linux - Networking 1 04-09-2004 07:29 AM
VPN through IPchains firewall snowdog12 Linux - Networking 1 04-26-2003 06:06 PM
Need help with ipchains firewall tarballedtux Linux - Security 3 12-01-2001 06:11 AM
ipchains firewall question simon Linux - Security 1 08-08-2001 05:58 AM
Ipchains firewall and games gridcaster Linux - Networking 1 03-12-2001 10:36 AM

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

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