LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
 
Search this Thread
Old 12-02-2007, 05:27 PM   #1
bharat.bvrit
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
rejecting packets


hi,
I want to reject the packets from being transmitted.Currently i could DROP the packets using iptables but i dont know how to REJECT with iptables with icmp type as "host unreachable" .Please help me out.
 
Old 12-03-2007, 07:31 AM   #2
krock923
Member
 
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
-j REJECT --reject-with icmp-host-unreachable
 
Old 12-04-2007, 05:27 AM   #3
bharat.bvrit
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
hi,
thanx for replying.How can i embed the command given by you in my code... so that whenever unnecessary packets occur i need to reject those packets while my code is running.
 
  


Reply

Tags
icmp, iptables


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
Rejecting domains with Postfix... CRCool75 Linux - Networking 4 03-09-2006 08:42 AM
sendmail rejecting connections WorldBuilder Linux - Networking 21 01-12-2006 07:34 AM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 03:53 PM
Sendmail is rejecting some mail member57 Linux - Networking 2 04-20-2004 12:18 PM
Rejecting Spam Emails vk1985 Linux - Networking 3 04-11-2003 05:36 AM


All times are GMT -5. The time now is 03:06 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration