LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 03-15-2008, 06:14 AM   #1
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 308
Thanked: 0
iptables icmp error replay messages


[Log in to get rid of this advertisement]
hello all ,

if there is a way to reject the ICMP requests with a specific "string" or a specific type of errors ?

for example if we have a rule like that

Code:
iptables -A INPUT -s 192.168.10.12 -p ICMP --icmp-type echo-request -j REJECT
i have tried many types like host-prohibited and network prohibited instead of echo-request but it didnot succeeded so if there is a way to return a specific string or any error instead of port unreachable i will be thankful .
adam_blackice is offline     Reply With Quote
Old 03-15-2008, 07:16 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 655
Thanked: 10
Code:
 --reject-with type
              The type given can be
               icmp-net-unreachable
               icmp-host-unreachable
               icmp-port-unreachable
               icmp-proto-unreachable
               icmp-net-prohibited
               icmp-host-prohibited or
               icmp-admin-prohibited (*)
datopdog is offline     Reply With Quote
Old 03-15-2008, 08:05 AM   #3
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 308
Thanked: 0

Original Poster
thanks for your replay and i have appreciated it
adam_blackice is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
IPTABLES question - how do you reject icmp? Thaidog Linux - Networking 12 12-06-2007 12:16 PM
iptables DROP icmp applied, still being pinged linuxistan Linux - Networking 3 10-18-2004 11:26 PM
UDP socket and ICMP messages myself_rajat Linux - Networking 0 05-25-2004 09:49 AM
iptables icmp limits dunkyb Linux - Security 0 05-08-2003 06:10 PM
Invalid ICMP messages? Otto.W. Linux - Networking 2 04-04-2003 05:10 PM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration