LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-16-2002, 06:06 PM   #16
voodoochild7
LQ Newbie
 
Registered: Feb 2002
Distribution: red hat 7.2
Posts: 20

Rep: Reputation: 0

ipchains -A -s "your ip" -d "your ip " output -p icmp -j ACCEPT

not allow sorry.
 
Old 02-19-2002, 03:45 AM   #17
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Your making the no.1 network error in what your doing.

ICMP is a message protocol, it's designed to help TCP packets get to their source with error messages.

There are many different types of ICMP messages, your blocking all of them on the INPUT chain.

This is not good, you'll have systems screwing up when they try to talk to your network.
Just block the ones that stop ping , Traceroute and Mask requests & route solicitations & Timestamps

Example:

ipchains -A output -p icmp -s 0/0 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 0 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 3 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 4 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 9 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 12 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 14 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 18 -d 0/0 -j ACCEPT
ipchains -A input -p icmp -s 0/0 --icmp-type 8 -d 0/0 -j DENY -l
ipchains -A input -p icmp -s 0/0 --icmp-type 11 -d 0/0 -j DENY -l
ipchains -A input -p icmp -s 0/0 --icmp-type 10 -d 0/0 -j DENY -l
ipchains -A input -p icmp -s 0/0 --icmp-type 5 -d 0/0 -j DENY -l

/Raz
 
Old 02-19-2002, 02:36 PM   #18
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
How do you know what particular ICMP type corresponds to what number then?
For instance,

ipchains -A input -p icmp -s 0/0 --icmp-type 4 -d 0/0 -j ACCEPT

What is that 4?
Thanks.

Last edited by Stingreen; 02-19-2002 at 02:38 PM.
 
Old 02-19-2002, 02:37 PM   #19
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
Well, seems like I already ruined my network structure.

There was an error in my mail server "reply: read error from host.name" which I then found out that while the mail server tries to make Path MTU discovery which is based on ICMP messages, it automaticly gets denied cause I already denied all ICMP queries.
So I flushed all the IPCHAINS structure, now waiting to be answered what those ICMP events are I mentioned above.
Thank you much.


Last edited by Stingreen; 02-19-2002 at 03:32 PM.
 
Old 02-20-2002, 03:40 AM   #20
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Check out one of my older message.

The MTU error should be fixed by allowing ICMP type 3

http://www.linuxquestions.org/questi...=icmp+messages

/Raz
 
Old 08-13-2002, 09:47 PM   #21
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Rep: Reputation: 30
Try firestarter as a firewall builder, it uses ip tables and when you run the wizard click advanced setup and you can block incoming pings while out going still works. As far as ip tables being busy it's probably got lokkit running ( I think thats defalt on a 7.1 install) turn it off before installing firestarter.
 
Old 08-18-2002, 11:30 PM   #22
terek
Member
 
Registered: Jun 2002
Location: Utah
Distribution: Fedora 5
Posts: 32

Rep: Reputation: 15
In my linux newbieness.... from what I understand, in order to start iptables, you have to stop ipchains... they don't work well together.
 
Old 08-19-2002, 04:13 AM   #23
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Rep: Reputation: 30
yeah thats correct. type ntsysv --level 345 from a konsole and turn off ip chains and reboot and that will take it out of the start up menu.

----------------------------------------
 
  


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
Short MySQL Question The_Messiah Linux - Networking 2 03-28-2005 03:30 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
short modules question anadyr Slackware 1 01-02-2005 05:03 PM
Very short PERL question. Stingreen Programming 4 03-15-2002 09:59 AM
Permission question, (short) Stingreen Linux - General 5 03-14-2002 11:19 PM

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

All times are GMT -5. The time now is 12:28 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
Open Source Consulting | Domain Registration